ID:               26231
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mike at blueroot dot net
-Status:           Open
+Status:           Bogus
 Bug Type:         GD related
 Operating System: Linux
 PHP Version:      4.3.3
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Opening images is a memory intensive operation, just because the file
may appear to be small, it does not mean it's memory foot print is. If
you manipulate images you should increase your memory limit to 20-30
megabytes to avoid these problems.


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

[2003-11-12 21:36:16] mike at blueroot dot net

Description:
------------
When trying to create a gd image resource from this jpeg
http://www.blueroot.net/~mike/wrc2003/dscf0216.jpg I get this error

Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0
(tried to allocate 6400 bytes) in
/home/mike/public_html/wrc2003/test.php on line 5

The file is 778061 bytes.

This only happens with certain jpegs (straight from my camera),
pictures that have been through gimp open perfectly.

# file ./dscf0216.jpg
./dscf0216.jpg: JPEG image data, EXIF standard 0.77, 42 x 0

this is the output from 'file' on the problem file.



Reproduce code:
---------------
$im = imagecreatefromjpeg("./dscf0216.jpg");

online here 

http://www.blueroot.net/~mike/wrc2003/test.php

Expected result:
----------------
Nothing (eg. no error)

Actual result:
--------------
Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0
(tried to allocate 6400 bytes) in
/home/mike/public_html/wrc2003/test.php on line 5


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=26231&edit=1

Reply via email to