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.– EliuXApr 6, 2016 at 19:02
2 Answers
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". Jun 28, 2020 at 6:05
-
"Crop to content" does what I wanted. I don't think "crop to selection" is what this question is about.– GusSep 21, 2021 at 18:29
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).– TakkatApr 5, 2016 at 7:47
-
It would be strange not to have access to a plug-in that comes with GIMP by default. Apr 6, 2016 at 21:15