Skip to main content
justinw86398615
Inspiring
January 23, 2022
Question

Copy a greyscale image over another solid color one so the greyscale information is transparency

  • January 23, 2022
  • 2 replies
  • 481 views

I have 2 images. Image 1 is a block of solid red colour. Image 2 is a black (raster) image of a pen. Image 2 is greyscale; the pen is black and the bakcground is white. But at the edges there are shades of grey. (4)

 

I am attaching two samples. One shows my source greyscale image (a extract) and the other shows the resuult I am aiming for - but with the problem. 

 

I want to paste image 2 (the pen) over image 1 (the red block) so that the shades of grey at the edge of the pen which give a nice soft edge are turned into transparency. My current method is convert image 2 to transparency using Select Colour but this fails because it just selects white. This gives the jagged edges which are visible on the attached file.

 

I understand that this is to do with channels or layers but I can't see what to do exactly.

 

Thank you

This topic has been closed for replies.

2 replies

D Fosse
Community Expert
Community Expert
January 23, 2022

<nevermind - I misunderstood the question. See above>

c.pfaffenbichler
Community Expert
Community Expert
January 23, 2022

I recommend: 

• Load the grayscale channel as a Selection (ctrl-click it in the Channels Panel)

• Create a black Solid Color Layer (Layer > New Fill Layer > Solid Color)

• Convert to a Smart Object and drag to the other image. 

 

Alternatively you could just use place the grayscale image (File > Place …) as a Smart Object and set it to Blend Mode »Multiply«. 

justinw86398615
Inspiring
January 23, 2022

Hi - thanks

 

this seems to work though it looks like I will need to invert the mask or selection? Currently I get transparency where I want black when I paste it. (I can probably fix this by experimentation).

 

Can you explain the rationale for using a Smart Object?

 

Thanks - sorry, I am a complete beginner)

c.pfaffenbichler
Community Expert
Community Expert
January 24, 2022

Sorry, I forgot the inversion step (Select > Inverse). 

 


Can you explain the rationale for using a Smart Object?


One can repeatedly tranform (scale, rotate, …) Smart Objects and they will not unnecessarily degenerate. 

One can apply Filters and change their settings repeatedly without unnecessary image degeneration. 

One can have multiple instances of the same Smart Object in one image and they will all reflect changes in the Smart Object. (With Linked Smart Objects one can have instances of the same SO in multiple images, though one may need to trigger the update manually under certain circumstances.)

The Color Space of the containing document and the Smart Object can differ. 

…