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

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
needkane
Posts: 47
Joined: 2014-09-11T02:19:30-07:00
Authentication code: 6789

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

Post 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
Post Reply