From 329f42e09c06cb7b69fb26cfc92beb6d3b435b74 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 10 Aug 2018 13:04:10 +0200 Subject: [PATCH] Update the image when rotating by 180deg --- .../lib/system/upload/DefaultUploadFileSaveStrategy.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/upload/DefaultUploadFileSaveStrategy.class.php b/wcfsetup/install/files/lib/system/upload/DefaultUploadFileSaveStrategy.class.php index a53113426f..4ae40e7772 100644 --- a/wcfsetup/install/files/lib/system/upload/DefaultUploadFileSaveStrategy.class.php +++ b/wcfsetup/install/files/lib/system/upload/DefaultUploadFileSaveStrategy.class.php @@ -174,7 +174,7 @@ class DefaultUploadFileSaveStrategy implements IUploadFileSaveStrategy { $adapter->writeImage($object->getLocation()); // update width, height and filesize of the object - if ($newImage !== null && ($orientation == ExifUtil::ORIENTATION_90_ROTATE || $orientation == ExifUtil::ORIENTATION_270_ROTATE)) { + if ($newImage !== null && ($orientation == ExifUtil::ORIENTATION_90_ROTATE || $orientation == ExifUtil::ORIENTATION_180_ROTATE || $orientation == ExifUtil::ORIENTATION_270_ROTATE)) { /** @var DatabaseObjectEditor $editor */ $editor = new $this->editorClassName($object); $editor->update([ -- 2.20.1