| @@ 102-104 (lines=3) @@ | ||
| 99 | IMAGETYPE_BMP => IMG_WBMP, |
|
| 100 | IMAGETYPE_WBMP => IMG_WBMP, |
|
| 101 | ]; |
|
| 102 | if (! isset($imgTypes[$srcImgInfo[2]]) || ! ($opts['targetType'] & $imgTypes[$srcImgInfo[2]])) { |
|
| 103 | return false; |
|
| 104 | } |
|
| 105 | ||
| 106 | if ($opts['forceEffect'] || $srcImgInfo[0] > $opts['maxWidth'] || $srcImgInfo[1] > $opts['maxHeight']) { |
|
| 107 | return $this->resize($volume, $src, $srcImgInfo, $opts['maxWidth'], $opts['maxHeight'], $opts['quality'], $opts['preserveExif']); |
|
| @@ 131-133 (lines=3) @@ | ||
| 128 | IMAGETYPE_BMP => IMG_WBMP, |
|
| 129 | IMAGETYPE_WBMP => IMG_WBMP, |
|
| 130 | ]; |
|
| 131 | if (! isset($imgTypes[$srcImgInfo[2]]) || ! ($opts['targetType'] & $imgTypes[$srcImgInfo[2]])) { |
|
| 132 | return false; |
|
| 133 | } |
|
| 134 | ||
| 135 | // check target image size |
|
| 136 | if ($opts['targetMinPixel'] > 0 && $opts['targetMinPixel'] > min($srcImgInfo[0], $srcImgInfo[1])) { |
|