Error:
Fatal error: Allowed memory size of 18880568 bytes exhausted (tried to allocate 6000 bytes)
when running this line:
// STEP 1: use imagecreatetruecolor() TO CREATE IMAGE RESOURCE BLUEPRINT OBJECT
if ($this->isSuccessful && $image && preg_match('/2\.0/i', $gd_info_array[0]))
$newImage = imagecreatetruecolor($image_width, $image_height); // COMMAND ONLY IF GD 2.0+ IS SUPPORTED
Environment: PHP 4.3.2
OS: Linux Red Hat Enterprise Level 3
Web: Apache 1.x??
I am working with a 500K image in the case of the PHP line above. If the size is much smaller there are no problems. We've adjusted upload_max_filesize and memory_limit to extremely high numbers (64M each), to no avail.
Is there a different way I can write the PHP line to prevent this fatal error from occurring?
Thanx
Phil