If you want to get pageimages for all results of search, you need to execute search as a generator:

http://en.wikipedia.org/w/api.php?action=query&generator=search&gsrsearch=francis%20picabia&format=jsonfm&prop=pageimages&pithumbsize=100&pilimit=20&gsroffset=10

Petr Onderka
[[en:User:Svick]]


On Mon, May 6, 2013 at 5:41 PM, Luigi Assom <luigi.assom@gmail.com> wrote:
Hello,

I have another question on pageimages:

I can't get it work with list=search:

http://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=francis%20picabia&format=jsonfm&prop=pageimages&pithumbsize=100&pilimit=20&continue&sroffset=10

could you please help in understanding if i am doing wrong smtg?
also, is there any planned release of api 2.0 ?
What about the legacy and normalization of continue parameters?

thank you!




On Wed, May 1, 2013 at 10:46 AM, Max Semenik <maxsem.wiki@gmail.com> wrote:
On 29.04.2013, 22:26 Luigi wrote:

> Thank you Max!
> quick, neat and clear.

> Just a note: I'd see useful the possibility to re-size an image not
> only by largest dimension, but also by width (or height)
> so that one could have all img with same width/height, very yuseful
> for formatting on mobile handsets.

> Do you think it could be useful and would you consider to modify the code for this feature?

It will produce weird results for images with unusual dimensions: very
wide or very narrow. We use pithumbsize with good results for mobile.



--
Best regards,
  Max Semenik ([[User:MaxSem]])




--
Luigi Assom

Skype contact: oggigigi

_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api