# Database image size

**URL:** <https://forum.adalo.com/t/database-image-size/12279>\
**Category:** Get Help\
**Created:** [May 6, 2021, 12:24am UTC](https://forum.adalo.com/t/database-image-size/12279 "2021-05-06T00:24:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![camilo1](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@camilo1](https://forum.adalo.com/u/camilo1)\
**Post date:** [May 6, 2021, 12:24am UTC](https://forum.adalo.com/t/database-image-size/12279/1 "2021-05-06T00:24:11Z")

</div>

I have a custom list with pictures. I have created from free images, some times with large size, sometimes smaller. In PWA I thing is slow to load. It will better reduc de image before update the image or the adalo can do that.

I.e. I have images with 1mb, 500kb, 1,5MB. But I do not know what size is in ondatabase.

Someone to explain???

---

<div class="post-metadata">

**Author:** ![Erik](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/erik/32/7849_2.png) [@Erik](https://forum.adalo.com/u/Erik)\
**Post date:** [May 6, 2021, 1:22am UTC](https://forum.adalo.com/t/database-image-size/12279/2 "2021-05-06T01:22:18Z")

</div>

Hi Camilo,

I think what you’re trying to say is you want to reduce the image size before loading it to Adalo. You’ll want to look at a 3rd party image resizer, like [https://www.imgix.com/](https://www.imgix.com/), to reduce images before they’re loaded to Adalo.

Best,  
Erik

---

<div class="post-metadata">

**Author:** ![camilo1](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@camilo1](https://forum.adalo.com/u/camilo1)\
**Post date:** [May 6, 2021, 6:07pm UTC](https://forum.adalo.com/t/database-image-size/12279/3 "2021-05-06T18:07:21Z")

</div>

exactly. But I still in doubt when I upload the image. The database takes the actual size right?

---

<div class="post-metadata">

**Author:** ![Erik](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/erik/32/7849_2.png) [@Erik](https://forum.adalo.com/u/Erik)\
**Post date:** [May 7, 2021, 12:57am UTC](https://forum.adalo.com/t/database-image-size/12279/4 "2021-05-07T00:57:19Z")

</div>

To be honest, I’m not sure. I think Adalo does some resizing and compression.

I also don’t think you can currently see your file sizes in the database right now.

cc: @Victor @theadaloguy

---

<div class="post-metadata">

**Author:** ![Victor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/victor/32/2054_2.png) [@Victor](https://forum.adalo.com/u/Victor)\
**Post date:** [May 7, 2021, 4:24pm UTC](https://forum.adalo.com/t/database-image-size/12279/5 "2021-05-07T16:24:51Z")

</div>

Hi @camilo1 @Erik,

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](https://forum.adalo.com/t/how-to-access-record-id-information/5390/26)) one can even have size field in the DB and update it automatically.

Best,  
Victor.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [May 17, 2021, 4:25pm UTC](https://forum.adalo.com/t/database-image-size/12279/6 "2021-05-17T16:25:12Z")

</div>

Closed on May 17, 2021, 4:25pm UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
