mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 14:18:27 +01:00
Merge pull request #4610 from humhub/fix/4609
Fix #4609: Error on downscale command
This commit is contained in:
commit
ca6e4fd4e3
@ -12,6 +12,7 @@ HumHub Changelog
|
|||||||
------------------------
|
------------------------
|
||||||
- Fix #4590: Page loader color contrast too low
|
- Fix #4590: Page loader color contrast too low
|
||||||
- Fix #4599: File preview not visible if initialized in background
|
- Fix #4599: File preview not visible if initialized in background
|
||||||
|
- Fix #4609: Error on downscale command
|
||||||
|
|
||||||
|
|
||||||
1.7.0-beta.2 (October 26, 2020)
|
1.7.0-beta.2 (October 26, 2020)
|
||||||
|
@ -105,7 +105,13 @@ class ImageHelper
|
|||||||
return;
|
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);
|
static::fixJpegOrientation($image, $file);
|
||||||
|
|
||||||
if ($module->imageMaxResolution !== null) {
|
if ($module->imageMaxResolution !== null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user