class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
more info about the class
Why you don't insert the unsharp mask effect in the next release?
It's a really important effect to obtain better thumbnails.
You can get the algorithm here:
http://vikjavev.no/computing/ump.php
Thank you!