https://bugzilla.wikimedia.org/show_bug.cgi?id=32410
Web browser: ---
Bug #: 32410
Summary: MediaWiki api doesn't serve EXIF GPSAltitude (and
other tags) as decimals
Product: MediaWiki
Version: 1.18
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Uploading
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
If you upload an image with an EXIF GPSAltitude, and then fetch imageinfo via
the API, you just get the difficult-to-work-with "rational" value, such as
"9395/128". Many other fields, such as FocalLength, GPSTimestamp, etc. are
displayed as rationals.
However GPSLatitude and GPSLongitude are shown with the expected "decimal"
values.
Example: do this API query on test.wikipedia.org.
http://test.wikipedia.org/w/api.php?action=query&titles=File%3ATest_rationals%2Ejpg&prop=imageinfo&iiprop=metadata
A sample result is attached to this bug.
You can also import that file into your own wiki to do testing.
The Exif module that handles bitmaps seems to have the fields tagged correctly
as Exif::RATIONAL, so I'm not sure exactly what is going wrong; whether it's
when the file is uploaded or how we render results in the API.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l