php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38484 cannot extract correct camera make and model
Submitted: 2006-08-17 14:10 UTC Modified: 2006-09-11 14:27 UTC
From: camka at email dot ee Assigned: helly (profile)
Status: Not a bug Package: EXIF related
PHP Version: 5.1.4 OS: win xp
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: camka at email dot ee
New email:
PHP Version: OS:

 

 [2006-08-17 14:10 UTC] camka at email dot ee
Description:
------------
exif_read_data returns empty camera make. At the same time all know image viewers/editors recognize it correctly.

Is the image itself is incorrectly formatted, or exif extension cannot handle the format of this exif version?

image: http://www.hot.ee/camka/exif/16722_DKGY6J.jpg 

Reproduce code:
---------------
print_r(exif_read_data($file));

Expected result:
----------------
...
    [Make] => KONICA MINOLTA
    [Model] => DIMAGE Z6
...

Actual result:
--------------
...
    [Make] => 
    [Model] => GE Z6 v1.00
...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-17 14:41 UTC] tony2001@php.net
Looks like there is some Unicode in the exif tags.
Can you check it out?
 [2006-08-17 22:29 UTC] camka at email dot ee
As i can see from PhotoStudio's Markers Exif Info tab both camera make and camera model fields are ascii strings. Can i ask you where you got the unicode thing from?
 [2006-08-17 22:34 UTC] tony2001@php.net
See the output of exif_read_data(). It looks pretty much like a b0rked unicode.
 [2006-08-18 07:07 UTC] camka at email dot ee
That's what i get on output. No unicode data in there as far as i can see.

Array
(
    [FileName] => 16722_DKGY6J.jpg
    [FileDateTime] => 1155822608
    [FileSize] => 43699
    [FileType] => 2
    [MimeType] => image/jpeg
    [SectionsFound] => ANY_TAG, IFD0, EXIF
    [COMPUTED] => Array
        (
            [html] => width="600" height="450"
            [Height] => 450
            [Width] => 600
            [IsColor] => 1
            [ByteOrderMotorola] => 0
            [ApertureFNumber] => f/74099368.0
            [FocusDistance] => 0.77m
            [UserComment] => Y
        )

    [ImageDescription] => IF
    [Make] => 
    [Model] => GE Z6 v1.00
    [XResolution] => 1128877647/1229791297
    [YResolution] => 1414287182/1229201473
    [ResolutionUnit] => 2
    [Software] => GITAL CAMERA
    [DateTime] => 
    [WhitePoint] => Array
        (
            [0] => 1162297677/3562016
            [1] => 808464896/925907510
        )

    [PrimaryChromaticities] => Array
        (
            [0] => 540095034/825898801
            [1] => 875838008/0
            [2] => 1111490560/15
            [3] => 1111490560/15
            [4] => 1111490560/15
            [5] => 1111490560/15
        )

    [YCbCrCoefficients] => Array
        (
            [0] => 1111490560/15
            [1] => 1111490560/15
            [2] => 1111490560/15
        )

    [YCbCrPositioning] => 1
    [ReferenceBlackWhite] => Array
        (
            [0] => 1111490560/15
            [1] => 1111490560/15
            [2] => 1111490560/15
            [3] => 1111490560/15
            [4] => 1111490560/15
            [5] => 1111490560/15
        )

    [Exif_IFD_Pointer] => 468
    [ExposureTime] => 1111490560/15
    [FNumber] => 1111490560/15
    [ExposureProgram] => 8
    [ISOSpeedRatings] => Array
        (
            [0] => 50
            [1] => 50
        )

    [ExifVersion] => 0220
    [DateTimeOriginal] => 
    [DateTimeDigitized] => 
    [CompressedBitsPerPixel] => 942750263/3421242
    [ShutterSpeedValue] => 808464896/925907510
    [ApertureValue] => 540095034/825898801
    [BrightnessValue] => 875838008/0
    [ExposureBiasValue] => 1111490560/15
    [MaxApertureValue] => 1111490560/15
    [SubjectDistance] => 1111490560/1449132047
    [MeteringMode] => 5
    [LightSource] => 0
    [Flash] => 88
    [FocalLength] => 1111490668/15
    [UserComment] => Y
    [FlashPixVersion] => 0010
    [ColorSpace] => 1
    [ExifImageWidth] => 2816
    [ExifImageLength] => 2112
    [FocalPlaneXResolution] => 1111490560/-960495601
    [FocalPlaneYResolution] => 1111490605/15
    [FocalPlaneResolutionUnit] => 0
    [ExposureIndex] => 1111490560/1747910671
    [SensingMethod] => 0
    [FileSource] => 0
    [SceneType] => 0
)
 [2006-09-11 14:27 UTC] iliaa@php.net
According to exiftags the image contains a number of corrupt 
exif properties, which subsequently cause some tags to be 
mis-handled.

exiftags: field count mismatch (DateTime)
exiftags: field count mismatch (DateTimeOriginal)
exiftags: field count mismatch (DateTimeDigitized)
exiftags: field type mismatch (ShutterSpeedValue)
exiftags: field type mismatch (BrightnessValue)
exiftags: field type mismatch (ExposureBiasValue)
exiftags: field type mismatch (FileSource)
exiftags: field type mismatch (SceneType)
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Wed Jun 20 19:01:52 2018 UTC