Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a few hundred family images and they were all sent to us with borders that I would like to remove. Thankfully the borders are all the same size of 20 pixels and they are all .jpg so this will probably make things easier but im looking for a way to "batch process" all of them quickly so I dont need to open photoshop for each image and do it individually. Command line is preferred, the only big problem is they are mostly different sizes.

Here is an example

alt text

share|improve this question
    
This question has a broken image. – 8088 Sep 1 '11 at 4:22
up vote 3 down vote accepted

You can use ImageMagick for this. You will need to use the -shave switch.

example:

convert -shave 20x20 *.jpg
share|improve this answer

You must log in to answer this question.