At Drupals "Status report" it says:

ImageAPI GD Memory Limit 65M

It is highly recommended that you set you PHP memory_limit to 96M to use ImageAPI GD. A 1600x1200 images consumes ~45M of memory when decompressed and there are instances where ImageAPI GD is operating on two decompressed images at once.

Because I'm on shared hosting, I can't set the memory_limit, I think.
If I'd set the "Maximum resolution for Images" from ImageField to 1599x1199, it should prevent me from this possible problem, am I right? Are there any other places I'd have to change settings, so that I'm safe from that problem? Maybe central at Drupal itself somewhere or anything?
Is 1599x1199 okay/safe or should I choose an other resolution?

And what would happen, if this possible problem becomes reality (that someone uploads a 1600x1200 image) - would my server crash, would Drupal show a error message or what?

Comments

dopry’s picture

Status: Active » Closed (fixed)

The size restrictions may or may not work, depends on which version you're using and whether we're validating and not processing oversized images, or scaling oversized images. If the code is scaling over sized images, this will be an issue. I suggest you read the code to determine which is in fact the case.

The error you will experience is a WSOD or images not appearing, with only an error in your web servers error logs if you have error reporting enabled.