Link to home
Start Free TrialLog in
Avatar of maccaj51
maccaj51Flag for Afghanistan

asked on

image manipulation with php and javascript

Hi Experts,

Looking at this site:

http://www.stripegenerator.com/

is there any way to generate or manipulate colours in an image... So users can change the colour of stripes or gradients on my site?
ASKER CERTIFIED SOLUTION
Avatar of Ethien
Ethien

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
To allow javascript interaction you will most likely pass variables from javascript to a .php image (<img src='./image.php?var1=1&var2=2' style='...'/>).

You then use the image library, as above, with those variables to output the image. To change the background you'll need to change the background image for your site.

IF YOU ARE ALLOWING USER INPUT TO INFLUENCE YOUR PHP SCRIPTS, make sure to validate and sanitize any and all accepted inputs before using them.
Avatar of maccaj51

ASKER

Thanks for both of your help... is there anyway to create gradients??
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
HEROIC!!! Many thanks to you both!!!!