# Automatic image resizing and questions

**URL:** <https://forum.adalo.com/t/automatic-image-resizing-and-questions/29274>\
**Category:** Get Help\
**Created:** [July 9, 2022, 2:59pm UTC](https://forum.adalo.com/t/automatic-image-resizing-and-questions/29274 "2022-07-09T14:59:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juano](https://avatars.discourse-cdn.com/v4/letter/j/ba9def/32.png) [@Juano](https://forum.adalo.com/u/Juano)\
**Post date:** [July 9, 2022, 2:59pm UTC](https://forum.adalo.com/t/automatic-image-resizing-and-questions/29274/1 "2022-07-09T14:59:47Z")

</div>

Hello,  
After searching the forum, I couldn’t find the exact answer to 3 questions regarding images.  
1- a large number of users (potentially more than 2000) will be able to add photos to their profile using a form. According to my research, the images will be automatically reduced and converted by Adalo, but all these images won’t such cause the application to slow down badly? Is there a maximum?

2- Is it possible for a visitor to the application to click on an image in order to enlarge it or to be able to zoom in on it?

3- the ideal format is portrait but if a user adds an image in landscape format and I have selected “don’t crop” this one is fully displayed but there is a large vice space.  
Even for portrait images it’s not always very well calibrated (depending on the shape and size I gave to the image

thank you in advance for your feedback

---

<div class="post-metadata">

**Author:** ![barrettnash](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/barrettnash/32/12951_2.png) [@barrettnash](https://forum.adalo.com/u/barrettnash)\
**Post date:** [July 9, 2022, 5:28pm UTC](https://forum.adalo.com/t/automatic-image-resizing-and-questions/29274/2 "2022-07-09T17:28:45Z")

</div>

Hi Juano,

My quick 2 cents:

1. I don’t believe having many images in your database will slow down the app. However, showing many images at a time will slow down the app.

2. To ‘zoom in’ on the image you can make the image a button that then opens a new page or pop up that is a larger version of the image

3. Same as above. You can have the thumbnail do cropped to now have empty space, then click the image and in a pop up see the image in better quality

---

<div class="post-metadata">

**Author:** ![Juano](https://avatars.discourse-cdn.com/v4/letter/j/ba9def/32.png) [@Juano](https://forum.adalo.com/u/Juano)\
**Post date:** [July 9, 2022, 7:38pm UTC](https://forum.adalo.com/t/automatic-image-resizing-and-questions/29274/3 "2022-07-09T19:38:09Z")

</div>

hello barrett,

Thank you for your answer.

Opening a new page does not really change the problem because the image is almost the same size.  
Another problem, if the image is in landscape format, it will remain small (even if the person rotates with their phone) because the format will be defined initially as being a portrait form

it would be better to be able to click on it and have it open as a pop-up then to be able to zoom in on it and return to the screen by clicking outside the image.

I’m interested in other opinions on the first question 😃

---

<div class="post-metadata">

**Author:** ![Flawless](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/flawless/32/20131_2.png) [@Flawless](https://forum.adalo.com/u/Flawless)\
**Post date:** [July 10, 2022, 10:33am UTC](https://forum.adalo.com/t/automatic-image-resizing-and-questions/29274/4 "2022-07-10T10:33:12Z")

</div>

> [@Juano](#):
>
> 1- a large number of users (potentially more than 2000) will be able to add photos to their profile using a form. According to my research, the images will be automatically reduced and converted by Adalo, but all these images won’t such cause the application to slow down badly? Is there a maximum?

Like @barrettnash said, simply having the images in the database will not slow down the app. Loading a huge list of records with images can slow down the app.

Since Adalo uses IMGIX for compression and rendering, you can add query parameters to the image URL for speed if you use “URL” as the image option. For example, You can set an image to URL containing the image URL as magic text, followed by &auto=compress&w=200&h=100 (switch the w to the width of the image and the h to the height. You can also use face detection or entropy to create a focal point. Here is more info: [https://docs.imgix.com/apis/rendering](https://docs.imgix.com/apis/rendering)

Here’s an example:

 ![Screen Shot 2022-07-10 at 4.28.47 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/a/f/afd127b2c5285f6fcc0a39fd85e71676c3e1bf7f.png)

This URL and the parameters in this screenshot force the image to zoom in on the user’s face and compresses the image to the proper dimensions.

> [@Juano](#):
>
> 2- Is it possible for a visitor to the application to click on an image in order to enlarge it or to be able to zoom in on it?

Yes. You can add an action to the image to link to a new “blank” screen. Add the image to the screen and set an action on the image when clicked to go back.

> [@Juano](#):
>
> 3- the ideal format is portrait but if a user adds an image in landscape format and I have selected “don’t crop” this one is fully displayed but there is a large vice space.

It may be possible but I have not tried it. Here’s the idea: You can add 2 additional screens. One for landscape-orientation images, one for portrait-orientation images. You’ll need a way to identify the dimensions of the image to compare if the height is larger or the width is larger. There’s probably an API for that. If you can identify the orientation of an image, you can send them to a specific screen to display the correct format.

---

<div class="post-metadata">

**Author:** ![Juano](https://avatars.discourse-cdn.com/v4/letter/j/ba9def/32.png) [@Juano](https://forum.adalo.com/u/Juano)\
**Post date:** [July 10, 2022, 5:21pm UTC](https://forum.adalo.com/t/automatic-image-resizing-and-questions/29274/5 "2022-07-10T17:21:01Z")

</div>

Ok thanks.  
But i don’t use the URL. My image is in the database ☹

I created a new screen to enlarge the image but the image is not much larger. We would have to see if it is possible to zoom in on it (by making the gesture with the fingers on the screen) but to test this the application must be published…

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [July 10, 2022, 5:45pm UTC](https://forum.adalo.com/t/automatic-image-resizing-and-questions/29274/6 "2022-07-10T17:45:11Z")

</div>

> [@Juano](#):
>
> But i don’t use the URL. My image is in the database ☹

Juano, you can select the URL as the **Image Source** and then you can access the URL of the image property!

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/e/9/e94d5ba39417c95592fe06f288ec018b8ba78ec8.png)

> [@Juano](#):
>
> I created a new screen to enlarge the image but the image is not much larger.

You need to stretch the image a bit out of the screen to apply it for the full screen. I guess this is a bug or this is how Adalo apply this because happening with web-view,map components too! 😂 Or I think you can do something like [this](https://forum.adalo.com/t/google-map-full-screen/4185/4) instead of stretching the image out of the screen.

> [@Juano](#):
>
> We would have to see if it is possible to zoom in on it (by making the gesture with the fingers on the screen) but to test this the application must be published…

I’m not sure if this is possible with the Image component but for this there are some components you can use.

First one is the one tghat Pragmaflow built!

![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/5/5/55416cc7a0c7ed9fdb2e16d65d7ab056e6b4873a.png)

> **Pragmaflow Website**
>
> [https://adalo.pragmaflowservers.com/install-component](https://adalo.pragmaflowservers.com/install-component)

> **Instructions to download Pragmaflow Components**
>
> [https://www.youtube.com/watch?v=4mo\_u5EdEWw](https://www.youtube.com/watch?v=4mo_u5EdEWw)

The second one is that Simon Siegert developer built and published on the Components Marketplace!

![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/c/e/ce74dcecd0b904efdebf9a866b1817702302aba4.png)

Thank you

---

<div class="post-metadata">

**Author:** ![Juano](https://avatars.discourse-cdn.com/v4/letter/j/ba9def/32.png) [@Juano](https://forum.adalo.com/u/Juano)\
**Post date:** [July 12, 2022, 7:37pm UTC](https://forum.adalo.com/t/automatic-image-resizing-and-questions/29274/7 "2022-07-12T19:37:19Z")

</div>

Thank you very much Dilon!  
You are too strong 😃  
I will try all this, especially when I upgrade to the pro version!  
Because not possible on the free version

---

<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:** [July 22, 2022, 7:38pm UTC](https://forum.adalo.com/t/automatic-image-resizing-and-questions/29274/8 "2022-07-22T19:38:01Z")

</div>

Closed on July 22, 2022, 7:38pm UTC

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