显示下拉菜单

exif_read_data()

« exif_imagetype | exif_tagname »
<?php
$array 
exif_read_data (
    
// string $filename
    
?// [string $sections = NULL]
    
?// [bool $arrays = false]
    
?  // [bool $thumbnail = false]
);
?>
结果
$array = [
  
'FileName' => 'legs.jpg',
  
'FileDateTime' => 1711702862,
  
'FileSize' => 38503,
  
'FileType' => 2,
  
'MimeType' => 'image/jpeg',
  
'SectionsFound' => 'ANY_TAG, IFD0, THUMBNAIL, EXIF',
  
'COMPUTED' => [
    
'html' => 'width="320" height="320"',
    
'Height' => 320,
    
'Width' => 320,
    
'IsColor' => 1,
    
'ByteOrderMotorola' => 0,
    
'ApertureFNumber' => 'f/11.3',
    
'Thumbnail.FileType' => 2,
    
'Thumbnail.MimeType' => 'image/jpeg',
  ],
  
'Make' => 'Canon',
  
'Model' => 'Canon EOS 5D',
  
'Orientation' => 0,
  
'XResolution' => '4718592/65536',
  
'YResolution' => '4718592/65536',
  
'ResolutionUnit' => 2,
  
'Software' => 'Picasa 3.0',
  
'DateTime' => '2008:06:16 23:57:18',
  
'HostComputer' => 'Mac OS X 10.4.9',
  
'YCbCrPositioning' => 1,
  
'Exif_IFD_Pointer' => 242,
  
'THUMBNAIL' => [
    
'Compression' => 6,
    
'XResolution' => '72/1',
    
'YResolution' => '72/1',
    
'ResolutionUnit' => 2,
    
'JPEGInterchangeFormat' => 546,
    
'JPEGInterchangeFormatLength' => 9230,
  ],
  
'ExposureTime' => '1/50',
  
'ExposureProgram' => 1,
  
'ISOSpeedRatings' => 320,
  
'ExifVersion' => '0220',
  
'DateTimeOriginal' => '2008:06:10 07:59:26',
  
'DateTimeDigitized' => '2008:06:10 07:59:26',
  
'ApertureValue' => '7/1',
  
'ExposureBiasValue' => '0/1',
  
'MeteringMode' => 5,
  
'Flash' => 16,
  
'FocalLength' => '24/1',
]
示例
#1 exif_read_data  ("/tmp/flower.jpg",
 
"IFD0")
#2 exif_read_data  ("/tmp/flower.jpg",
 
"COMMENT")
#3 exif_read_data  ("/tmp/legs.jpg",
 
"THUMBNAIL")
另请参阅
exif_thumbnail, getimagesize