diff --git a/CHANGELOG.md b/CHANGELOG.md index 36c560bd00..8801f4bdaa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ HumHub Changelog ------------------------ - Fix #4590: Page loader color contrast too low - Fix #4599: File preview not visible if initialized in background +- Fix #4609: Error on downscale command 1.7.0-beta.2 (October 26, 2020) diff --git a/protected/humhub/modules/file/libs/ImageHelper.php b/protected/humhub/modules/file/libs/ImageHelper.php index fcb142c7ce..97a35ec512 100644 --- a/protected/humhub/modules/file/libs/ImageHelper.php +++ b/protected/humhub/modules/file/libs/ImageHelper.php @@ -105,7 +105,13 @@ class ImageHelper return; } - $image = Image::getImagine()->open($file->store->get()); + try { + $image = Image::getImagine()->open($file->store->get()); + } catch (\Exception $ex) { + Yii::error('Could not open image ' . $file->store->get() . '. Error: ' . $ex->getMessage(), 'file'); + return; + } + static::fixJpegOrientation($image, $file); if ($module->imageMaxResolution !== null) {