Oh I see, so if it is portrait, it sets the height, otherwise the width.
So how to have a set of images all of standard size by width ? maybe committing on github to modifiy the code?
also, is this an api of use which won't be dismissed for the roadmap of wikipedia "api 2.0" ? I read it is still experimental on the extension panel and last commit 2012 - or should i consider it stable?
On Sun, Apr 28, 2013 at 10:38 PM, Platonides platonides@gmail.com wrote:
On 28/04/13 21:41, Luigi Assom wrote:
Hi platonides!
thank you for following up: plz have a look to this simple query:
http://en.wikipedia.org/w/api.php?action=query&prop=pageimages&title...
as you can see, the height is set to 100, not width. Am I missing smtg?
Ok, after investigating it, it turns out that the code is checking that none of them is bigger than pithumbsize. As Albert Einstein photo has a portrait orientation, it apparently affects only the height. You can see the opposite effect in an article with a landscape image, eg.
http://en.wikipedia.org/w/api.php?action=query&prop=pageimages&title...
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api