I wanna trim all white spaces surrounding an image's content using Gimp. Is there some straightforward method, or any trick?
To trim white borders with Gimp we may
Invert the selection Ctrl + I
Crop the image to the selection (Image > Crop to selection)
For a quicker workflow we can also use the following steps:
- Select all Ctrl+ A
- Subtract selection by color by Ctrl + mouseclick on selecting
- Crop image to selection
Batch processing of large numbers of files can better be done with ImageMagick Trim to remove all colors having the same color as the image corners:
mogrify -trim *.png
Note that this will overwrite your files, work on copies.