Color half image
Posted: 2009-11-03T04:32:14-07:00
I would try this script to color the left half of my images green:
I haven't tried it yet, but there's a problem, since my images aren't always 64x32.
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
?
Thanks in advance.
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.