PHP Imagick API: How to change the Hue of an Image to known hexadecimal value

amin_hosni

New Member
I create template websites. If a client choose a blue or green or purple heading, I don't want to have to store all those different color variations of an image. I want to programmatically change the hue. I do not want to 'flood fill' it because that would remove any textures or bevels.For example page you see I have accomplished exactly what I want.http://sta.oursitesbetter.com/test/index.phpI have done this using Imagick modulateImage function. HOWEVER, I am just throwing random 'Hue' values and not RGB values. I want to accomplish this same thing feeding RGB values. I need a function similar to modulateImage however it must take RGB as value and set the image to that hue.I have studied for the past 5 hours and cannot figure out how to do it. I need help.Has any of the gurus of StackOverflow got a PHP Imagick solution to this color quandary?
 
Back
Top