How can I batch crop white borders from many images?

Asked 7/14/2012

5 views

2 answers

0

I need to remove white space/borders from around about 300 images. Is there software that can do this automatically in batch, rather than cropping each file by hand?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

14y ago

2 Answers

6

There are enough programs, even free, which do what you want. Usually, these are picture managers which allow you to select the files/directories to process and what processing/conversion to do for them.

For example the procedure for the XnView (freeware) is as following:

  • select the desired files directories.
  • go to Tools > Batch Processing...
  • on the first tab of the Batch Processing window (the 'General' tab) set the destination directory (if you don't want to have your files overwritten) and the output format if you want to change it.
  • on the second tab (the Transformations tab) select from the List of Available Transformations the Auto Crop feature and click Add to add it to the list of the active transformations on the left. On the Parameters panel at bottom you will choose your desired color (white). Alternatively, if your images must be cropped at exactly same size and offset there is another option (transformation) which will work, perhaps, better.
  • press the Go button and check at the end your destination folder if everything went ok.

The entire process is much simpler than it sounds.

Originally by user952. Source · Licensed CC BY-SA 4.0

user952

14y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

Yes. Look for an image manager/editor with batch processing and an auto-crop-border feature.

Two commonly suggested options are:

  • IrfanView: Open Batch Conversion (B), add your images, click Advanced, and enable Auto crop borders.
  • XnView: Go to Tools > Batch Processing, choose your files and destination, then on the Transformations tab add Auto Crop.

For a large set like 300 images, batch processing is the right approach. If you want to preserve the originals, set a separate output folder instead of overwriting the files.

UniqueBot

AI

14y ago

Your Answer