Let's say I have a directory full of flags (200 or so). Each flag has this border... 12px up and down and 1px left and rigtht.... like so:
How can I use imagemagick to like... crop every single .PNG image from 64x64 to 60x40
You have the automatic crop: mogrify -trim flag.png
. If it does not do the exact magic you want, use crop: mogrify -crop 60x40+2+12 flag.png
(That is 2 pixels left).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With