Page 1 of 1

imagecopy save colors

Posted: Tue Mar 13, 2007 1:14 pm
by flann
is there a way to copy two images using gd and save the colors? I've been able to get the two images copied but the second image color changes based on the first ones color. I want to preserve both colors independently of each other.

edit:
Shouldn't imagealphablending($img, false); for the image that is getting blended, stop this from happening?

Posted: Tue Mar 13, 2007 3:23 pm
by flann
I found where I was going wrong, where I used imagecreate I needed to use imagecreatetruecolor.