Bug #11976 Updated: image_copy_resized does not work properly

From: Date: Tue, 24 Jul 2001 12:50:54 +0000
Subject: Bug #11976 Updated: image_copy_resized does not work properly
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-60847@lists.php.net to get a copy of this message
ID: 11976 Updated by: andy Reported By: yannbarrault@yahoo.fr Old Status: Feedback Status: Open Bug Type: GD related Operating System: windows 98 SE PHP Version: 4.0.6 New Comment: exactly the result I got. Can anybody else reproduce this? I still think this is bogus. Previous Comments: ------------------------------------------------------------------------ [2001-07-24 03:08:00] yannbarrault@yahoo.fr The image result supposed to be a png image like this: ---------------------------|- | | | | | | | | | | | | | | | - | | | | | | | - | | | | | - - | | | - | | | So it is supposed to be a graph with blue rectangles and two black lines, not a black square. ------------------------------------------------------------------------ [2001-07-23 11:43:58] yannbarrault@yahoo.fr My script should not draw a black image but a blue graph( blue rectangles). Actually, with php4.0.6, my script draw a black square and with php4.0.5 my script draw a graphics with blue rectangles. It works with php4.0.6 only if I don't use the function image_copy_resized. So In conclusion, I think that there is a problem with this function on php4.0.6 with W98 OS?? ------------------------------------------------------------------------ [2001-07-23 09:33:38] andy@php.net so what is the problem. The image works now... Just make sure you set the header to "image/png" or whatever file type the image is. ------------------------------------------------------------------------ [2001-07-23 06:24:34] yannbarrault@yahoo.fr When I removed the header function (or set it to "text/html"), I have this on my browser: " PNG "?? If I keept "image/png" or "image/jpeg", I have a all-in black image?? ------------------------------------------------------------------------ [2001-07-21 20:51:42] andy@php.net Works fine for me (I am using Linux.) Try removing the header function (or set it to "text/html") and see if there are any errors/warnings that are corrupting the image. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=11976 Edit this bug report at http://bugs.php.net/?id=11976&edit=1

« previous php.dev (#60847) next »