How to simulate Photoshops color overlay feature using GD
Posted: Mon Sep 10, 2007 2:29 am
I was hoping to someone could help me find a way to simulate the 'Color Overlay' feature from Photoshop using only the GD Library...
Basically I have a transparent overlay that I want to place over a background image...
This is so I can fade the edges of that image to the background color of the page...
This I've already done...
However the overlay image is a set color, black in this case...
I need to be able to change it under certain circumstances to match the page color...
To change this in Photoshop I would just go to blending options -> color overlay and select a different color...
I was hoping to find a way of doing this using the GD Library instead...
The overlay picture can be found here... http://trekcon.com/overlay/overlay.png
The background picture can be found here... http://trekcon.com/overlay/background.jpg
The result can be found here... http://trekcon.com/overlay/composite.jpg
The code can be found here... http://trekcon.com/overlay/watermark.php
Hopefully what I'm asking makes sense
Thanks in advance for any help
Jason Hart (aka Runey)
Basically I have a transparent overlay that I want to place over a background image...
This is so I can fade the edges of that image to the background color of the page...
This I've already done...
However the overlay image is a set color, black in this case...
I need to be able to change it under certain circumstances to match the page color...
To change this in Photoshop I would just go to blending options -> color overlay and select a different color...
I was hoping to find a way of doing this using the GD Library instead...
The overlay picture can be found here... http://trekcon.com/overlay/overlay.png
The background picture can be found here... http://trekcon.com/overlay/background.jpg
The result can be found here... http://trekcon.com/overlay/composite.jpg
The code can be found here... http://trekcon.com/overlay/watermark.php
Hopefully what I'm asking makes sense
Thanks in advance for any help
Jason Hart (aka Runey)