High resolution image

See all posts Reply

High resolution image new!
by Dav1d, 13 years, 8 months ago
Hello,

First of all, thanks a lot for you work Colin. Very useful !

But i still have a problem and i don't understand why...

The uploading is ok for all files but when i'm trying to resize an image equal to or more than 5000px (ex : 5000x2500 or 2000x5000)... the script doesn't work and makes no response... I'm using FancyUpoald and json_encode to return errors.

I have ckecked my server config and it seems to be ok :
memory_limit 64M
upload_max_filesize 58M
post_max_size 58M
max_execution_time 60

Thanks for helpReply
Re: High resolution image new!
by colin, 13 years, 8 months ago
You are running out of memory.

Search for memory in the site, or click here. You can also check this post. And the issue is discussed in the FAQ too.

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.Reply
Re: High resolution image new!
by Dav1d, 13 years, 8 months ago
Hello,

I already check all theses posts before....I thought 64Mo were enought...so i have changed up to 128mo. It's ok but images like 7000x5000 or more can't be resized... Nevermind, i will put a "image_max_pixels" or a restriction in javascript ahead before uploading the file.

ThanksReply
Re: High resolution image new!
by colin, 13 years, 8 months ago
7000x5000 = 35000000 pixels = 35M pixels
35M * 8 = 280M
So you will need something like 320MB to resize such a large imageReply