# Prevent leakage of EXIF information in Kirby v4

**URL:** <https://forum.getkirby.com/t/prevent-leakage-of-exif-information-in-kirby-v4/30677>\
**Category:** Questions\
**Tags:** v4\
**Created:** [February 4, 2024, 10:18am UTC](https://forum.getkirby.com/t/prevent-leakage-of-exif-information-in-kirby-v4/30677 "2024-02-04T10:18:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![warg](https://avatars.discourse-cdn.com/v4/letter/w/90ced4/32.png) [@warg](https://forum.getkirby.com/u/warg)\
**Post date:** [February 4, 2024, 10:18am UTC](https://forum.getkirby.com/t/prevent-leakage-of-exif-information-in-kirby-v4/30677/1 "2024-02-04T10:18:16Z")

</div>

Hello,

inspired by [this thread](https://forum.getkirby.com/t/how-to-prevent-leakage-of-exif-information/25508), I would like to know if there is some improvement or better procedure in Kirby v4 for this requirement compared to Kirby v3. The plug-in mentioned in that thread was updated 2 years ago so likely not Kirby 4 or PHP 8.3 compatible.

Does someone have any suggestions/updates on this matter? Thank you!

Best Regards,

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [February 4, 2024, 10:28am UTC](https://forum.getkirby.com/t/prevent-leakage-of-exif-information-in-kirby-v4/30677/2 "2024-02-04T10:28:53Z")

</div>

If you don’t care about the original file, you could use the new `create` option in file blueprints to replace the original with a stripped copy: [File blueprint | Kirby CMS](https://getkirby.com/docs/reference/panel/blueprints/file#optimize-uploaded-images). But I guess this only works if the target size is smaller than the original size.

The plugin will probably not work anymore (missing return types in page model methods, for example), but the issues should be easy to fix.

---

<div class="post-metadata">

**Author:** ![warg](https://avatars.discourse-cdn.com/v4/letter/w/90ced4/32.png) [@warg](https://forum.getkirby.com/u/warg)\
**Post date:** [February 4, 2024, 10:36am UTC](https://forum.getkirby.com/t/prevent-leakage-of-exif-information-in-kirby-v4/30677/3 "2024-02-04T10:36:16Z")

</div>

> [@texnixe](#):
>
> But I guess this only works if the target size is smaller than the original size.

I thought about using this optimization feature(s) from Kirby 4 after upload as well but I think the same regarding its limitation. Maybe I will make some thoughts on this next weeks and when I have an easy going solution, I will share it e. g. as a plug-in or in some other way.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [February 4, 2024, 10:36am UTC](https://forum.getkirby.com/t/prevent-leakage-of-exif-information-in-kirby-v4/30677/4 "2024-02-04T10:36:27Z")

</div>

Come to think of it, an option `stripExif` or so would be a nice addition for `create`

---

<div class="post-metadata">

**Author:** ![warg](https://avatars.discourse-cdn.com/v4/letter/w/90ced4/32.png) [@warg](https://forum.getkirby.com/u/warg)\
**Post date:** [February 4, 2024, 10:40am UTC](https://forum.getkirby.com/t/prevent-leakage-of-exif-information-in-kirby-v4/30677/5 "2024-02-04T10:40:53Z")

</div>

Yes, just adding a single option to just strip EXIF data would be great in Kirby v4 core (so basically just calling imagemagick without anything else, only `strip`).

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [February 4, 2024, 10:48am UTC](https://forum.getkirby.com/t/prevent-leakage-of-exif-information-in-kirby-v4/30677/6 "2024-02-04T10:48:19Z")

</div>

Created a feature request: [https://kirby.nolt.io/612](https://kirby.nolt.io/612)
