I wanna trim all white spaces surrounding an image's content using Gimp. Is there some straightforward method, or any trick?
closed as off-topic by Zach Saucier, Cai, DᴀʀᴛʜVᴀᴅᴇʀ♦ Apr 5 '16 at 16:25
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "If you're asking for help with implementation, please include what you've tried and why it didn't work with screenshots. Please edit your post with what your desired results are, what resources you referenced and why those didn't work. See this meta post for discussion and see this post on how to ask a good question." – Zach Saucier, Cai, DᴀʀᴛʜVᴀᴅᴇʀ
What do you have there that
Image->Autocrop image did not work?
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.