yii2-crop-image-upload
yii2-crop-image-upload copied to clipboard
when the crop is not selected
Imagine\Exception\InvalidArgumentException Length of either side cannot be 0 or negative, current size is 0x0
if ($height < 1 || $width < 1) { throw new InvalidArgumentException(sprintf( 'Length of either side cannot be 0 or negative, current size '. 'is %sx%s', $width, $height )); }
end
$crop_image = $image->crop(new Point($sizes[0], $sizes[1]), new Box($sizes[2]-$sizes[0], $sizes[3]-$sizes[1]));
when the crop is not selected image... Can someone help me?
thanks
have you updated extension to the latest version?
yes, i have the last version. and continue with this error.
which will be the solution?
thanks