Options

Image Sizes

bmcbridebmcbride Registered Users Posts: 7 Big grins

When we upload an image, and then pull the image size details using the !sizedetails endpoint, we don't always get all of the possible image sizes. If we pull the image sizes again the next day, there may be more image sizes that weren't there after creation. We tried waiting until more than just the original image size is returned, but that proved to not always be a complete set of sizes either. What is the best way to ensure we have all of the potential image sizes that will be generated?

Tagged:

Comments

  • Options
    rnrjoshrnrjosh Registered Users Posts: 266 Major grins

    All the available display sizes (that are allowed in the gallery's settings) should be available as soon as an image has completed uploading and "processing". The processing step typically only takes a few seconds after an image is successfully uploaded. One thing to note is that if the Maximum Display Size setting in the gallery settings is restricted to a specific size, you won't see image sizes larger than that size appear at the !sizedetails endpoint. Changing that setting will allow different display size options to appear at that endpoint.

    If you have more questions about that, please send us an email to our helpdesk (help@smugmug.com) and send us a link to a specific photo that isn't showing you all the display sizes you think should appear. We can take a closer look and advise from there.

    Josh
    SmugMug Support Hero
  • Options
    bmcbridebmcbride Registered Users Posts: 7 Big grins

    The issue that we are running into is that we upload the image, and then try and grab the size details to send to a 3rd party software. That size details is sometimes incomplete because processing takes longer than it takes for the system to call the API. We have added a looping and a pause. Is there a certain image size that always process last or is there a way I can check if the images is still processing the different sizes?

  • Options
    rnrjoshrnrjosh Registered Users Posts: 266 Major grins

    I'm not 100% sure on the precise order of operations as for the creation of the display sizes, as the processing step happens so quickly. The various display sizes should be created essentially at the same time. The time of the overall image processing step can vary depending on the size of the image (and other factors), but in general, all the available display sizes should typically be available within a few seconds to around a minute or so after the upload is successful in most cases, if that helps you with the timing of your API calls.

    Josh
    SmugMug Support Hero
Sign In or Register to comment.