I wanna trim all white spaces surrounding an image's content using Gimp. Is there some straightforward method, or any trick?
-
Can anyone tell me how this question may be wrong? I got 2 answers of what i exactly wanted. – EliuX Apr 6 '16 at 19:02
What do you have there that
Image->Autocrop image
did not work?
-
As of Gimp 2.10.8, if I'm not wrong, it appears "Autocrop image" has been renamed to "Crop to Selection". – CreativiTimothy Jun 28 '20 at 6:05
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.
-
-
1@PaoloGibellini: yeah it sure is... I was under the impression that the OP didn't have access to this plugin (or may not be satisfied with it for reasons we don't know yet). – Takkat Apr 5 '16 at 7:47
-
It would be strange not to have access to a plug-in that comes with GIMP by default. – Michael Schumacher Apr 6 '16 at 21:15