Last modified: 2014-05-22 22:41:19 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 T34192, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32192 - Upload API doesn't return metadata for some images
Upload API doesn't return metadata for some images
Status: NEW
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.18.x
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: testme
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-03 21:56 UTC by Neil Kandalgaonkar
Modified: 2014-05-22 22:41 UTC (History)
5 users (show)

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


Attachments
iPhone created image with GPS tags, doesn't seem to work (1.08 MB, image/jpeg)
2011-11-03 21:56 UTC, Neil Kandalgaonkar
Details
Image from Nikon D300 with GPS tags, seems to work (91.57 KB, image/jpeg)
2011-11-03 21:57 UTC, Neil Kandalgaonkar
Details
dump from exiv2 for two different images, grepped for GPS data (2.49 KB, text/plain)
2011-11-03 21:58 UTC, Neil Kandalgaonkar
Details

Description Neil Kandalgaonkar 2011-11-03 21:56:26 UTC
Created attachment 9358 [details]
iPhone created image with GPS tags, doesn't seem to work

Somewhere in this chain:

- uploading image to stash
- using stashimageinfo API request
- parsing Exif
- returning information

I am not getting GPS data for some images from my iPhone that I know have GPS data. See attached.

A hex dump of an EXIF-parsing tool (exiv2) shows that the images have comparable data -- in fact the iPhone one has more, including a GPS Timestamp and Altitude.
Comment 1 Neil Kandalgaonkar 2011-11-03 21:57:20 UTC
Created attachment 9359 [details]
Image from Nikon D300 with GPS tags, seems to work
Comment 2 Neil Kandalgaonkar 2011-11-03 21:58:12 UTC
Created attachment 9360 [details]
dump from exiv2 for two different images, grepped for GPS data
Comment 3 Brion Vibber 2011-11-03 22:01:48 UTC
Hmm, uploading the iPhone image onto my local trunk wiki, I see in the exif table on the file page:

Latitude 	36° 47′ 35.4″ N
Longitude 	3° 53′ 50.4″ W
Altitude 	317.396 meters above sea level
Comment 4 Neil Kandalgaonkar 2011-11-03 22:06:11 UTC
(In reply to comment #3)
> Hmm, uploading the iPhone image onto my local trunk wiki, I see in the exif
> table on the file page:
> 
> Latitude     36° 47′ 35.4″ N
> Longitude     3° 53′ 50.4″ W
> Altitude     317.396 meters above sea level

Same here. Strange.
Comment 5 Neil Kandalgaonkar 2011-11-03 22:11:57 UTC
Perhaps this bug is mistitled, The real difference is that for one, we get metadata = null in the API request, and for the other we get full metadata. So possibly something else is blowing up when it tries to get metadata.
Comment 6 Bawolff (Brian Wolff) 2011-11-04 12:04:04 UTC
The api returns data for me on a direct upload (haven't tried testing anything fancy with stash uploading).
Comment 7 Brion Vibber 2011-11-04 18:06:34 UTC
Got a script or procedure to repro the upload stash API sequence?

It looks like stashed files will get their metadata & whatnot read fresh from the original file when ApiQueryStashImageInfo gets called; as long as it's able to detect the file type correctly this _should_ go through the same old code paths in File::getPropsFromPath(), as they do on upload saving proper.

If the stashed file path includes an extension, I think this shouldn't be a problem...

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


Navigation
Links