Last modified: 2013-03-25 15:22:49 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 T34868, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32868 - incorrect duplicate EXIF IFD0:Orientation tag handling ("Warning: Duplicate Orientation tag in IFD0")
incorrect duplicate EXIF IFD0:Orientation tag handling ("Warning: Duplicate O...
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.18.x
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 31504
  Show dependency treegraph
 
Reported: 2011-12-08 01:27 UTC by Saibo
Modified: 2013-03-25 15:22 UTC (History)
4 users (show)

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


Attachments

Description Saibo 2011-12-08 01:27:04 UTC
Was there a recent change in EXIF orientation processing on Wikimedia Commons?  Sadly mediawiki rotates files if a duplicate orientation tag (with conflicting info!) is present at image files. 

There was a bug in Apple's iPhoto4 and it seems we have some files from it ;)
input this in google: "Warning: Duplicate Orientation tag in IFD0" → Apple products. 

Example: one tag is 1 and another is 8. mediawiki uses the 8 instead of ignoring this obvious crap.

GIMP, gthumb do not do this.  They apparently only use the tag if there is only one ;)

Example: https://commons.wikimedia.org/wiki/File:Pol_Roger_pupitre_4.jpg

Or see my upload log of 2011-12-07 and -08 https://commons.wikimedia.org/w/index.php?title=Special%3ALog&type=upload&user=Saibo&page=&year=&month=-1&tagfilter=&hide_patrol_log=1 I have fixed some.
Comment 1 Saibo 2011-12-08 01:27:56 UTC
Question: how exactly does WM extract? And: I think it should be ignored in such cases.
Comment 2 Saibo 2011-12-08 14:14:41 UTC
Current last 500 uploads by Rotatebot: 1 such a case (0.2 %)
Comment 3 Brion Vibber 2011-12-08 19:36:01 UTC
How do we know which one is the 'correct' one?
Comment 4 Bawolff (Brian Wolff) 2011-12-08 19:57:59 UTC
As an aside, this is an upstream issue, since we don't extract the exif ourselves.
Comment 5 Saibo 2011-12-09 01:10:09 UTC
(In reply to comment #3)
> How do we know which one is the 'correct' one?
We do not know - we can just guess or ask the user if we would be an interactive program. ;-)  But it seems to be a bad idea to rotate. Do you cross the street if someone tells you "there is no car coming" and another person "there comes a car, stop!"?

(In reply to comment #4)
> As an aside, this is an upstream issue, since we don't extract the exif
> ourselves.
Which tool and which settings do we use? Is it reported?
At exiftool you need to add parameter -a to get also duplicate tags. If you leave it away it does not output both. Just one - I do not know which one or if it ignores both then.
Comment 6 Bawolff (Brian Wolff) 2011-12-09 03:45:10 UTC
> 
> (In reply to comment #4)
> > As an aside, this is an upstream issue, since we don't extract the exif
> > ourselves.
> Which tool and which settings do we use? Is it reported?
> At exiftool you need to add parameter -a to get also duplicate tags. If you
> leave it away it does not output both. Just one - I do not know which one or if
> it ignores both then.

We use PHP's exif module (which is a piece of crap for a variety of reasons, and I've contemplated just re-writing its functionality in php more than once).

I think exiftool goes with the first one, and we use the last one, but that's just a guess.
Comment 7 Saibo 2011-12-09 13:01:12 UTC
(In reply to comment #6)
I do now use this:
exiftool -IFD0:Orientation -b -a
Outputs all (-a) tags and therefore provides the full control over interpretation. ;-)
So for Commons the priority is maybe not more "high major".
Comment 8 Saibo 2011-12-09 14:15:19 UTC
In case it is interesting for someone: Current rate in Rotatebot's uploads: 0.5 % (out of 840 images). Until now all images had "Quicktime" in their EXIF info.

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


Navigation
Links