Better error handling?

Starnox - July 12, 2009 - 14:22
Project:ImageAPI
Version:6.x-1.6
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:active
Description

So if you try and manipulate an images which is too big you get the following:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 19008 bytes) in /Library/WebServer/Documents/test/sites/all/modules/imageapi/imageapi_gd.module on line 123

Is there a check we can do before opening the image to know if it's going to request too much memory and exit with a nicer drupal error message?

#1

pescetti - July 12, 2009 - 14:37

subscribing

 
 

Drupal is a registered trademark of Dries Buytaert.