https://bugzilla.wikimedia.org/show_bug.cgi?id=23834
Summary: Invalid "thumbwidth" and "thumbheight" when
thumbnailing larger than original image
Product: MediaWiki
Version: 1.17-svn
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Normal
Component: API
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
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.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l