pain wrote:500 is something we can't intercept, imagine BSOD in Windows. 500 thats not php error or something, thats when WebServer is freaked out.
It is memory limits issue, but actually it should say something like: Not enough memory, tried to allocate xxx bytes.
Strange that you getting error 500, maybe you have error reporting turned off or some special settings?
Not that I'm aware... but what I'm saying is not an error message after the fact, but a check before you start the process taht says if the dimensions are greater then XbyY then don't allow it? Or does the size change based on webserver?