From: prakash at oliveinternet dot com Operating system: Linux PHP version: 4.4.1 PHP Bug Type: *Graphics related Bug description: Image Resizing with big images (in dimension)
Description: ------------ I am trying to resize an image. The image (jpg/jpeg) to be resized is of 1425 X 1425 dimesion. The image is not created from the source file using imagecreatefromjpeg() function. If I choose an image of smaller dimention (have tried with image with 800 x 600 size), then the it is being resized. The same was not happenning when I was using PHP 4.3.8. Now I have upgraded my PHP to 4.4.1. Is it a limitation in this version of PHP. Please help.... its urgent. Even an image with 1200 x 800 is not resized Reproduce code: --------------- $srcImage = imagecreatefromjpeg($src_file) $ptrImage = imagecreatefromjpeg($ptr_file); $dstImage = imageCreateTrueColor($dst_w, $dst_h); imageCopyResampled($dstImage, $srcImage, 0, 0, 0, 0, $dst_w, $dst_h, $src_w, $src_h); $ptr_white = imageColorAllocate($ptrImage,255,255,255); imageCopyMerge($dstImage, $ptrImage, $ptr_x, $ptr_y, 0, 0, $ptr_w, $ptr_h, 100); imagejpeg($dstImage, $save_path, 100); -- Edit bug report at http://bugs.php.net/?id=35585&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35585&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35585&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35585&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=35585&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35585&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35585&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35585&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35585&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35585&r=support Expected behavior: http://bugs.php.net/fix.php?id=35585&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35585&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35585&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35585&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35585&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35585&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35585&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35585&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35585&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35585&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35585&r=mysqlcfg