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.
Which version of the class are you using? What are you actually doing? What are the logs produced by the class? What images are you processing exactly? What is your code and settings for the class?
I need more information to answer....