https://bugzilla.wikimedia.org/show_bug.cgi?id=17791





--- Comment #2 from Brion Vibber <br...@wikimedia.org>  2009-03-16 18:35:52 UTC 
---
Just ask for a thumb of a particular size:

http://en.wikisource.org/w/api.php?action=query&titles=Image:Summary_for_B-23.gif&prop=imageinfo&iiprop=url|size&iiurlwidth=320

It'll give you back thumbnail information, which will be scaled or not as
appropriate:

<ii
size="36823"
width="850"
height="1099"
thumburl="http://upload.wikimedia.org/wikisource/en/1/14/Summary_for_B-23.gif";
thumbwidth="320"
thumbheight="414"
url="http://upload.wikimedia.org/wikisource/en/1/14/Summary_for_B-23.gif";
descriptionurl="http://en.wikisource.org/wiki/File:Summary_for_B-23.gif"; />

You need only use the values returned to you and don't worry about trying to
decide whether to scale anything yourself... The internal system already took
care of that. :)


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to