GreEn`mArine wrote:The function itself cannot be optimized on the server, as it is part of PHP and PHP is known to be a waste of resources and being slow

I gonna think about a "too big filesize" error msg, allowing 1280x1024 at max.
Can anyone tell me how big this will be in MB ? so that the memory_limit get's upped to this value ?
1280 times 1024 times 3 (bytes pr pixel) uncompressed. (roughly) Thats less than 4MB but thats for the orig image. I assume you use GD to resize the image, then the memry of the new pic you created is added, and during the resize, you have several layers.. but I guess 16 should do fine.
you might want to try and create a .htacces file with this content:
php_flag memory_limit 16MB
or is it:
php_ini memory_limit 16MB
I'm not sure you are allowed to change this in the .htaccess though. This aslo depends on the server setup.
Edit:
I have a finished image_resize funciont that should be quite effective. Let me know if you want it.