crop with 0 offset changes image's dimensions

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
CatBurgers
Posts: 9
Joined: 2014-10-03T11:56:34-07:00
Authentication code: 6789

crop with 0 offset changes image's dimensions

Post by CatBurgers »

On 6.9.2-8 Q16 x64 for windows:
Image a.png is 1472x208, to which I apply a crop using:

Code: Select all

convert.exe a.png -crop 1472x208+0+0 b.png
Which shouldn't really do anything, but b.png is actually changed (it becomes 1398x208). If I remove the offset options with:

Code: Select all

convert.exe a.png -crop 1472x208 c.png
Then the dimensions are not changed.

You can view the output here: (from top to bottom: a.png, b.png and c.png)
http://imgur.com/a/VdVb1
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: crop with 0 offset changes image's dimensions

Post by glennrp »

The input image contains an oFFs chunk, which is probably interfering with the result you expected.
Post Reply