Page 1 of 1

Image Thumbnail Creation (Fatal Error-Memory size exhausted)

Posted: Mon 7. Mar 2005, 09:53
by jsw_nz
Been required to post 2.3MB jpg images for download. I provided ample allowance in filemaxsize in config file.

Code: Select all

$phpwcms["file_maxsize"]      = 34194304; //
Upload works fine. It is in the thumbnail creation in file manager that the system throws an error.

REALLY NEED HELP on this one.

Code: Select all

Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 4064 bytes) in /import_fs2/home/webbiznz/clients/brandaid/id-dunedinfashion.com/public_html/include/inc_ext/ss_image/ss_image.class.php  
I reduced the file size by bringing down quality, (file size = 600KB) still the same problem.

.....going through the ss_image.class, error pointed to line 84:

Code: Select all

$this->img_original = imagecreatefromjpeg($src);
Help / pointers would greatly be appreciated. Anyone faced this issue?
Might it be an Apache and/or GD2 setting?

-john-

Posted: Mon 7. Mar 2005, 11:29
by jsw_nz
Update:

cheers, all fixed for now...have to believe this is a workaround....
am running 1.2.1

Code: Select all

ini_set("memory_limit","50M");
within the ss_image.class.php.

Seems strange however, why so much memory is needed to be used during imagecreatefromjpeg();

I wonder if Oliver will have a chance to read this thread.

Cheers,
-john-

Posted: Fri 11. Mar 2005, 04:11
by Karla
jsw_nz wrote:Update:

cheers, all fixed for now...have to believe this is a workaround....
am running 1.2.1

Code: Select all

ini_set("memory_limit","50M");
within the ss_image.class.php.

Seems strange however, why so much memory is needed to be used during imagecreatefromjpeg();

I wonder if Oliver will have a chance to read this thread.

Cheers,
-john-
http://www.phpwcms.de/forum/viewtopic.p ... 7a40#17613