#25919 [Opn->Fbk]: Sometimes imagecreatefromjpeg stops

From: Date: Mon, 20 Oct 2003 10:41:45 +0000
Subject: #25919 [Opn->Fbk]: Sometimes imagecreatefromjpeg stops
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-49223@lists.php.net to get a copy of this message
ID: 25919 Updated by: sniper@php.net Reported By: agnermadsen at hotmail dot com -Status: Open +Status: Feedback Bug Type: GD related Operating System: FreeBSD PHP Version: 4.3.3 New Comment: What is the configure line you used to configure PHP? If you didn't use the bundled GD library, bogus this report yourself.. Previous Comments: ------------------------------------------------------------------------ [2003-10-20 06:35:24] agnermadsen at hotmail dot com 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 this bug report at http://bugs.php.net/?id=25919&edit=1

« previous php.bugs (#49223) next »