#25919 [NEW]: Sometimes imagecreatefromjpeg stops

From: Date: Mon, 20 Oct 2003 10:35:24 +0000
Subject: #25919 [NEW]: Sometimes imagecreatefromjpeg stops
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-49222@lists.php.net to get a copy of this message
From:             agnermadsen at hotmail dot com
Operating system: FreeBSD
PHP version:      4.3.3
PHP Bug Type:     GD related
Bug description:  Sometimes imagecreatefromjpeg stops

Description:
------------
If the file size of the JPEG-file is over 400kb then imagecreatefromjpeg()
sometimes crashes and sometimes it's when it reaches
imagecreatetruecolor();

Reproduce code:
---------------
$width=650;
$im = @imagecreatefromjpeg($pic);
$size=getimagesize ($pic );
$height=intval($width/$size[0]*$size[1]);
if ($height<$width/$size[0]*$size[1]) $height++;
$picre=@imagecreatetruecolor($width,$height);
imagecopyresampled (  $picre,$im, 0, 0, 0, 0, $width, $height, $size[0],
$size[1]);
imagejpeg($picre);
imagedestroy($picre);
imagedestroy($im);

Expected result:
----------------
Made a new picture.

Actual result:
--------------
Nothing

-- 
Edit bug report at http://bugs.php.net/?id=25919&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25919&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25919&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25919&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25919&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25919&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25919&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25919&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25919&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25919&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25919&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25919&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25919&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25919&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25919&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25919&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25919&r=float


Thread (8 messages)

« previous php.bugs (#49222) next »