Accuracy of image sizes?
winston
Registered Users Posts: 19 Big grins
Hi,
Have a look at this image...
http://blackknights.smugmug.com/photos/514495266_NW2nJ-M.jpg
The "-M" makes it medium size, but if you look at the image properties of the image displayed the height of the image is 450px. However on the "Share This" page it says that "Medium images are up to 600 px wide by 400 px tall".
I'm posting it here in the api forum as I need to understand what I'm getting when requesting different sizes. The above suggests that the algorithm for picking "Medium" size does not conform to what is stated on the website.
Thanks,
Peter
Have a look at this image...
http://blackknights.smugmug.com/photos/514495266_NW2nJ-M.jpg
The "-M" makes it medium size, but if you look at the image properties of the image displayed the height of the image is 450px. However on the "Share This" page it says that "Medium images are up to 600 px wide by 400 px tall".
I'm posting it here in the api forum as I need to understand what I'm getting when requesting different sizes. The above suggests that the algorithm for picking "Medium" size does not conform to what is stated on the website.
Thanks,
Peter
0
Comments
My guess is that the documentation is slightly out. For medium images, we always to try generate an image that is 600x450, so for a landscape image...we size based on the longest side being 600px. Alternately, for a portrait image we scale based on the longest side being 450px
Max image sizes as below...
Small, 400x300
Landscape, longest side 400px
Portrait, longest side 300px
Medium, 600x450
Landscape, longest side 600px
Portrait, longest side 450px
Large, 800x600
Landscape, longest side 800px
Portrait, longest side 600px
etc..
Hope this helps.
Cheers,
David
SmugMug API Developer
My Photos