Robbert van Andel 

-----Original Message-----
From: Arnaud [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 1:22 PM
Subject: [PHP] GD : Black background with imagecreatetruecolor

Hi everyone,

I'd like to use "imagecreatetruecolor" function in order to "cut and paste"
JPG files on a white background. It seems not to work correctly.

Here is my test scripts :

This one works perfectly :
header ("Content-type: image/png");

I obtain a white image but using GD 2.x, the "imagecopy" function fails.

This other script doesn't work :
header ("Content-type: image/png");

I'm getting a black image.

My configuration is PHP 4.2.3 with gd2 running on Windows XP (I've also
tested it on my web provider machine - Linux with PHP 4.2.2)

Any help would be great.

Thanks in advance


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

 "The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from all

Reply via email to