Oh we are way past this issue…
Hello,
That sounds like a great idea. You may be able to skip the phpThumb totally by using image filtering while WordPress is generating the images.
Otto made a great post this a while back using the ‘wp_generate_attachment_metadata’ filter on the image.
http://ottopress.com/2011/customizing-wordpress-images/
and here is the PHP filter support.
http://php.net/manual/en/function.imagefilter.php
and the WordPress documentation
http://codex.ww.wp.xz.cn/Function_Reference/wp_generate_attachment_metadata
I hope this helps.