From eaacf2719965cc4609778dfe0f5ddb2b24e7eaf7 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 05fb731e..c6575992 100644 --- a/post.php +++ b/post.php @@ -173,7 +173,7 @@ function ocr_image(array $config, string $img_path): string { * @throws RuntimeException Throws on IO errors. */ function strip_image_metadata(string $img_path): int { - $err = shell_exec_error('exiftool -overwrite_original -ignoreMinorErrors -q -q -all= ' . escapeshellarg($img_path)); + $err = shell_exec_error('exiftool -overwrite_original -ignoreMinorErrors -q -q -all= -Orientation ' . escapeshellarg($img_path)); if ($err === false) { throw new RuntimeException('Could not strip EXIF metadata!'); }