# הסרת מטא-דאטה של תמונה כאשר אופטימיזציית מדיה של קומפוזר מופעלת?

**URL:** <https://meta.discourse.org/t/stripping-image-metadata-when-composer-media-optimization-is-enabled/197201>\
**Category:** Product Support\
**Created:** [15 ביולי,‏ 2021,‏ 5:12am UTC](https://meta.discourse.org/t/stripping-image-metadata-when-composer-media-optimization-is-enabled/197201 "2021-07-15T05:12:50Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [15 ביולי,‏ 2021,‏ 11:13pm UTC](https://meta.discourse.org/t/stripping-image-metadata-when-composer-media-optimization-is-enabled/197201/7 "2021-07-15T23:13:46Z")

</div>

So there are two feature requests here: EXIF preservation and Colorspace preservation.

### EXIF Preservation

It _should_ be possible to make `composer media optimization image enabled` work without `strip image metadata`. We extract EXIF early in the pipeline and re-insert it on the end of it. That said I have found zero supported libraries to read and _write_ EXIF easily in either JS or WASM. If someone fancies trying their hand on using the abandoned [GitHub - hMatoba/piexifjs: Read and modify exif in client-side or server-side JavaScript. · GitHub](https://github.com/hMatoba/piexifjs) or trying to wasmify [GitHub - paolobarbolini/img-parts: Low level crate for reading and writing Jpeg, Png and RIFF image containers · GitHub](https://github.com/paolobarbolini/img-parts) I can only say #pr-welcome .

### Color Space

We use Canvas to convert the decoded image into a RGBA array. Canvas colorspace support is complicated. There is a [WICG proposal to add support for fancier colorspaces](https://github.com/WICG/canvas-color-space/blob/main/CanvasColorSpaceProposal.md) but it’s not coming anytime soon.

---

_[View the full topic](https://meta.discourse.org/t/stripping-image-metadata-when-composer-media-optimization-is-enabled/197201)._
