CustomSize images.get
jiminy
Registered Users Posts: 10 Big grins
I have been looking at the CustomSize parameter on the smugmug.images.get request in order to get an image sized to 2048 for the new iPad 3. This works quite well except for the several second delay on the server. I assume the server is taking this time to actually generate the requested size image.
I just wanted to check if there is any other recommended way to get a higher resolution image, other than to use the CustomSize parameter. It does slow the download quite a bit with the multisecond delay to generate the image, compared to the X3LargeUrl size for example.
Any comments or suggestions much appreciated.
thanks
Jim
I just wanted to check if there is any other recommended way to get a higher resolution image, other than to use the CustomSize parameter. It does slow the download quite a bit with the multisecond delay to generate the image, compared to the X3LargeUrl size for example.
Any comments or suggestions much appreciated.
thanks
Jim
0
Comments
I'm pulling 30+ image albums with customsizes (altbeit at half the resolution) with negligible performance impact
Could there be some bottleneck in your code causing the delay, such as multiple requests instead of single, large one for example?
Sometimes I see a redirect coming back from the server with a new url that does not have the form of widthxheight.jpg, but rather is just a "normal" url. In those cases the delay from request to first data back is about 300 ms, which is about what I see when downloading an X2LargeUrl. It turns out that in this case the original file size on the server is smaller than my requested 2048 width, so the server just returns my original file directly - hence only a short delay.