I have a rather strange problem: an image where -shave only shaves two sides, unless you rotate it first!
The following script
Code: Select all
#! /bin/sh
SHAVE=2x2
# version
convert -v | head -n2
# file exhibiting bug
file bug.png
# only shaves two sides
convert -shave $SHAVE bug.png bug2.png
file bug2.png
# but if you rotate it first
convert -rotate 180 bug.png bug3.png
convert -shave $SHAVE bug3.png bug4.png
file bug4.png
produces the following output
am I missing something?Version: ImageMagick 6.2.4 02/10/07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2005 ImageMagick Studio LLC
bug.png: PNG image data, 344 x 40, 8-bit/color RGB, non-interlaced
bug2.png: PNG image data, 342 x 38, 8-bit/color RGB, non-interlaced
bug4.png: PNG image data, 340 x 36, 8-bit/color RGB, non-interlaced
System is Debian Linux on x86.