This site runs best with JavaScript enabled. Trim Function

How to trim an image like you would in Photoshop

I'm really liking I can't afford Photoshop and so I resorted to using free alternatives such as GIMP and There has been a slight learning curve though as I've had to get used to these free tools.

One thing I found missing that I would often use in Photoshop is the trim function. This essentially allows you to remove the extra blank space or white (or whatever color you choose) space around an image.

I've found a simple workaround to do what I need though.

Here it is, step-by-step:

Use the magic want to select the outside portion you want to trim.
magic wand
wand selected

Invert your selection:

And finally, crop to selection:

Discuss on TwitterEdit post on GitHub

Share article
Dustin Davis

Dustin Davis is a software engineer, people manager, hacker, and entreprenuer. He loves to develop systems and automation. He lives with his wife and five kids in Utah.

Join the Newsletter

Dustin Davis