# Option to auto resize / compress image on Image Picker

**URL:** <https://community.glideapps.com/t/option-to-auto-resize-compress-image-on-image-picker/3528>\
**Category:** Feature Requests\
**Created:** [January 11, 2020, 11:52pm UTC](https://community.glideapps.com/t/option-to-auto-resize-compress-image-on-image-picker/3528 "2020-01-11T23:52:46Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![kdimas](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/kdimas/32/2688_2.png) [@kdimas](https://community.glideapps.com/u/kdimas)\
**Post date:** [January 11, 2020, 11:52pm UTC](https://community.glideapps.com/t/option-to-auto-resize-compress-image-on-image-picker/3528/1 "2020-01-11T23:52:46Z")

</div>

I’m trying to create a community issue reporting app, and we’re getting intermittent network within the area

When I tried to take photo using the Image Picker control, it always upload the full size photo, which will takes a lot of time when the network is bad

Is there a way to automatically resize or compress the image before upload, so the app will only send much smaller data?

Regards,

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [January 12, 2020, 12:25am UTC](https://community.glideapps.com/t/option-to-auto-resize-compress-image-on-image-picker/3528/2 "2020-01-12T00:25:28Z")

</div>

I think compression happens once the image is uploaded to the server. Doesn’t help you much though. Would it be possible to adjust camera settings on the phone to take smaller pictures, or a third party app or camera app that handles compression of the image? You would maybe have to take the picture outside of the app, then select the file after it’s been processed on the phone. Just throwing out some random thoughts.

---

<div class="post-metadata">

**Author:** ![kdimas](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/kdimas/32/2688_2.png) [@kdimas](https://community.glideapps.com/u/kdimas)\
**Post date:** [January 12, 2020, 12:38am UTC](https://community.glideapps.com/t/option-to-auto-resize-compress-image-on-image-picker/3528/3 "2020-01-12T00:38:37Z")

</div>

Thanks Jeff!

Yes, I agree, doing the resize manually before upload the files through form will speed up the upload

But in this case, users are diverse, some might not even know why the upload took so long, then gave up altogether

I don’t know if it’s possible to do in webapp, but if glide can do something like whatsapp did (they resize image, right before upload), I think it will save a whole lot of storage and speed up the upload

I checked the photo uploaded using this button, will take around 2.4 MB ![Screenshot_20200112-073740_Chrome](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/b/b14a1fac8bb1af5d7ade21ca850ee635cdc15c65.jpeg)

---

<div class="post-metadata">

**Author:** ![gila](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gila/32/2961_2.png) [@gila](https://community.glideapps.com/u/gila)\
**Post date:** [February 12, 2020, 10:16pm UTC](https://community.glideapps.com/t/option-to-auto-resize-compress-image-on-image-picker/3528/4 "2020-02-12T22:16:18Z")

</div>

@Jeff_Hager just checked my images and it seems they don’t get compressed? I used a 1.9mb photo as a display pic and the firebase version is also 1.9mb.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [February 12, 2020, 11:26pm UTC](https://community.glideapps.com/t/option-to-auto-resize-compress-image-on-image-picker/3528/5 "2020-02-12T23:26:14Z")

</div>

I don’t really know how it works. I remember reading something about compression happening, but I have no idea what happens when an image is uploaded.

---

<div class="post-metadata">

**Author:** ![gila](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gila/32/2961_2.png) [@gila](https://community.glideapps.com/u/gila)\
**Post date:** [February 12, 2020, 11:58pm UTC](https://community.glideapps.com/t/option-to-auto-resize-compress-image-on-image-picker/3528/6 "2020-02-12T23:58:26Z")

</div>

No worries. Hopefully the glide team knows a solution.

---

<div class="post-metadata">

**Author:** ![lesley.pizza](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lesley.pizza/32/6538_2.png) [@lesley.pizza](https://community.glideapps.com/u/lesley.pizza)\
**Post date:** [May 8, 2020, 1:22pm UTC](https://community.glideapps.com/t/option-to-auto-resize-compress-image-on-image-picker/3528/7 "2020-05-08T13:22:43Z")

</div>

+1 for compressed images…

Just hitting about 400 images. And all images noticeably started loading more slowly.

I’ve been taking images from Facebook, so they’re already compressed. But nevertheless, it seems like an issue.

---

<div class="post-metadata">

**Author:** ![Jeremie\_maga](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeremie_maga/32/103_2.png) [@Jeremie\_maga](https://community.glideapps.com/u/Jeremie_maga)\
**Post date:** [July 20, 2020, 3:41pm UTC](https://community.glideapps.com/t/option-to-auto-resize-compress-image-on-image-picker/3528/8 "2020-07-20T15:41:55Z")

</div>

I have examples where the photos taken on the phone are 4 to 8MB.  
It’s really complicated to upload if the connection is not very good (2min and 30 seconds for 1 photo).

People using the app want to keep their settings on the phone for maximum quality.  
If someone has an idea how to solve the problem? (compress the picture on the mobile before uploading)  
🤨

---

<div class="post-metadata">

**Author:** ![TontonBill](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tontonbill/32/12223_2.png) [@TontonBill](https://community.glideapps.com/u/TontonBill)\
**Post date:** [August 20, 2020, 2:36pm UTC](https://community.glideapps.com/t/option-to-auto-resize-compress-image-on-image-picker/3528/9 "2020-08-20T14:36:01Z")

</div>

and another problem is what i received this month :

" Your app [xxxxxxxxx] is using 228.45MB of file storage, which exceeds the 100MB limit for free apps. Please either:

1. [Upgrade your app] to raise your storage limit to 10GB. Here’s a coupon\* for 20% off an annual Pro subscription, that must be used within seven days: SCLQ0Q8G
2. Remove links to unused files from your Google Sheet. Removed files will not count toward your storage limit, and Glide will automatically delete them."

i have many pictures but i don’t need so much resolution …  
if i can compress all my picture at once …it will be the best solution

---

<div class="post-metadata">

**Author:** ![Deena](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/deena/32/9877_2.png) [@Deena](https://community.glideapps.com/u/Deena)\
**Post date:** [August 20, 2020, 2:58pm UTC](https://community.glideapps.com/t/option-to-auto-resize-compress-image-on-image-picker/3528/10 "2020-08-20T14:58:06Z")

</div>

I would also really like to have a clear understanding from Glide about whether images uploaded by the user (my app images are 99% uploaded by user), are being compressed via Glide - I have heard that is the case directly from Glide team, but then there continues to be confusion about whether this is actually happening?

@TontonBill Regarding your image situation, are you uploading most of the images or are they user generated? As app maker, I compress all of mine using [tinypng.com](http://tinypng.com) and it works very well - no storage problem.

---

<div class="post-metadata">

**Author:** ![Jeremie\_maga](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeremie_maga/32/103_2.png) [@Jeremie\_maga](https://community.glideapps.com/u/Jeremie_maga)\
**Post date:** [August 20, 2020, 4:07pm UTC](https://community.glideapps.com/t/option-to-auto-resize-compress-image-on-image-picker/3528/11 "2020-08-20T16:07:52Z")

</div>

For the problem comes from my users who upload their photo from their gallery on mobile.  
The problem is not the storage space but the time to upload (+1min per photo).

---

<div class="post-metadata">

**Author:** ![TontonBill](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tontonbill/32/12223_2.png) [@TontonBill](https://community.glideapps.com/u/TontonBill)\
**Post date:** [August 21, 2020, 7:45am UTC](https://community.glideapps.com/t/option-to-auto-resize-compress-image-on-image-picker/3528/12 "2020-08-21T07:45:13Z")

</div>

@deena , my pictures are user generated with their camera …

Guillaume

---

<div class="post-metadata">

**Author:** ![Killko](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/killko/32/39538_2.png) [@Killko](https://community.glideapps.com/u/Killko)\
**Post date:** [August 23, 2020, 11:11am UTC](https://community.glideapps.com/t/option-to-auto-resize-compress-image-on-image-picker/3528/13 "2020-08-23T11:11:44Z")

</div>

I agree this is a pretty big issue, especially with the new crop of high resolution mobile phones !  
The only current work-around is to tell users to first take a picture with their camera app, then choose that photo from their photo library, which (at least on iPhone) allows them to choose a down-sampled image at lower resolution.

---

<div class="post-metadata">

**Author:** ![Krivo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/krivo/32/5363_2.png) [@Krivo](https://community.glideapps.com/u/Krivo)\
**Post date:** [August 23, 2020, 11:27am UTC](https://community.glideapps.com/t/option-to-auto-resize-compress-image-on-image-picker/3528/14 "2020-08-23T11:27:37Z")

</div>

@Killko wonder whether that would actually be possible for a pwa. The app then needs to change camera properties before taking the pictures. But would be very handy

---

<div class="post-metadata">

**Author:** ![Killko](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/killko/32/39538_2.png) [@Killko](https://community.glideapps.com/u/Killko)\
**Post date:** [August 23, 2020, 11:30am UTC](https://community.glideapps.com/t/option-to-auto-resize-compress-image-on-image-picker/3528/15 "2020-08-23T11:30:01Z")

</div>

The short-term alternative would be to have a Photo Roll only option in the image picker. Even on a 40mb upload network, it takes a minute or so to upload an image from an iPhone 11 Pro…

---

<div class="post-metadata">

**Author:** ![Deena](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/deena/32/9877_2.png) [@Deena](https://community.glideapps.com/u/Deena)\
**Post date:** [August 23, 2020, 11:39am UTC](https://community.glideapps.com/t/option-to-auto-resize-compress-image-on-image-picker/3528/16 "2020-08-23T11:39:01Z")

</div>

@Mark or @david , When you have a moment, can you please clarify the questions in this thread…There are a couple of questions going on here, but one primary is whether user generated/uploaded photos are compressed by Glide before being stored. I read some threads (below) that they are optimized…not sure if the term was being used synonymously to compressed in size - but it seems there is some question as to what is actually happening. I did notice that the desktop has excellent image quality which we wouldn’t want to lose. Thank you!

> [@Does glide download the image url or just display it?](https://community.glideapps.com/t/does-glide-download-the-image-url-or-just-display-it/10827/2):
>
> Neither. Glide heavily caches your images and optimizes them per device, changing their format and resolution to load optimally for each operating system and screen density. I’m guessing that you’re asking because you’ve updated an image and it’s not updating in your app. If so, please see [How can I cause my images to update whenever they change?](https://community.glideapps.com/t/how-can-i-cause-my-images-to-update-whenever-they-change/364)

> [@Avoiding slow app due to users image uploads](https://community.glideapps.com/t/avoiding-slow-app-due-to-users-image-uploads/8452/2):
>
> We optimize all images before they are downloaded, you don’t have to worry about it.

---

<div class="post-metadata">

**Author:** ![Mark](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mark/32/125_2.png) [@Mark](https://community.glideapps.com/u/Mark)\
**Post date:** [August 23, 2020, 1:08pm UTC](https://community.glideapps.com/t/option-to-auto-resize-compress-image-on-image-picker/3528/17 "2020-08-23T13:08:53Z")

</div>

When you upload an image via the Image Picker, it is stored exactly as you upload it. The compression/optimization happens when images are used in the app, and is done with all images, not just the ones uploaded via the Image Picker.

---

<div class="post-metadata">

**Author:** ![Deena](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/deena/32/9877_2.png) [@Deena](https://community.glideapps.com/u/Deena)\
**Post date:** [August 23, 2020, 1:15pm UTC](https://community.glideapps.com/t/option-to-auto-resize-compress-image-on-image-picker/3528/18 "2020-08-23T13:15:10Z")

</div>

Thank you! So this confirms that we have a storage concern - at least for user uploads because we do not control what size they upload and we cannot ask them to compress etc…Also, if we ask users to upload smaller file size (for example if Glide enables a prompt for them to choose size), I think would result in pixelated images on desktop which would be a HUGE/NO GO issue for some of us. Some things to think about I guess.

---

<div class="post-metadata">

**Author:** ![Krivo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/krivo/32/5363_2.png) [@Krivo](https://community.glideapps.com/u/Krivo)\
**Post date:** [August 23, 2020, 3:31pm UTC](https://community.glideapps.com/t/option-to-auto-resize-compress-image-on-image-picker/3528/19 "2020-08-23T15:31:44Z")

</div>

It is possible to use cloudinary upload widget (via webview) to upload images and do preprocessing before the image is uploaded. I uploaded a 30mb image but due to the preprocessing the uploaded image was 1mb

It is described in this thread where a demo app is shown

> [@Upload multiple images to Cloudinary](https://community.glideapps.com/t/upload-multiple-images-to-cloudinary-now-with-presentation-video/13524):
>
> Intro I thought I was going to publish my first app in the Template store but external sources like Cloudinary integration are not allowed in a template. So after hours spend you will instead see the app here. Upload multiple images to Cloudinary Try out version: URL: [https://multiupload.glideapp.io/](https://multiupload.glideapp.io/) The app is using my personal Cloudinary account - so please keep uploads in the app low - and use your own Cloudinary account if you are going to do exploration of cloudinary Backg…

---

<div class="post-metadata">

**Author:** ![Deena](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/deena/32/9877_2.png) [@Deena](https://community.glideapps.com/u/Deena)\
**Post date:** [August 23, 2020, 3:36pm UTC](https://community.glideapps.com/t/option-to-auto-resize-compress-image-on-image-picker/3528/20 "2020-08-23T15:36:24Z")

</div>

I’m going to check this out! It’s already in my queue of saved items to go through! One question - what happens when images have to be rendered on desktop - meaning is it possible they will be compressed to the point that they will be pixelated on desktop? 100% of my users use the app on desktop regularly - and they also use on phone for less input intensive tasks or viewing information.

[Next page](https://community.glideapps.com/t/option-to-auto-resize-compress-image-on-image-picker/3528.md?page=2)
