I want to put some restrictions on images uploaded by users, so the script that processes them is never exhausted.
Images that take up more memory are higher resolution images. They should not be large in bytes. For example, a 46 KB image with a resolution of 4000x2500 and some transparencies (PNG) took about 90 MB to resize it.
Is there a way to pre-calculate the required memory?
Any ideas?
php memory image-processing
Happydeveloper
source share