1.

Solve : "Change image" - PHP????

Answer»

I am trying to MAKE something that will allow a use to recolor different things in an image.
Theres a few parts.

Head, right leg, left leg, head, torso, right arm, left arm.

I dont know how to do this, THOUGH. I know its done with php.

Can someone help me FIND a link to a website that shows how?It depends which image library you have INSTALLED with PHP.  I usually use GD.  Full references here: http://www.php.net/manual/en/refs.utilspec.image.phpThe default WordPress theme's header image does something like this.But how would I combine two images, or more?I don't think GD can combine images. Maybe ImageMagick can. Quote from: Bannana97 on July 21, 2009, 09:06:07 AM

But how would I combine two images, or more?

Have you read the manual yet?  http://www.php.net/manual/en/function.imagecopymerge.php

Quote from: kpac on July 21, 2009, 09:46:05 AM
I don't think GD can combine images.

Have you read the manual yet?  No actually!

But I have now. Most of the examples just use one image..... Quote from: Rob Pomeroy on July 21, 2009, 10:14:51 AM
Have you read the manual yet?  http://www.php.net/manual/en/function.imagecopymerge.php

Have you read the manual yet? 

I dont understand that D: Quote from: kpac on July 21, 2009, 11:14:45 AM
But I have now. Most of the examples just use one image.....

copymerge - there's a clue in the function name.  Merge one image in, then another, then another, etc.  Or use functions to CREATE the entire image in one, programmatically.


Discussion

No Comment Found