From cb5b465c57d7cdf95e5abda1599184ad30251ef2 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Wed, 3 Apr 2024 19:51:58 +0200 Subject: [PATCH] post.php: do not strip orientation metadata --- post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post.php b/post.php index 9634855c..5f21ec0b 100644 --- a/post.php +++ b/post.php @@ -1254,7 +1254,7 @@ function handle_post() 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= ' . + $error = shell_exec_error('exiftool -overwrite_original -ignoreMinorErrors -q -q -all= -Orientation ' . escapeshellarg($file['tmp_name'])) ) { error(_('Could not strip EXIF metadata!'), null, $error);