Code: Select all
convert leftgreen: image.png
convert leftgreen: -crop 32x32+0+0 -background green image.png
If you don't get what I want, I want the left half colored green (#00FF00) and retain the right half, at images which are either 64x32, 64x64, 128x32 or 128x64.
Is there a universal solution like
Code: Select all
convert leftgreen: image.png
convert leftgreen: -crop [fx:w/2]x[fx:h/2]+0+0 -background green image.png
Thanks in advance.