ID: 35585 User updated by: prakash at oliveinternet dot com Reported By: prakash at oliveinternet dot com -Status: Feedback +Status: Open Bug Type: GD related Operating System: Linux PHP Version: 4.4.1 Assigned To: pajoye New Comment:
Oh yes.... the culprit was lying there. Previous Comments: ------------------------------------------------------------------------ [2005-12-07 16:35:29] [EMAIL PROTECTED] Use error_reporting(E_ALL); Check your memory limit provide links to the various images you use. ------------------------------------------------------------------------ [2005-12-07 16:23:14] prakash at oliveinternet dot com 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 this bug report at http://bugs.php.net/?id=35585&edit=1