Forums
The great place to discuss topics with other users
Strip EXIF data from uploaded Images
'
Join the Conversation
Post Reply
2025-05-22 21:00:10
For safety & security reasons, it's a good idea to strip all EXIF information from images users upload.
Here's how you do it..
You will need to mod /includes/class-image.php
Look for
$temp_file = tempnam(sys_get_temp_dir(), 'heic') . '.jpg';
right below the above line (it MUST be right below it) add
$imagick->stripImage(); // remove EXIF and metadata
... save your file, clear your cache and compiled templates and you're done.
We've tested it on our site and we know it works correctly.
Enjoy.