|
|
@ -63,7 +63,7 @@ abstract class Upload |
|
|
|
if (!(ImageVariant::getIsClass($image)) && Image::getIsSubClass($image)) { |
|
|
|
$greagwar_image->resize($width, $height, 0xffffff, $force = false, $rescale = false, $crop = true); |
|
|
|
} else { |
|
|
|
$greagwar_image->resize($width, $height, 0xffffff, $force = true, $rescale = true, $crop = false); |
|
|
|
$greagwar_image->resize($width, $height, 0xffffff, $force = false, $rescale = false, $crop = false); |
|
|
|
} |
|
|
|
} |
|
|
|
$image->type = $greagwar_image->guessType(); |
|
|
|