PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Does anyone know if there is a filesize limit that GD can work with?
I have a script that takes an uploaded image and then resizes to various different sizes - but it fails on images around 9mb and larger. The image is uploaded as I can see it on the server, it just isnt touched afterwards.
PHP also has a max_file_upload limit and a max_post_size limit as well. The file upload limit I believe is 2M while the max post size is 8M by default.
For a 9mb image you'll want to allow about 128mb for the script. This is 9mb jpeg compressed image x 10 uncompressed while processing and leaving a little room for overhead.
If you are using ini_set(), it will only affect the current script. If you want a more site-wide affect then your best bet is editing your php.ini, however if that is not an option you can use .htaccess