yii2-crop-image-upload icon indicating copy to clipboard operation
yii2-crop-image-upload copied to clipboard

when the crop is not selected

Open wertermeira opened this issue 9 years ago • 2 comments

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

wertermeira avatar Oct 24 '15 14:10 wertermeira

have you updated extension to the latest version?

karpoff avatar Oct 25 '15 10:10 karpoff

yes, i have the last version. and continue with this error.

which will be the solution?

thanks

wertermeira avatar Oct 25 '15 15:10 wertermeira