Ryan,
Thanks a lot. I modified your query as a XML query and had good success.
Let me give the query I used and the information I was able to get for
reference in case some one has a similar issue.

http://commons.wikimedia.org/w/api.php?action=query&prop=imageinfo&format=xml&iiprop=url|size&titles=File:Greek
- Apollo - Walters 59533.jpg&iiurlwidth=100&iiurlheight=100
 produces a XML response given below. The query response gives the URL of
the image as well as URL of  thumbnail created with the max width and height
parameter maintaining the aspect ratio.


<?xml version="1.0"?>
-<api>-<query>-<pages>-<page title="File:Greek - Apollo - Walters 59533.jpg"
ns="6" pageid="18787772" imagerepository="local">-<imageinfo><ii
descriptionurl="http://commons.wikimedia.org/wiki/File:Greek_-_Apollo_-_Walters_59533.jpg";
url="http://upload.wikimedia.org/wikipedia/commons/3/37/Greek_-_Apollo_-_Walters_59533.jpg";
thumbheight="100" thumbwidth="92"
thumburl="http://upload.wikimedia.org/wikipedia/commons/thumb/3/37/Greek_-_Apollo_-_Walters_59533.jpg/92px-Greek_-_Apollo_-_Walters_59533.jpg";
height="1800" width="1649"
size="1734533"/></imageinfo></page></pages></query></api>





--
View this message in context: 
http://wikimedia.7.n6.nabble.com/Api-Query-for-thumbnail-images-title-etc-in-a-category-tp4984759p4985071.html
Sent from the WikiMedia Commons mailing list archive at Nabble.com.

_______________________________________________
Commons-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/commons-l

Reply via email to