# Client side image optimization enabled by default

**URL:** https://meta.discourse.org/t/client-side-image-optimization-enabled-by-default/197617
**Category:** Announcements
**Created:** [July 19, 2021, 7:26pm UTC](https://meta.discourse.org/t/client-side-image-optimization-enabled-by-default/197617 "2021-07-19T19:26:15Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [July 19, 2021, 7:26pm UTC](https://meta.discourse.org/t/client-side-image-optimization-enabled-by-default/197617/1 "2021-07-19T19:26:15Z")

</div>

We just enabled the the browser image optimization feature by default on Discourse.

You can learn more about how it work in our blog:

> **[Faster (and smaller) uploads in Discourse with Rust, WebAssembly and MozJPEG](https://blog.discourse.org/2021/07/faster-user-uploads-on-discourse-with-rust-webassembly-and-mozjpeg/)**
>
> Doing image optimization on the browser for a better UX sharing pictures in Discourse

If necessary, a site administrator may disable it using the site setting ` composer media optimization image enabled`.

This new feature is also not compatible with disabling `strip image metadata`. So you will want to disable this new feature if you want to preserve images EXIF.

**Update** Jan 2023 - we had to disable this on iOS due to iOS bugs.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [July 27, 2021, 12:28am UTC](https://meta.discourse.org/t/client-side-image-optimization-enabled-by-default/197617/2 "2021-07-27T00:28:32Z")

</div>

4 posts were split to a new topic: [PNG with transparency getting converted to JPG after uploads](https://meta.discourse.org/t/png-with-transparency-getting-converted-to-jpg-after-uploads/198265)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [January 9, 2023, 3:59am UTC](https://meta.discourse.org/t/client-side-image-optimization-enabled-by-default/197617/3 "2023-01-09T03:59:13Z")

</div>

Note, this is now disabled by default on iOS.

[https://github.com/discourse/discourse/pull/19790](https://github.com/discourse/discourse/pull/19790)

We were seeing regular crashes in iOS when large files are involved. Hopefully iOS is a bit better in 6 months or so, Apple need to catch up here.

---

<div class="post-metadata">

### Author: ![nobodyfrm](https://avatars.discourse-cdn.com/v4/letter/n/e0b2c6/32.png) [@nobodyfrm](https://meta.discourse.org/u/nobodyfrm)
#### Post date: [September 4, 2023, 11:37am UTC](https://meta.discourse.org/t/client-side-image-optimization-enabled-by-default/197617/4 "2023-09-04T11:37:17Z")

</div>

We currently experience the problem that iOS users are unable to upload videos they recorded themselves with their mobile device because the file size is too high. Unfortunately, the users lack the technical affinity to know how to optimize the files themselves.

Do you already have an ETA as to when the client-side optimization on iOS is re-enabled by chance, or can we re-enable it ourselves?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [September 4, 2023, 4:37pm UTC](https://meta.discourse.org/t/client-side-image-optimization-enabled-by-default/197617/5 "2023-09-04T16:37:46Z")

</div>

Our client-side image optimization feature never worked with videos, only still images. So, even if we were to re-enable it, I’m afraid that won’t help your users.

If your users want to share large videos, I’d recommend using [Video Upload to YouTube and Vimeo using Theme Component](https://meta.discourse.org/t/video-upload-to-youtube-and-vimeo-using-theme-component/170079) instead.
