Jump to content

Help?


ckrudelux

Recommended Posts

Yeah, that means the PHP script is only using about 250KB before opening the image, and opening the image requires at least 20MB. If you're in control of the server, you can probably just increase the memory limit. A 20MB limit is pretty small anyway, it defaults to 32MB. I've got a server where I set it to 512MB. If you can't change that, ask your host if there's an image resizing utility you can use from PHP. If you have PHP run a system command to resize the image it won't use PHP's memory space.
Okay well so now I have learnd something new which is good Thanks for the help.
Link to comment
Share on other sites

Okay so I was abit curious how much it really takes from the server to transform this 3072px*2304px image to 600px*400px.

Result: 35,5mb
After that I wanted to see if I could get the same magical error on my own server so I opened the php.ini file and found this row:
memory_limit = 128M ; Maximum amount of memory a script may consume (128MB)
I changed it to 20 but I can still upload the image even then it takes 35,5 to make it work :)
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...