API question
Opps
Registered Users Posts: 160 Major grins
I got an idea for a small script and started to look at the API to see if I could get the size of a scaled image. But I couldn't find any info about this, is it not possible or have I missed something (note, I've never used the API so I'm probably missing something)
What I want to do is to make a script that generates some custom markup for me. In order to be able generate this markup I need to know the actual image size of medium and XL sizes of an image.
What I want to do is to make a script that generates some custom markup for me. In order to be able generate this markup I need to know the actual image size of medium and XL sizes of an image.
--
Jan Erik Moström
Jan Erik Moström
0
Comments
Small - 400px
Medium - 600px
Large - 800px
XLarge - 1024px
X2Large - 1280px
X3Large - 1600px
Hope this helps.
Cheers,
David
SmugMug API Developer
My Photos
So that would mean that I had to download the original to get the size?
(which would mean that it would be a smaller download to download medium + XL2 and check the actual dimensions -- or am I missing something)
Jan Erik Moström
no, you can get the dimensions of the original image from method calls like smugmug.images.getInfo.
SmugMug API Developer
My Photos
Thanks. Time to start doing some work
Jan Erik Moström