As far as I know:
-
ImgIX is used as a CDN to “deliver” images to the apps.
-
Whether images are reformatted or not, it is still not very clear for me. When you try to get the image from collection, using URL, Adalo automatically adds “?orient” to the image path. This causes the size change, while keeping original dimensions. Not sure about the quality.
-
But when you remove this “?orient” from the image path, you can get the original image
I guess only Adalo dev team has all the details -
there is no built-in methods to get image size, but request to the API has “size” field in the reply. Here is the example:
{"id":1,"Name":"Leaves","Photo":{"url":"https://adalo-uploads.imgix.net/2875301c0344f7fa97b1ce28ef45558fc8d00bca6280b23996e072cc40b5203c.jpg","size":73690,"width":640,"height":853,"filename":"file.jpg"},"EX5_Photo Category":[2],"Comment":"Comment for Other Cat","created_at":"2020-11-25T17:06:21.516Z","updated_at":"2021-01-29T17:54:59.279Z"}
So it is possible to get the size of the image from the DB. I’d say, with similar to this solution (How to Access Record ID information - #26 by pford) one can even have size field in the DB and update it automatically.
Best,
Victor.