Thank you for the response, Nitai. We are using Razuna 1.7 with the H2 database, and definitely using API2. It appears to only be an issue for renditions that have been added via upload (as in ID # 9CA60… in the screenshot below.
I’m wanting to use the “Use as Preview Image” option to identify the preferred rendition to appear in various Web applications. I’m comparing the aspect ratio of the Thumbnail with the aspect ration of the original and any renditions to pull what matches the “Preview Image” (“thumb”).
Is there a better way to pull a specific rendition without explicitly defining it by ID in another application? Or, is there a DB field value for the “Use as Preview Image” that I can query in the API to go about it that way instead?
Since the thumbnails are by default 400pxx400px, they usually serve as
preview images. In the JSON data you can see them marked as “thumb”.
Renditions can have their own metadata, so you could theoretically add your
own value to renditions and then parse the renditions according to this
value in order to pull the right rendition into your app. Something along
those lines.