Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I used the selection tool to drag part of one image onto another image in a new layer. That layer has a "padding" (not sure what else to call it) of about 75 transparent pixels around the image. I'm wondering if there's a way to remove the transparent pixels for that layer alone similar to the way one can use Image->Trim on the entire image. The purpose for doing this is so I can make an image sprite with each icon on a layer of the same size. Thank you so much!

share|improve this question
up vote 1 down vote accepted

The transparency is there because of a lack of painted pixels, so in this case you would not be "removing" the transparency, but rather filling in those areas.

If you place a new layer under the layer in question, and fill it with the appropriate color, and then merge the 2 layers, you will have a layer that extends to the edges of the canvas.

share|improve this answer
thank you for your response and this will work for certain situations. perhaps my wording is a bit off in what I'm actually asking so I'll try again. The trim function can crop an image using a bounding box around the outside edges of painted pixels. Is there a way to trim the surrounding transparent pixels from an individual layer? In other words, is there a way to crop an individual layer to a bounding box surrounding that layer's painted pixels? edit: clarity (?) – tim Jan 31 '13 at 18:11
You cannot remove transparent pixels. The item on that layer already is cropped to that. TO select that, you can ctrl+click on the layer thumbnail in the layers palette. If you can provide some example of the item or a mockup exhibiting a similar problem, please do. – horatio Jan 31 '13 at 18:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.