Handling broken thumbs

are the images too large in width and height? maybe your server (shared etc) does not allow you enough memory to work on the image? both gd and im will work with uncompressed data. try saving it as tiff to get a rough estimate on memory requirement of a file.

also try running the image to an optimizer like imageoptim before thumb creation to remove fancy color profiles.