Removing white space in Photoshop

10,560

Solution 1

There's a trim item in the menus that will look at the top left pixel and remove the contiguous pixels of the same colour from around the image, this has the effect of cropping out the background. It should be available for batch operations and macros, is that what you need?

Solution 2

I don't know how to automate this in Photoshop, but ImageMagick can do it. The Windows binaries are easy to install. There don't seem to be Mac binaries though.

Trim or the 'Auto-Crop' Operator

The "-trim" operator is a very close relation to the highly versatile "-crop" operator discussed above. However instead of supplying an argument, this operator attempts to remove any borders or edges of an image which did does not change in color or transparency. In other words it removes the 'boring' bits surrounding an image.

Share:
10,560
Copper
Author by

Copper

Updated on June 07, 2022

Comments

  • Copper
    Copper over 1 year

    I have 500 icon images in Photoshop that have varying white space around each of the objects. I was wondering if there's any way to run an action through photoshop that'll crop each image so that it removes the white space around each of the icon (if not, oh well, I was just curious).

  • Copper
    Copper about 13 years
    Exactly what I need. Thank you!