Image Thumbnail Creation (Fatal Error-Memory size exhausted)

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Image Thumbnail Creation (Fatal Error-Memory size exhausted)

Post 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-
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Post 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-
Karla
Posts: 223
Joined: Tue 26. Oct 2004, 11:56

Post 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
Post Reply