|
Sometimes PHP GD library crashes and leaves a dummy page behind, sometimes the main page goes all blank if you have last uploads thumbnails there being created dynamically. So how do i check if there's enough assigned memory to perform GD execution before calling GD functions?
I think if an image is 1024x768 and has 16bits per pixel the required memory will be about 1,5 MB (12,5 Mb), the question is how do i know how many bits per pixel one image has no matter its format.
Last edited by ehat : 05-26-2008 at 12:48 PM.
|