class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
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
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
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.
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 help
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.
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.
Thanks
35M * 8 = 280M
So you will need something like 320MB to resize such a large image