php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35585 Image Resizing with big images (in dimension)
Submitted: 2005-12-07 16:23 UTC Modified: 2005-12-08 10:55 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: prakash at oliveinternet dot com Assigned: pajoye (profile)
Status: Not a bug Package: GD related
PHP Version: 4.4.1 OS: Linux
Private report: No CVE-ID: None
 [2005-12-07 16:23 UTC] 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);


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-07 16:35 UTC] pajoye@php.net
Use error_reporting(E_ALL);

Check your memory limit

provide links to the various images you use.
 [2005-12-08 09:39 UTC] prakash at oliveinternet dot com
Oh yes.... the culprit was lying there.
 [2005-12-08 10:55 UTC] tony2001@php.net
.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 03 07:01:29 2024 UTC