Album thumbnail..
NitroDesk
Registered Users Posts: 38 Big grins
Probably a dumb question.. Is there an easy way to get a thumbnail for each album when you get the album list?
thanks
-goutham
thanks
-goutham
0
Comments
[url]http://[/url][nickname].smugmug.com/photos/random.mg?AlbumID=[AlbumID]&Size=[Tiny|Thumb|Small|etc]&AlbumKey=[AlbumKey]&rand=[random number]
rand can be excluded, but subsequent calls will most likely retrieve that last thumbnail from the cache.
SmugMug API Developer
My Photos
David,
Thanks that answers my question. So i can assume none of the API methods actually returns it ?
-g
A better way to manage your Online Photos
http://nitrodesk.blogspot.com
<Highlight id="" Key=""/>
But if one has not been set (ie. a random image is displayed for the album image), you will need to use the url above.
SmugMug API Developer
My Photos
Thanks David,
here is the problem i am grappling with.. I show a list of albums to the user when the user refreshes the album list, but i dont really like to get the list of pictures for the album unless the user really has drills into it. This means i wont know which image is set to be the highlight (without additional calls). Ideally, as in most other apis, the album's properties contain either a URL to the image or an indication of which image is set as the thumbnail.
But i think the solution for me us to use the URL method. thanks for that pointer. Just a couple of clarifications though
1. Can i assume everyone wil have the nickname.smugmug.com as valid host names (even those with custom domain names)?
2. If a highlight image has been explicitly set, will the URL method return me that highlight image? (if i skip the random parameter)
thanks!
-g
A better way to manage your Online Photos
http://nitrodesk.blogspot.com
SmugMug API Developer
My Photos
I'm trying that, but for an album I know has a highlight image, a random image is being returned. Any ideas?
Can you confirm that this new Highlight structure should be in the image.getInfo function as stated above?
I'm using the 1.2.2 API and I don't seem to be able to find this Highlight property in either the Album or Image properties.
Any suggestions?
Thanks