This is an archive of the old MediaWiki-based ImageJ wiki. The current website can be found at imagej.net.

Auto Crop

Auto Crop (ImageJ)
Author Johannes Schindelin
Maintainer Johannes Schindelin
Source on GitHub
Initial release 40/02/2010
Latest version 30/04/2011
Development status stable
Category Category:Plugins


This plugin can find the smallest bounding box of an image (or a rectangular part defined by a selection) by cropping as much background as possible.

In the version labeled with (guess background color), the plugin tries to determine the background color by looking at the pixels on the border of the image, while Auto Crop uses the currently selected background color which can be changed by double-clicking on the pipette symbol or using the Image  › Color  › Color Picker....

Instead of cropping right away, you can set the selection to the rectangle that would be cropped to using Edit  › Selection  › Select Bounding Box.