Last modified: 2010-06-08 12:51:36 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 T25834, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23834 - Invalid "thumbwidth" and "thumbheight" in "imageinfo" query when thumbnailing larger than original image
Invalid "thumbwidth" and "thumbheight" in "imageinfo" query when thumbnailing...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.17.x
All All
: Normal normal (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-08 08:59 UTC by Pol
Modified: 2010-06-08 12:51 UTC (History)
6 users (show)

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


Attachments

Description Pol 2010-06-08 08:59:44 UTC
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.
Comment 1 Sam Reed (reedy) 2010-06-08 12:16:40 UTC
Fixed in r67611
Comment 2 Pol 2010-06-08 12:47:01 UTC
Thanks much for fixing this fast. When is the new API pushed to the servers?
Comment 3 Sam Reed (reedy) 2010-06-08 12:49:01 UTC
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
Comment 4 Pol 2010-06-08 12:51:36 UTC
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.

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


Navigation
Links