This question already has an answer here:

I'm searching for a way to remove the white border of images. I have 6000-7000 images, so I can't do this by hand... Every image has a different size and a different white border. Is there any plugin that does this?

For example:

enter image description here

has to be:

enter image description here

marked as duplicate by Blrfl, mattdm, Olivier, scottbb, inkista Apr 17 '17 at 2:38

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


If you don't have Photoshop, you can do something similar in Gimp. Use the Autocrop Image command in Batch mode. Try it on a 'sacrificial' folder first to make sure it works the way you expect.

@Francois at What is the best way to auto crop bulk images? links to here which has more info about using Gimp for this purpose.

  • I tried to autocrop with Gimp and it did work! But I don't understand how to batch this, I don't know anything about programming or anything... – Virgil Apr 14 '17 at 11:58
  • Click on the highlighted words "Batch" and "What is the best..." for hints on how to batch job the crop. – BobT Apr 15 '17 at 2:50
  • So I have to write a script in "Script-Fu - Console"? I can't find out what to write? Can you help me? My images are in the folder C:\Users\virgil2\Desktop\Cataloog copy – Virgil Apr 18 '17 at 13:06

Adobe Photoshop has the "Trim" feature. You can automate the process by recording an action, then running it for all the images.


I can't offer a plugin (for what?), but the command line image processor ImageMagick offers a trim command which is designed to do exactly that.

Not the answer you're looking for? Browse other questions tagged or ask your own question.