我正在尝试使用exif_read_data从我的图像中读取一些exif数据。但是,似乎返回的数据部分错误或不完整。
您可以查看this image,其中显然包含大量exif数据,如in this exif reader所示。
尝试阅读相机型号(exif键&#34;型号&#34;)然而返回我名字的一部分和相机制造商(exif键&#34; Make&#34;)甚至没有显示。< / p>
我使用print_r(exif_read_data($imageUrl, 'EXIF, IFD0'));
记录了所有信息,结果如下:
Array
(
[FileName] => DSC01386.jpg
[FileDateTime] => 1433003804
[FileSize] => 465667
[FileType] => 2
[MimeType] => image/jpeg
[SectionsFound] => ANY_TAG, IFD0, THUMBNAIL, EXIF, GPS
[COMPUTED] => Array
(
[html] => width="1367" height="2048"
[Height] => 2048
[Width] => 1367
[IsColor] => 1
[ByteOrderMotorola] => 0
[ApertureFNumber] => f/2.8
[Thumbnail.FileType] => 2
[Thumbnail.MimeType] => image/jpeg
)
[Make] => Danie
[Model] => Rauber
[Orientation] => 1
[UndefinedTag:0x0001] =>
[YResolution] => 35417705/1108475996
[ResolutionUnit] => 2
[Software] => ezirk Lichtenberg_
[DateTime] => utschlandt
[Artist] => Rauber
[Copyright] =>
[Exif_IFD_Pointer] => 266
[GPS_IFD_Pointer] => 868
[THUMBNAIL] => Array
(
[Compression] => 6
[XResolution] => 72/1
[YResolution] => 72/1
[ResolutionUnit] => 2
[JPEGInterchangeFormat] => 1096
[JPEGInterchangeFormatLength] => 12738
)
[ExposureTime] => 1/3200
[FNumber] => 28/10
[ExposureProgram] => 3
[ISOSpeedRatings] => 250
[UndefinedTag:0x8830] => 2
[UndefinedTag:0x8832] => 250
[ExifVersion] => 0230
[DateTimeOriginal] => 2015:05:29 12:35:09
[DateTimeDigitized] => 2015:05:29 12:35:09
[ShutterSpeedValue] => 11643856/1000000
[ApertureValue] => 2970854/1000000
[BrightnessValue] => 24144/2560
[ExposureBiasValue] => 0/10
[MaxApertureValue] => 760/256
[MeteringMode] => 5
[LightSource] => 0
[Flash] => 16
[FocalLength] => 350/10
[ColorSpace] => 1
[FocalPlaneXResolution] => 67143837/32768
[FocalPlaneYResolution] => 67143837/32768
[FocalPlaneResolutionUnit] => 3
[FileSource] =>
[SceneType] =>
[CustomRendered] => 0
[ExposureMode] => 0
[WhiteBalance] => 0
[DigitalZoomRatio] => 16/16
[FocalLengthIn35mmFilm] => 35
[SceneCaptureType] => 0
[Contrast] => 0
[Saturation] => 0
[Sharpness] => 0
[UndefinedTag:0xA432] => Array
(
[0] => 350/10
[1] => 350/10
[2] => 28/10
[3] => 28/10
)
[UndefinedTag:0xA434] => FE 35mm F2.8 ZA
[GPSVersion] => ��
[GPSLatitudeRef] => N
[GPSLatitude] => Array
(
[0] => 52/1
[1] => 32509/1000
[2] => 0/1
)
[GPSLongitudeRef] => E
[GPSLongitude] => Array
(
[0] => 13/1
[1] => 300722/10000
[2] => 0/1
)
[GPSAltitude] => 589734/10000
)
如您所见,&#34;模型&#34;和&#34;制造&#34;是可用的,但它们包含错误的信息。 (对于像&#34;软件&#34;)这样的键也是如此。