Page MenuHomePhabricator

Need "thumbmime" result in "imageinfo" query
Closed, ResolvedPublic

Description

Author: pol

Description:
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>


Version: 1.17.x
Severity: enhancement

Details

Reference
bz23835

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:09 PM
bzimport set Reference to bz23835.

pol wrote:

Thanks much for fixing this fast. When is the new API pushed to the servers?