# RocketChat App on iOS does not compress media when sharing from Photo Library

**URL:** <https://forums.rocket.chat/t/rocketchat-app-on-ios-does-not-compress-media-when-sharing-from-photo-library/11438>\
**Category:** Rocket.Chat Apps\
**Tags:** mobile, rocketchat-apps\
**Created:** [June 19, 2021, 2:37am UTC](https://forums.rocket.chat/t/rocketchat-app-on-ios-does-not-compress-media-when-sharing-from-photo-library/11438 "2021-06-19T02:37:40Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![User6554](https://avatars.discourse-cdn.com/v4/letter/u/67e7ee/32.png) [@User6554](https://forums.rocket.chat/u/User6554)\
**Post date:** [June 19, 2021, 2:37am UTC](https://forums.rocket.chat/t/rocketchat-app-on-ios-does-not-compress-media-when-sharing-from-photo-library/11438/1 "2021-06-19T02:37:40Z")

</div>

Hello to all,

I was wondering why this is the case: When I make a video of photo inside the Rocket Chat App and send it, it gets compressed. When I share a video from my iPhone Library with the Rocket Chat App, it does not get compressed and stays at the original size, which is very large. The same happens with videos.

Does anybody have the same issue? I wanted to ask it before posting any logs or version numbers.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [June 19, 2021, 4:06pm UTC](https://forums.rocket.chat/t/rocketchat-app-on-ios-does-not-compress-media-when-sharing-from-photo-library/11438/2 "2021-06-19T16:06:12Z")

</div>

You should always report version numbers when posting issues as it helps triage & diagnosis.

OS version, Rocket version, deployment type, and app versions.

Clearly the app and mobile app work in different ways but I don’t know the details. We probably can find out.

---

<div class="post-metadata">

**Author:** ![User6554](https://avatars.discourse-cdn.com/v4/letter/u/67e7ee/32.png) [@User6554](https://forums.rocket.chat/u/User6554)\
**Post date:** [June 19, 2021, 5:05pm UTC](https://forums.rocket.chat/t/rocketchat-app-on-ios-does-not-compress-media-when-sharing-from-photo-library/11438/3 "2021-06-19T17:05:20Z")

</div>

Yes, I am sorry for not explaining more from the beginning. Thanks for your help.  
Information on the Deployment: Self-Hosted, versions of the server see image:

 ![Captura de pantalla 2021-06-19 a las 19.00.01](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/f/fb26d8013a691e384f843ddaa85524350b3811f3.png)

On my iPhone: iOS 14.6, RocketChat App Version 4.17.24353.

The issue is, as explained above: When I share a picture or video by taking it from the Rocket.Chat App on my iPhone (by clicking on the + sign in a chat room, on the lower left), the media file (picture/video) gets compressed. That is what I want to keep bandwidth usage low.  
On the other hand, when I share a media file (picture/video) from the iPhone Photos Galery App, by sharing it with the Rocket.Chat App, the media file does not get compressed. One single picture can easily comprise around 4mb - 5mb. Does anybody have a similar issue? Is the Rocket.Chat App on iOS capable of compressing media that is shared with the App (resp. trough the App) or do I have to enable this setting somewhere?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [June 21, 2021, 8:56pm UTC](https://forums.rocket.chat/t/rocketchat-app-on-ios-does-not-compress-media-when-sharing-from-photo-library/11438/4 "2021-06-21T20:56:40Z")

</div>

So just to be clear.

Taking the photo directly in the Rocket app compresses the file.

Sending the file with + sends the file uncompressed.

Correct?

---

<div class="post-metadata">

**Author:** ![User6554](https://avatars.discourse-cdn.com/v4/letter/u/67e7ee/32.png) [@User6554](https://forums.rocket.chat/u/User6554)\
**Post date:** [June 21, 2021, 9:05pm UTC](https://forums.rocket.chat/t/rocketchat-app-on-ios-does-not-compress-media-when-sharing-from-photo-library/11438/5 "2021-06-21T21:05:31Z")

</div>

Yes, exactly as you described! Is it supposed to be like this?

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [June 21, 2021, 9:10pm UTC](https://forums.rocket.chat/t/rocketchat-app-on-ios-does-not-compress-media-when-sharing-from-photo-library/11438/6 "2021-06-21T21:10:09Z")

</div>

I don’t know, but I know someone who does 😉

Let me ask the question - please be patient.

---

<div class="post-metadata">

**Author:** ![User6554](https://avatars.discourse-cdn.com/v4/letter/u/67e7ee/32.png) [@User6554](https://forums.rocket.chat/u/User6554)\
**Post date:** [June 21, 2021, 9:15pm UTC](https://forums.rocket.chat/t/rocketchat-app-on-ios-does-not-compress-media-when-sharing-from-photo-library/11438/7 "2021-06-21T21:15:07Z")

</div>

Thank you very much John! 🙂

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [June 21, 2021, 9:20pm UTC](https://forums.rocket.chat/t/rocketchat-app-on-ios-does-not-compress-media-when-sharing-from-photo-library/11438/8 "2021-06-21T21:20:56Z")

</div>

OK,

So the answer is if you take a photo with the app it knows it is a photo, and therefore compresses it.

But if you use the file browser it doesn’t know this (oddly) so treats them all as just ‘files’ and sends them uncompressed.

The devs know this is slightly odd and it is on the ToDo list. No, it won’t happen in a hurry, but it is on the radar.

---

<div class="post-metadata">

**Author:** ![User6554](https://avatars.discourse-cdn.com/v4/letter/u/67e7ee/32.png) [@User6554](https://forums.rocket.chat/u/User6554)\
**Post date:** [June 21, 2021, 9:22pm UTC](https://forums.rocket.chat/t/rocketchat-app-on-ios-does-not-compress-media-when-sharing-from-photo-library/11438/9 "2021-06-21T21:22:58Z")

</div>

Great to know. If it gets solved one day eventually, I will be thankful.

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [June 21, 2021, 9:24pm UTC](https://forums.rocket.chat/t/rocketchat-app-on-ios-does-not-compress-media-when-sharing-from-photo-library/11438/10 "2021-06-21T21:24:48Z")

</div>

Ha no worries.

At least you understand, and know it’s going to get a look in.

---

<div class="post-metadata">

**Author:** ![olaf.j](https://avatars.discourse-cdn.com/v4/letter/o/f07891/32.png) [@olaf.j](https://forums.rocket.chat/u/olaf.j)\
**Post date:** [June 29, 2021, 1:19pm UTC](https://forums.rocket.chat/t/rocketchat-app-on-ios-does-not-compress-media-when-sharing-from-photo-library/11438/11 "2021-06-29T13:19:34Z")

</div>

I have just taken a photo from the Android app and one directly with the smartphone. Likewise a video each. All photos and videos are the same size. It looks like the Android app doesn’t compress

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [June 29, 2021, 2:21pm UTC](https://forums.rocket.chat/t/rocketchat-app-on-ios-does-not-compress-media-when-sharing-from-photo-library/11438/12 "2021-06-29T14:21:41Z")

</div>

Hmmm. I just spoke to the app dev and he is a little confounded as it should compress as before.

---

<div class="post-metadata">

**Author:** ![olaf.j](https://avatars.discourse-cdn.com/v4/letter/o/f07891/32.png) [@olaf.j](https://forums.rocket.chat/u/olaf.j)\
**Post date:** [June 30, 2021, 5:50am UTC](https://forums.rocket.chat/t/rocketchat-app-on-ios-does-not-compress-media-when-sharing-from-photo-library/11438/13 "2021-06-30T05:50:55Z")

</div>

I just did a test. One video and one image each via the app, and the same video (10 seconds, same object) and the same image via the camera app. The two videos are the same size and the two pictures are the same size

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [June 30, 2021, 10:33am UTC](https://forums.rocket.chat/t/rocketchat-app-on-ios-does-not-compress-media-when-sharing-from-photo-library/11438/14 "2021-06-30T10:33:10Z")

</div>

As you have leaped on this thread you will need to give us some information about your server, app version etc as it may differ from the OP.

---

<div class="post-metadata">

**Author:** ![olaf.j](https://avatars.discourse-cdn.com/v4/letter/o/f07891/32.png) [@olaf.j](https://forums.rocket.chat/u/olaf.j)\
**Post date:** [June 30, 2021, 12:31pm UTC](https://forums.rocket.chat/t/rocketchat-app-on-ios-does-not-compress-media-when-sharing-from-photo-library/11438/15 "2021-06-30T12:31:14Z")

</div>

You are right,  
Server: Rocketchat 3.15 on Ubuntu 20.04 Snap  
Android App: 4.17.0.24391  
Server is self hostet

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [July 2, 2021, 9:14am UTC](https://forums.rocket.chat/t/rocketchat-app-on-ios-does-not-compress-media-when-sharing-from-photo-library/11438/16 "2021-07-02T09:14:12Z")

</div>

I’ll try doing some tests later to see.
