Page 1 of 1

Image crop and offset, the offset value is equal to the width or height

Posted: 2015-03-02T23:17:06-07:00
by needkane
Image crop and offset, the offset value is equal to the width or height return the original image.
But the offset value is greater than image's width or height return 1x1 picture.
We need a standard.
In my opinion,only the offset value is smaller than width and height return normal cropped image.
Others case should return same result(Original image or 1x1 picture,choose one)

Imageļ¼šhttps://s3-us-west-2.amazonaws.com/qiniu-bs/crop.jpg
Excute command :
convert crop.jpg -quality 75.0 -crop 228x228+320+6 +repage /tmp/imgmogr2-558551185.jpg //return original image
convert crop.jpg -quality 75.0 -crop 228x228+321+6 +repage /tmp/imgmogr2-558551185.jpg //return 1x1 picture
convert crop.jpg -quality 75.0 -crop 228x228+319+480 +repage /tmp/imgmogr2-558551185.jpg //return original image