Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.