coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: Saraci on August 27, 2007, 09:32:38 AM

Title: Fatal error: Allowed memory size
Post by: Saraci on August 27, 2007, 09:32:38 AM
Hi everybody,

I have a big problem with cpg1.4. It seems that coppermine does not accept big images - I mean that I am not able to add them to the Albums. On the other hand I am sure that the problem does not depend on my webserver because I can link the same image on a simple HTML page and the webserver handles it perfectly.

Here we go:

Image settings:
3072 x 2304 Pixels
42,667 x 32,000 Inches  (or 108,375 x 81,283 cm)

Coppermine settings:
Max size for uploaded files (KB): 3000
Max width or height for uploaded pictures/videos (pixels): 4000

Error:
Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 12288 bytes) in /web/htdocs/www.mysite.com/home/include/picmgmt.inc.php on line 262

picmgmt.inc.php's line 262:
$src_img = imagecreatefromjpeg($src_file);

Any idea oh how can I sort this out?
Thanks in advance
Title: Re: Fatal error: Allowed memory size
Post by: Nibbler on August 27, 2007, 09:34:38 AM
Your memory limit is too small and your explanation of why your server can handle large files makes no sense. Moving to the upload support board - please review existing threads.
Title: Re: Fatal error: Allowed memory size
Post by: Saraci on August 27, 2007, 09:43:40 AM
Quote from: Nibbler on August 27, 2007, 09:34:38 AM
Your memory limit is too small and your explanation of why your server can handle large files makes no sense. Moving to the upload support board - please review existing threads.
Thank you for the answer. I will try to explain better why my webserver handles big size files.
I created a html page, in which i put as well my big image, obviously via html standard language (<IMG SRC="normal_100_0128.jpg" BORDER="0" WIDTH="" HEIGHT="" ALIGN="bottom" ALT="">) Then I uploaded the folder that contains the html file and the image.
Then I tried to visit the page via browser, and the image is displayed correctly. It is the same image that give me the error that I described.

Thanks again
Title: Re: Fatal error: Allowed memory size
Post by: Nibbler on August 27, 2007, 09:46:00 AM
You can't compare the two. That's like comparing reading a book out loud with memorising it  - one needs a lot more memory than the other.
Title: Re: Fatal error: Allowed memory size
Post by: Joachim Müller on August 27, 2007, 11:02:49 AM
http://forum.coppermine-gallery.net/index.php?topic=24088.msg110690#msg110690
Title: Re: Fatal error: Allowed memory size
Post by: Saraci on August 27, 2007, 11:07:47 AM
Thank you very much.  ;D