I want to apply saturation to photo using php gd but I only know that to do image editing. I need to:
- Change BGR to HSL
- do something which I don't know.
- Change the result back from HSL to BGR.
Anyone know what is the logic/algorithm for step 2? And is there any other better way to apply saturation to photo in php?
Edit: What I mean by "apply saturation" is manipulating/changing saturation of photo like how you can do in most of the image editing tool like ipiccy.com and edit photo function in Microsoft office 2010 where you can change value of slider and then saturation of photo will change. I want to write code in php to change saturation of photo but I have no clue how to start. Anyone can advise? Thank you.