From 97e41d1c7fcdc42303351ca54a82e13fad68456e Mon Sep 17 00:00:00 2001 From: Zankaria Date: Wed, 3 Apr 2024 19:51:41 +0200 Subject: [PATCH] post.php: strip metadata from png and webp image file types --- post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post.php b/post.php index 8bdd3660..9634855c 100644 --- a/post.php +++ b/post.php @@ -1251,7 +1251,7 @@ function handle_post() $thumb->_destroy(); } - if ($config['redraw_image'] || (!@$file['exif_stripped'] && $config['strip_exif'] && ($file['extension'] == 'jpg' || $file['extension'] == 'jpeg'))) { + if ($config['redraw_image'] || (!@$file['exif_stripped'] && $config['strip_exif'] && ($file['extension'] == 'jpg' || $file['extension'] == 'jpeg' || $file['extension'] == 'webp' || $file['extension'] == 'png'))) { if (!$config['redraw_image'] && $config['use_exiftool']) { if ( $error = shell_exec_error('exiftool -overwrite_original -ignoreMinorErrors -q -q -all= ' .