Page MenuHomePhabricator

Invalid "thumbwidth" and "thumbheight" in "imageinfo" query when thumbnailing larger than original image
Closed, ResolvedPublic

Description

Author: pol

Description:
Original image is http://en.wikipedia.org/wiki/File:IBooks_logo.png which is 49x50 pixels.

Here's a request for a thumbnail that fits in 600x600:
http://en.wikipedia.org/w/api.php?action=query&prop=imageinfo&titles=File:IBooks_logo.png&iiprop=timestamp%7Curl%7Csize%7Cdimensions%7Cmime%7Cmetadata&redirects&format=xmlfm&iiurlwidth=600&iiurlheight=600

And the relevant portion of the returned XML:
<imageinfo>
<ii timestamp="2010-04-21T21:55:46Z" size="5111" width="49" height="50" thumburl="http://upload.wikimedia.org/wikipedia/en/4/4d/IBooks_logo.png" thumbwidth="588" thumbheight="600" url="http://upload.wikimedia.org/wikipedia/en/4/4d/IBooks_logo.png" descriptionurl="http://en.wikipedia.org/wiki/File:IBooks_logo.png" metadata="" mime="image/png" />
</imageinfo>

Since the image is smaller than the requested thumbnail, the API correctly returns the original file instead of a scaled up version, but "thumbwidth" and "thumbheight" are wrong.


Version: 1.17.x
Severity: normal

Details

Reference
bz23834

Event Timeline

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

pol wrote:

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

To save duplicating responses, I'll just reply here.

It's usually as and when. If it's a bug fix, it'll usually be higher priority, but if you *really* need these things, poking a sysadmin might give some results

pol wrote:

These 2 issues are not urgent, but I'd certainly like to see them fixed in the next couple weeks.

Are there regular server updates like once a week or once a month, or do I have to ask a sysadmin? If the later, could you provide pointers? Thanks.