Page 1 of 1

[Resolved]possible bug with canvas offsets after crop with gravity

Posted: 2018-12-28T13:13:04-07:00
by fmw42
IM 6.9.10.20 Q16 Mac OSX (or with IM 7.0.8.20 using magick rather than convert)

Why am I getting +0+0 for the virtual canvas offsets in the following command using -gravity center on a crop without a +repage.

Code: Select all

convert logo: -gravity center -crop 25x25+0+0! -format "%O\n" info:
+0+0

Do I misunderstand? Should I not get the non-zero values since I did not include +repage after the crop?

Re: possible bug with canvas offsets after crop with gravity

Posted: 2018-12-29T07:04:22-07:00
by magick
Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ https://www.imagemagick.org/download/beta/ by sometime tomorrow.

Re: possible bug with canvas offsets after crop with gravity

Posted: 2018-12-29T17:13:08-07:00
by fmw42
Thanks. Seems to be working in IM 6.9.10.22 beta and 7.0.8.22 beta