Last modified: 2010-06-08 12:46:34 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 T25835, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23835 - Need "thumbmime" result in "imageinfo" query
Need "thumbmime" result in "imageinfo" query
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.17.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-08 09:08 UTC by Pol
Modified: 2010-06-08 12:46 UTC (History)
6 users (show)

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


Attachments

Description Pol 2010-06-08 09:08:47 UTC
The "imageinfo" API provides a "mime" result, but when asking for a thumbnail, the resulting image might be in a different mime type (e.g. SVG becomes PNG), so a "thumbmime" result would be quite useful.

Example with a SVG file:
http://en.wikipedia.org/w/api.php?action=query&prop=imageinfo&titles=File:IPad_wordmark.svg&iiprop=timestamp%7Curl%7Csize%7Cdimensions%7Cmime%7Cmetadata&redirects&format=xmlfm&iiurlwidth=600&iiurlheight=600

<imageinfo>
<ii timestamp="2010-05-19T10:26:23Z" size="3694" width="225" height="105" thumburl="http://upload.wikimedia.org/wikipedia/commons/thumb/7/76/IPad_wordmark.svg/600px-IPad_wordmark.svg.png" thumbwidth="600" thumbheight="280" url="http://upload.wikimedia.org/wikipedia/commons/7/76/IPad_wordmark.svg" descriptionurl="http://commons.wikimedia.org/wiki/Image:IPad_wordmark.svg" metadata="" mime="image/svg+xml" />
</imageinfo>
Comment 1 Sam Reed (reedy) 2010-06-08 12:41:07 UTC
Fixed in r67616
Comment 2 Pol 2010-06-08 12:46:34 UTC
Thanks much for fixing this fast. When is the new API pushed to the servers?

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


Navigation
Links