#35585 [Opn->Bgs]: Image Resizing with big images (in dimension)
| From: | tony2001@php.net | Date: | Thu, 08 Dec 2005 09:55:06 +0000 |
| Subject: | #35585 [Opn->Bgs]: Image Resizing with big images (in dimension) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-89941@lists.php.net to get a copy of this message | ||
ID: 35585
Updated by: tony2001@php.net
Reported By: prakash at oliveinternet dot com
-Status: Open
+Status: Bogus
Bug Type: GD related
Operating System: Linux
PHP Version: 4.4.1
Assigned To: pajoye
New Comment:
.
Previous Comments:
------------------------------------------------------------------------
[2005-12-08 09:39:25] prakash at oliveinternet dot com
Oh yes.... the culprit was lying there.
------------------------------------------------------------------------
[2005-12-07 16:35:29] pajoye@php.net
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