Skip to content
This repository has been archived by the owner on May 3, 2021. It is now read-only.

Commit

Permalink
Fixes #148 (no medium / small image created when imagick not installed)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnypark authored and ildyria committed Dec 27, 2018
1 parent 274d755 commit fd171a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/Modules/Photo.php
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ public static function createMedium($url, $filename, $type, $width, $height, $ne

}

if($error)
if($error || !Settings::hasImagick())
{
Log::notice(Database::get(), __METHOD__, __LINE__, 'Picture is big enough for resize, try with GD!');
// failed with imagick, try with GD
Expand Down

0 comments on commit fd171a6

Please sign in to comment.