Large images : upload works, resize not

See all posts See thread Reply

Re: Large images : upload works, resize not new!
by colin, 11 years, 10 months ago
You are running out of memory.

Search for memory in the site, or click here.

You can also check this post.

You need to raise the PHP memory limit, usually in php.ini. On shared hosting, you probably can't edit your php.ini, so you can try the following, although it will work only if the hosting company allows it, which they usually don't.

You can add this in your script:
ini_set ( "memory_limit", "40M")

Or in a .htaccess file:
php_value memory_limit 40M

If the above doesn't work, ask your hosting company.Reply
Re: Large images : upload works, resize not new!
by Rene, 11 years, 10 months ago
As i said before.. i already set the memory_limit to 40MB. but that wont work.

So i checked how much memory i need.... width * height * 8 gives me 76 MB i need.
So i changed the memory limit to 128 MB, and that works for me.

ThnxReply