ID: 33836 User updated by: bug_php at yahoo dot fr Reported By: bug_php at yahoo dot fr Status: Bogus Bug Type: *Graphics related Operating System: Linux RedHat 2.4.28 PHP Version: 4.3.11 Assigned To: pajoye New Comment:
I'm sorry but it still doesn't work, and I don't think my code is bogus. I use the bundled GD (version 2.0 or higer) as you can see here: http://720plan.ovh.net/test.php (this is my hosting company's website). Did you try with PHP 4.3.11? I put my sample code here so that you can try it with various couple of width and size and see what I mean. I also put in my code a highlight_file() and a gd_info() so that you can see the actual code and various config paramaters: http://www.demaison.com/boy.php Thanx Previous Comments: ------------------------------------------------------------------------ [2005-07-23 17:39:46] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Cannot reproduce, if you still have still problem, tell us if you use the bundled GD (configure --with-gd, without path to any external gd). Have tried with 5.1 and 4.4 --Pierre ------------------------------------------------------------------------ [2005-07-23 15:04:19] bug_php at yahoo dot fr Description: ------------ See PHP info on http://720plan.ovh.net/test.php (PHP version is 4.3.11 as of 2005/07/23). Bug similar to the problem exposed in closed bug report #26254. The code below results in an image that is 1 pixel too small: there is a blank range of pixels. According to the destination image width and height, this range of pixels can be vertical, horizontal, or both. The code below is for a 640*480 image destination. But the same happens for a 40*40 image for instance. This problem occurs with any image and number of pixels I tried. The only case it works: when the image destination has the same size thant the source image. Reproduce code: --------------- <html> <body bgcolor="green"> <? $image_source_filename="bar.jpg"; //image 230*173px $image_cible_filename="bar.gif"; $ImgSrc = imagecreatefromjpeg ($image_source_filename); imagetruecolortopalette($ImgSrc, false, 256); $ImgDst = imagecreate(640,480); imagecolorallocate($ImgDst, 255, 255, 255); imagecopyresized($ImgDst,$ImgSrc,0,0,0,0,640,480,230,173); imagegif ($ImgDst,$image_cible_filename); echo("<br><br><font color=\"white\">Resized image=</font><br><img src=\"$image_cible_filename\"><br>"); ?> </body> </html> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33836&edit=1