Re: How to add a new color to JPEG

From: Date: Tue, 17 Jul 2001 10:11:43 +0000
Subject: Re: How to add a new color to JPEG
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-58237@lists.php.net to get a copy of this message
Jennifer wrote: > it seems to ignore the color that I specify and always came out > grey. (Of course now if I use ImageColorClosest(), some colors > work because they are in my image.) > > > Any idea on how solutions? > Oops. I didn't read far enough. I found the following in a separate thread. > I experienced the same, but i use following workaround: > Create a new Jpeg, Allocate your colours, and copy your original jpg > into the new one. then you have all the colours you have allocated in > your new pic... So now my question is, how do I copy one image into another? I see ImageCopy(), but it mentions copying a part of the image, so do I have to use GetImageSize to determine the size of the src image first? Jennifer

« previous php.general (#58237) next »