ID:               33590
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jeck at kntel dot kiev dot ua
-Status:           Open
+Status:           Feedback
 Bug Type:         GD related
 Operating System: FreeBSD 5.4-RELEASE
 PHP Version:      4.3.11
-Assigned To:      
+Assigned To:      pajoye
 New Comment:

Please give us one image that causes this problem. Copy a link to it
here.


--Pierre


Previous Comments:
------------------------------------------------------------------------

[2005-07-06 15:38:21] jeck at kntel dot kiev dot ua

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 this bug report at http://bugs.php.net/?id=33590&edit=1

Reply via email to