From:             jeck at kntel dot kiev dot ua
Operating system: FreeBSD 5.4-RELEASE
PHP version:      4.3.11
PHP Bug Type:     GD related
Bug description:   imagecreatefromjpeg(): gd-jpeg: JPEG library reports 
unrecoverable error

Description:
------------
Hi, just trying to copy images from one server to other but resize them.
I try to grab them using imagecreatefromjpeg(HTTP_IMG_URL), but somehow
got an error line like this "Warning: imagecreatefromjpeg(): gd-jpeg: JPEG
library reports unrecoverable error"...
One more thing - i trying to resize not one picture but ~65000 in a loop,
maybe this fact has importance...

Reproduce code:
---------------
//... some calculation code
$img_src = imagecreatefromjpeg($http_img_url);
$img_dst = imagecreatetruecolor(100, 100);
// $start_x, $start_y, $width, $height, $iwidth, $height -
// calculated above
imagecopyresampled($img_dst, $img_src, $start_x, $start_y, 0, 0, $width,
$height, $iwidth, $height);
imagejpeg($img_dst, $g_dstfile);
imagedestroy($img_dst);
// ... some insignificant code, and of function

Expected result:
----------------
just resized copy of image


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

Reply via email to