# A very cool image tip!

**URL:** <https://forum.adalo.com/t/a-very-cool-image-tip/1569>\
**Category:** Resources & Tutorials\
**Created:** [May 27, 2020, 7:07am UTC](https://forum.adalo.com/t/a-very-cool-image-tip/1569 "2020-05-27T07:07:38Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrice](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/patrice/32/486_2.png) [@Patrice](https://forum.adalo.com/u/Patrice)\
**Post date:** [May 27, 2020, 7:07am UTC](https://forum.adalo.com/t/a-very-cool-image-tip/1569/1 "2020-05-27T07:07:38Z")

</div>

I came across this tip by chance, and I share, in the hope that it interests other members of the forum.

If your app have to work with a lot of images, notably via image pickers, you will have noticed that the stored images are sometimes very heavy. They receive almost no treatment.

So instead of using the call to the image of the database, I use the url of the image stored in the database.

And I realized that the images were stored in reality on [https://www.imgix.com](https://www.imgix.com) which offers a lot of cool parameters, notably to considerably reduce the weight of the image (and suddenly the loading time of the apps) and a lot of other cool stuffs. You just have to past parameters after your URL image in Adalo.

You can test parameters here:

> **[Sandbox • imgix • Real-time image processing and image CDN](https://sandbox.imgix.com/create)**
>
> With imgix you can resize and process images in real-time with with simple URL commands. Enter an imgix URL or click an example to have Sandbox break down each image transformation.

For example, without visible loss of quality on one of my images, the weight went from 1.5MB to 60KB …

---

<div class="post-metadata">

**Author:** ![Arun](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Arun](https://forum.adalo.com/u/Arun)\
**Post date:** [May 27, 2020, 7:43am UTC](https://forum.adalo.com/t/a-very-cool-image-tip/1569/2 "2020-05-27T07:43:04Z")

</div>

Excellent tip Patrice. Thanks a ton for this. I have craeted about 150 test users all with images. For different screens showing filtered users, I am having to call image from the db. I’ll use this tip to save some space.

---

<div class="post-metadata">

**Author:** ![Arun](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Arun](https://forum.adalo.com/u/Arun)\
**Post date:** [May 27, 2020, 8:28am UTC](https://forum.adalo.com/t/a-very-cool-image-tip/1569/3 "2020-05-27T08:28:14Z")

</div>

Patrice, can I check something. Do I need to create an imgix account to do the weight reduction? or can I do it through Adalo itself?

---

<div class="post-metadata">

**Author:** ![Patrice](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/patrice/32/486_2.png) [@Patrice](https://forum.adalo.com/u/Patrice)\
**Post date:** [May 27, 2020, 8:31am UTC](https://forum.adalo.com/t/a-very-cool-image-tip/1569/4 "2020-05-27T08:31:26Z")

</div>

No account is needed, you juste have to paste parameters after your Adalo URLs

---

<div class="post-metadata">

**Author:** ![Patrice](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/patrice/32/486_2.png) [@Patrice](https://forum.adalo.com/u/Patrice)\
**Post date:** [May 27, 2020, 8:36am UTC](https://forum.adalo.com/t/a-very-cool-image-tip/1569/5 "2020-05-27T08:36:28Z")

</div>

By default the URL structure is something like this :

“[https://adalo-uploads.imgix.net/f79b38e4469130bc309e593d89333d4a26d611b3489fd692b0d46f9ab9cd890d.png?orient](https://adalo-uploads.imgix.net/f79b38e4469130bc309e593d89333d4a26d611b3489fd692b0d46f9ab9cd890d.png?orient)”

If you want to compress it you have to add for example “&w=600&auto=compress” just after the current URL

“[https://adalo-uploads.imgix.net/f79b38e4469130bc309e593d89333d4a26d611b3489fd692b0d46f9ab9cd890d.png?orient&w=600&auto=compress](https://adalo-uploads.imgix.net/f79b38e4469130bc309e593d89333d4a26d611b3489fd692b0d46f9ab9cd890d.png?orient&w=600&auto=compress)”

---

<div class="post-metadata">

**Author:** ![KenanDada](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/kenandada/32/8455_2.png) [@KenanDada](https://forum.adalo.com/u/KenanDada)\
**Post date:** [May 27, 2020, 11:25am UTC](https://forum.adalo.com/t/a-very-cool-image-tip/1569/6 "2020-05-27T11:25:36Z")

</div>

Thanks a loooot man!!  
so, i only have to add that &w600&auto=compress at the end of the URL and thats it?

---

<div class="post-metadata">

**Author:** ![sangana](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@sangana](https://forum.adalo.com/u/sangana)\
**Post date:** [May 28, 2020, 3:16pm UTC](https://forum.adalo.com/t/a-very-cool-image-tip/1569/7 "2020-05-28T15:16:35Z")

</div>

Salut Patrice,

dis moi je viens de commencer sur Adalo et je ne sais pas pourquoi mais quand j’appelle une image de ma base wp il me met une image cassée. Est-ce qu’il est possible d’appeler des images depuis la base ou adalo doit les copier sur son répertoire obligatoirement ?

ça me parait bizarre que l’on ne puisse pas appeler dynaliquement des images du bdd…

Encore merci !

Sangana

---

<div class="post-metadata">

**Author:** ![samspurrell](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@samspurrell](https://forum.adalo.com/u/samspurrell)\
**Post date:** [June 13, 2020, 5:47pm UTC](https://forum.adalo.com/t/a-very-cool-image-tip/1569/8 "2020-06-13T17:47:35Z")

</div>

Hey Patrice, thanks so much for this. Game changer!

---

<div class="post-metadata">

**Author:** ![ChristopheHK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/christophehk/32/1179_2.png) [@ChristopheHK](https://forum.adalo.com/u/ChristopheHK)\
**Post date:** [June 19, 2020, 9:47am UTC](https://forum.adalo.com/t/a-very-cool-image-tip/1569/9 "2020-06-19T09:47:18Z")

</div>

I was going to use Cloudinary to resize and compress images + some other transformations…

➡ Many thanks @Patrice ! 👍🏻

Frenchies are in da place! 😄

---

<div class="post-metadata">

**Author:** ![speakupboy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/speakupboy/32/30235_2.png) [@speakupboy](https://forum.adalo.com/u/speakupboy)\
**Post date:** [June 19, 2020, 4:01pm UTC](https://forum.adalo.com/t/a-very-cool-image-tip/1569/10 "2020-06-19T16:01:57Z")

</div>

@KenanDada actually thats &w=600 (you need an “=” between w and 600). Easy to leave off and then it doesn’t work. 🙂

---

<div class="post-metadata">

**Author:** ![Tommen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tommen/32/5383_2.png) [@Tommen](https://forum.adalo.com/u/Tommen)\
**Post date:** [August 1, 2020, 7:31am UTC](https://forum.adalo.com/t/a-very-cool-image-tip/1569/11 "2020-08-01T07:31:20Z")

</div>

Hello guys, coming back to this topic, do you please know if you can use this even if image is coming from collection rather than from URL?

---

<div class="post-metadata">

**Author:** ![speakupboy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/speakupboy/32/30235_2.png) [@speakupboy](https://forum.adalo.com/u/speakupboy)\
**Post date:** [August 1, 2020, 8:11am UTC](https://forum.adalo.com/t/a-very-cool-image-tip/1569/12 "2020-08-01T08:11:46Z")

</div>

You can refer to images in an adalo collection either by the image directly or by selecting image url and then selecting the url as the image url from adalo. Using the second option you have the possibility to use the the trick above.

So:  
insert image  
image source=url  
url=collection\>image\>url

I’ll do a video later when I’m back at my computer

---

<div class="post-metadata">

**Author:** ![ctboita](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ctboita/32/2162_2.png) [@ctboita](https://forum.adalo.com/u/ctboita)\
**Post date:** [August 1, 2020, 7:33pm UTC](https://forum.adalo.com/t/a-very-cool-image-tip/1569/13 "2020-08-01T19:33:14Z")

</div>

Does this work for multiple images in the DB that are being called into a list from a collection?

Also, is there a way to have images compress upon upload? I am building a couple of apps that will allow the user to upload images from their phone camera and would like for the image size to be reduced upon upload to keep the overall DB size small.

---

<div class="post-metadata">

**Author:** ![Tommen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tommen/32/5383_2.png) [@Tommen](https://forum.adalo.com/u/Tommen)\
**Post date:** [August 1, 2020, 7:43pm UTC](https://forum.adalo.com/t/a-very-cool-image-tip/1569/14 "2020-08-01T19:43:03Z")

</div>

I am currently trying to figure that out too, good point!

---

<div class="post-metadata">

**Author:** ![speakupboy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/speakupboy/32/30235_2.png) [@speakupboy](https://forum.adalo.com/u/speakupboy)\
**Post date:** [August 3, 2020, 8:12am UTC](https://forum.adalo.com/t/a-very-cool-image-tip/1569/15 "2020-08-03T08:12:51Z")

</div>

@ctboita

Yes- it works for wherever you are displaying an image from a collection in Adalo. In my case, I display a list of products and each image is displayed optimised as appropriate to the size. So in the general catalogue, they are small, whereas when you display the detailed view of the item, the image is large (but still optimised).

Re your second question- as far as I know, there is no way to compress images on upload.

---

<div class="post-metadata">

**Author:** ![parasocks](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/parasocks/32/3055_2.png) [@parasocks](https://forum.adalo.com/u/parasocks)\
**Post date:** [October 9, 2020, 10:38am UTC](https://forum.adalo.com/t/a-very-cool-image-tip/1569/16 "2020-10-09T10:38:12Z")

</div>

Great info thanks. Just a note that if you do it this way you’re adding an extra potential future failure point so you should be careful. If Imgix went out of business, or Adalo decided to migrate away from them to a better/cheaper/different/more modern solution years from now, you could lose all your images.

Maybe should also save them in your adalo database as a fallback so if the worst happens you’d have options.

---

<div class="post-metadata">

**Author:** ![rickman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/rickman/32/555_2.png) [@rickman](https://forum.adalo.com/u/rickman)\
**Post date:** [October 9, 2020, 5:40pm UTC](https://forum.adalo.com/t/a-very-cool-image-tip/1569/17 "2020-10-09T17:40:03Z")

</div>

Or at least save to an airtable. They’re not going anywhere.

---

<div class="post-metadata">

**Author:** ![parasocks](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/parasocks/32/3055_2.png) [@parasocks](https://forum.adalo.com/u/parasocks)\
**Post date:** [October 9, 2020, 5:52pm UTC](https://forum.adalo.com/t/a-very-cool-image-tip/1569/18 "2020-10-09T17:52:52Z")

</div>

Can’t ever be too sure. Parse was a great backend service for a while, got big, got bought out by Facebook, and then Facebook shuttered it.

Obviously better than nothing though!

---

<div class="post-metadata">

**Author:** ![kollekzioner](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/kollekzioner/32/2867_2.png) [@kollekzioner](https://forum.adalo.com/u/kollekzioner)\
**Post date:** [October 29, 2020, 3:53pm UTC](https://forum.adalo.com/t/a-very-cool-image-tip/1569/19 "2020-10-29T15:53:09Z")

</div>

Dear friends, is there a way to use this tip as the user posts a photo? I tried to update the newly created table value by adding “&w600&auto=compress” to the URL magic text but that does not work…  
I mean, as the user uploads a photo, the size of the photo is immediately reduced.  
Is there a way to do that?..  
Thank you!

---

<div class="post-metadata">

**Author:** ![anon78309838](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@anon78309838](https://forum.adalo.com/u/anon78309838)\
**Post date:** [November 3, 2020, 10:18am UTC](https://forum.adalo.com/t/a-very-cool-image-tip/1569/21 "2020-11-03T10:18:29Z")

</div>

There is currently no way to do that.

[Next page](https://forum.adalo.com/t/a-very-cool-image-tip/1569.md?page=2)
