From 327cf29b41f93ef5651ae055662656d24552d2e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 4 Dec 2019 21:42:24 +0100 Subject: [PATCH] Update images.lib.php --- htdocs/core/lib/images.lib.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/core/lib/images.lib.php b/htdocs/core/lib/images.lib.php index fa68301a298..da1abe47268 100644 --- a/htdocs/core/lib/images.lib.php +++ b/htdocs/core/lib/images.lib.php @@ -325,7 +325,6 @@ function correctExifImageOrientation($fileSource, $fileDest, $quality = 95) if (function_exists('exif_read_data') ) { $exif = exif_read_data($fileSource); if ($exif && isset($exif['Orientation'])) { - $infoImg = getimagesize($fileSource); // Get image infos $orientation = $exif['Orientation']; @@ -357,7 +356,7 @@ function correctExifImageOrientation($fileSource, $fileDest, $quality = 95) } } // then rewrite the rotated image back to the disk as $fileDest - if($fileDest === false){ + if ($fileDest === false){ return $img; } else