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'm trying to figure out how to subtract two images in Photoshop so that the result is an image with transparent layer. Basically it all boils down to the fact that if color of the pixel is the same, it sets pixel in transparency layer to black. What's the easiest method to achieve this kind of result in Photoshop? Below is a visual example of what I'm trying to achieve (a figure with transparent background, NOT WHITE)

Thanks! enter image description here

share|improve this question

migrated from May 28 '12 at 3:11

This question came from our site for professional, enthusiast and amateur photographers.

Is this for a photographic application? – ElendilTheTall May 27 '12 at 6:05

If you use the difference blending mode, you'll get black where the pixels match, and non-black where pixels do not match. In your simple example, you'd end up with a black background and the red circle would be cyan (inverse of red).

You could invert that image and then you'd have white background with your red circle (for this simple example anyway)

I don't know of any way of ending up with transparent background rather than black/white. You'd either have to save as GIF and set that color as transparent, or use select color range, select the background, and delete it.

share|improve this answer

You can CTRL+Click layers (to make a selection based on transparency) and then the use the resulting selection to erase parts of the other image.

share|improve this answer

Your Answer


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