Last modified: 2011-04-30 01:21:41 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T26423, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24423 - EXIF parser does not correctly recognize some fields of an image
EXIF parser does not correctly recognize some fields of an image
Status: RESOLVED DUPLICATE of bug 13172
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.15.x
Macintosh Mac OS X 10.4
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-18 03:06 UTC by Michael Smith
Modified: 2011-04-30 01:21 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
The subject image (348.97 KB, image/jpeg)
2010-07-18 03:06 UTC, Michael Smith
Details
The command line output of EXIF data from the subject file (15.54 KB, text/plain)
2010-07-18 03:08 UTC, Michael Smith
Details
The php file to generate 'out.txt' (326 bytes, text/plain)
2010-07-18 03:09 UTC, Michael Smith
Details
Log excerpt of rejected EXIF tags plus tags actually entered (1.93 KB, text/plain)
2010-07-18 03:10 UTC, Michael Smith
Details

Description Michael Smith 2010-07-18 03:06:47 UTC
Created attachment 7573 [details]
The subject image

I'm doing some evaluation on a closed system and discovered that some EXIF fields are incorrectly analyzed and rejected.

Specifically, I have an image (attached) which contains a user note (my abbreviated copyright message, and contains complete GPS information.

The Usernote is rejected because it is an ASCII message.  Why, when that's exactly what the user note is supposed to be?

The GPS Latitude and Longitude are both rejected because the parser is looking for a single RATIONAL number, but the field is actually an array.

GSP altitude reference is rejected as a VALUE for unknown reasons.

GPS Time Stamp is rejected as an ARRAY, although the date is accepted, which is part of the same array.

I am not expert in evaluating these problems and have very primitive debug tools, but I've been able to collect several files of information demonstrating this problem.

Attached files are 'out.txt' which is the EXIF data from the subject image output with the file 'phpReadExif.php' run from a command line.  The subject image is 'D3Z_0175.jpg', which is my own image, and 'Reject Debug.txt' contains an excerpt from the debug logfile.

The image was shot with a Nikon camera and processed with Nikon and Adobe software, but I've tried numerous other Exif readers, all of which correctly parse the file.
Comment 1 Michael Smith 2010-07-18 03:08:38 UTC
Created attachment 7574 [details]
The command line output of EXIF data from the subject file
Comment 2 Michael Smith 2010-07-18 03:09:21 UTC
Created attachment 7575 [details]
The php file to generate 'out.txt'
Comment 3 Michael Smith 2010-07-18 03:10:38 UTC
Created attachment 7576 [details]
Log excerpt of rejected EXIF tags plus tags actually entered
Comment 4 Michael Smith 2010-07-18 03:13:20 UTC
Contact me at indicated email if further information is needed.

Thanks!
=Mike
Comment 5 Guillaume Paumier 2010-07-18 08:36:08 UTC
Cc:ing Bawolff who's currently working on improving the metadata extraction.
Comment 6 OverlordQ 2010-07-18 08:37:35 UTC

*** This bug has been marked as a duplicate of bug 13172 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links