Oh I see, so if it is portrait, it sets the height, otherwise the width.
On 28/04/13 21:41, Luigi Assom wrote:Ok, after investigating it, it turns out that the code is checking that
> 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&titles=Albert%20Einstein&format=jsonfm&pithumbsize=100
>
> as you can see, the height is set to 100, not width.
> Am I missing smtg?
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&titles=New%20Jersey&format=jsonfm&pithumbsize=1000
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api