@@ 189-194 (lines=6) @@ | ||
186 | } |
|
187 | } |
|
188 | ||
189 | if ($upsize && ($width < $targetWidth || $height < $targetHeight)) { |
|
190 | if ($clone->resizeImage($targetWidth, $targetHeight, \Imagick::FILTER_CUBIC, 1.0, $bestfit) !== true) { |
|
191 | //cumbersome to test |
|
192 | throw new \Exception('Imagick::resizeImage() did not return true');//@codeCoverageIgnore |
|
193 | } |
|
194 | } |
|
195 | ||
196 | if ($clone->getImageHeight() === $boxHeight && $clone->getImageWidth() === $boxWidth) { |
|
197 | return $clone; |
|
@@ 392-397 (lines=6) @@ | ||
389 | } |
|
390 | } |
|
391 | ||
392 | if ($upsize && ($width < $targetWidth || $height < $targetHeight)) { |
|
393 | if ($clone->resizeImage($targetWidth, $targetHeight, \Imagick::FILTER_CUBIC, 1.0, $bestfit) !== true) { |
|
394 | //cumbersome to test |
|
395 | throw new \Exception('Imagick::resizeImage() did not return true');//@codeCoverageIgnore |
|
396 | } |
|
397 | } |
|
398 | ||
399 | if ($clone->getImageHeight() === $boxHeight && $clone->getImageWidth() === $boxWidth) { |
|
400 | $results[$boxSizeKey] = $clone; |