chop with percentage affects other dimension
Posted: 2017-10-03T11:19:52-07:00
If I use -chop with a percentage in only one dimension, the second dimension loses a pixel too. For example (and here I'm chopping the width, but the results are the same if I use the height):
yields: 70 x 46
yields the expected 69 x 46, but
yields 69 x 45.
Why is the height getting chopped too?
It looks like even with a 0% chop, 1 pixel is always removed, as long as there's a percentage and not a number of pixels:
yields the same 69 x 45.
Version: ImageMagick 7.0.7-5 Q16 x86_64 2017-10-03 http://www.imagemagick.org
Mac OS X 10.11.6
Code: Select all
convert -format "%w x %h" rose: info:
Code: Select all
convert -format "%w x %h" -gravity east -chop 1x0 rose: info:
Code: Select all
convert -format "%w x %h" -gravity east -chop 1%x0 rose: info:
Why is the height getting chopped too?
It looks like even with a 0% chop, 1 pixel is always removed, as long as there's a percentage and not a number of pixels:
Code: Select all
convert rose: -format "%w x %h" -gravity east -chop 0%x0 info:
Version: ImageMagick 7.0.7-5 Q16 x86_64 2017-10-03 http://www.imagemagick.org
Mac OS X 10.11.6