I'm guessing 1&1 doesn't allow you to change scripts memory_limit
or max_execution_time
, so it's probably running out of memory. Have you tried running phpinfo()
to see what the limits are?
+1
A:
Darryl Hein
2009-03-21 05:16:47
kyle
2009-03-21 05:24:19
A:
Please see this note regarding memory usage on the php website.
*"The memory required to load an image using imagecreatefromjpeg() is a function of the image's dimensions and the images's bit depth, multipled by an overhead.
It can calculated from this formula:
Num bytes = Width * Height * Bytes per pixel * Overhead fudge factor"*
jcinacio
2009-03-21 05:41:05
Hi JC-- when I lower the memory allocation to 1M and use a smaller image, I get this error: "Fatal error: Allowed memory size of 1048576 bytes exhausted (tried to allocate 4096 bytes) in /homepages/17/d203907073/htdocs/d-i-s/dev/inc/image.functions.php on line 98" (...continued...)
kyle
2009-03-21 06:23:40
(...continued...) Because the server is correctly throwing "out of memory" errors in this case, I'm guessing it's a different cause, as in my case no errors are thrown. At any rate, the 3MB image is roughly 3Kx3K pixels, which translates to roughly 70MB with alpha and 2x fudge factor.
kyle
2009-03-21 06:25:13
A:
Hello All i have following ini variable set in phpini file.
max_execution_time 50000
memory_limit 40M
post_max_size 8M
When i try to make thumbnail of image its gives me following error :
Fatal error: Out of memory (allocated 30670848) (tried to allocate 14976 bytes)
image size is 700 kb.
can any one help me ?
Vasim Padhiyar
2010-09-25 12:16:16
You need to ask this as a new question, instead of posing it as an answer to a 1.5yr old irrelevant question.
Matt
2010-09-25 12:25:55