# Reduce Image Size

**URL:** <https://community.thunkable.com/t/reduce-image-size/1188269>\
**Category:** Questions about Thunkable X\
**Created:** [March 26, 2021, 10:37am UTC](https://community.thunkable.com/t/reduce-image-size/1188269 "2021-03-26T10:37:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nmtabooks](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/nmtabooks/32/100232_2.png) [@nmtabooks](https://community.thunkable.com/u/nmtabooks)\
**Post date:** [March 26, 2021, 10:37am UTC](https://community.thunkable.com/t/reduce-image-size/1188269/1 "2021-03-26T10:37:44Z")

</div>

I tried to reduce the image into three categories:  
1- Thumbnails 75px  
2- Low. 250px  
3- High 1024 px.

then I saved the image URLs inside the firebase database…  
the Image itself I saved it into Cloudinary.

I used the codes bellow, put please is there any easy way to do that… instead of all the code which i did

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/8/f86a4fe3111d082ab2c23a2c1cd07f54c9983111.jpeg)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/7/d7b0dd62405802ad978ddc9d4e90c75f15311049.jpeg)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/1/a16d501c4ad37e22d905f92471aa8d56bdea0781.jpeg)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/b/6b92be924785a73885e12ecc0034f1e5f3ef4e38.jpeg)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/7/d7e696ba7928a9bb50b8e4f9b49da0cfd2c6ab23.jpeg)

---

<div class="post-metadata">

**Author:** ![skulamester](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/skulamester/32/100480_2.png) [@skulamester](https://community.thunkable.com/u/skulamester)\
**Post date:** [March 26, 2021, 12:55pm UTC](https://community.thunkable.com/t/reduce-image-size/1188269/2 "2021-03-26T12:55:12Z")

</div>

Hi,

I wanted to reduce the file sizes as well, but I used the following block to do the job:

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/1/a1ef02e5193684e48adbeb0bb0de6d2d86593bd3.png)

I think it is a better way than your procedure.

Let me know, if you have any thoughts.

---

<div class="post-metadata">

**Author:** ![nmtabooks](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/nmtabooks/32/100232_2.png) [@nmtabooks](https://community.thunkable.com/u/nmtabooks)\
**Post date:** [March 27, 2021, 11:28am UTC](https://community.thunkable.com/t/reduce-image-size/1188269/3 "2021-03-27T11:28:07Z")

</div>

Thank you skulamester… yes this will make my code shorter … great thanks 👏

---

<div class="post-metadata">

**Author:** ![nmtabooks](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/nmtabooks/32/100232_2.png) [@nmtabooks](https://community.thunkable.com/u/nmtabooks)\
**Post date:** [March 27, 2021, 12:00pm UTC](https://community.thunkable.com/t/reduce-image-size/1188269/4 "2021-03-27T12:00:52Z")

</div>

but please… here am saving my image to cloudinary, but i stored three version of it inside the firebase database. as you noticed from the code above

the first image is “thumbnail” the second is “low” the third is “high”, it is all about the resolution…  
is this a good way to do it…what i want to say is that am saving different links to the same image inside the firebase each link call the image with different width

---

<div class="post-metadata">

**Author:** ![skulamester](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/skulamester/32/100480_2.png) [@skulamester](https://community.thunkable.com/u/skulamester)\
**Post date:** [March 27, 2021, 8:02pm UTC](https://community.thunkable.com/t/reduce-image-size/1188269/5 "2021-03-27T20:02:19Z")

</div>

Well, I think it is the best solution you can come up with, I use the same method in my app as well.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:25pm UTC](https://community.thunkable.com/t/reduce-image-size/1188269/6 "2024-11-08T13:25:42Z")

</div>


