6.17. Autocrop Image
| 6. The “Image” Menu |

### 6.17. Autocrop Image

The Autocrop Image command removes the borders from an image. It searches the active layer for the largest possible border area that is all the same color, and then crops this area from the image, as if you had used the Crop tool.

| 小心
Note carefully that this command only uses the active layer of the image to find borders. Other layers are cropped according to the same limits as limits in the active layer.

#### 6.17.1. Activate the Command

- You can access this command from the image menubar through Image → Autocrop Image.

#### 6.17.2. Example

图 16.69. “Autocrop” example

This image is made of three layers. One with a red square, another with a green square; both on a yellow semi-transparent background. The green layer is active.

“Autocrop” has cropped the green square and made a layer from it. The other layers have been cropped to the same size as the green one. Only a small part of the red square has been kept.

6.16. Crop to Selection |  | 6.18. Zealous Crop

Report an error in Bugzilla