Fix #4609: Error on downscale command

This commit is contained in:
Lucas Bartholemy 2020-11-06 10:20:05 +01:00
parent d4ef74025e
commit 67e5dd14c6
2 changed files with 8 additions and 1 deletions

View File

@ -6,6 +6,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)

View File

@ -105,7 +105,13 @@ class ImageHelper
return;
}
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) {