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 64×64 to 60×40
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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).