Create two semi-transparent images that when stacked produce the target image

Posted by posfan12 on Stack Overflow See other posts from Stack Overflow or by posfan12
Published on 2010-05-05T11:55:42Z Indexed on 2010/05/05 11:58 UTC
Read the original article Hit count: 269

Filed under:
|
|
|
|

Due to CSS limitations I am forced to stack to semi-transparent images on my website. I won't go into detail regarding the CSS since if I can get this question answered the problem is moot.

Anyway, I would like to modify image A in the GIMP such that it will look like it did originally after being stacked on top of image B. Both image A and image B have their opacities set to 50%. Image B is a solid color throughout, whereas image A has some minor details such as a gradient.

Here's what it looks like before image B is applied on top (and what it should look like in the end):

[URL=http://s421.photobucket.com/albums/pp292/SharkD2161/Support/Website/?action=view&current=website_testing_target_image.png][IMG]http://i421.photobucket.com/albums/pp292/SharkD2161/Support/Website/th_website_testing_target_image.png[/IMG][/URL]

Here's what it looks like after image B has been applied on top:

[URL=http://s421.photobucket.com/albums/pp292/SharkD2161/Support/Website/?action=view&current=website_testing_undesired_result.png][IMG]http://i421.photobucket.com/albums/pp292/SharkD2161/Support/Website/th_website_testing_undesired_result.png[/IMG][/URL]

Thanks!

Mike

© Stack Overflow or respective owner

Related posts about css

Related posts about alpha