> rotate: most of the time it says: "JPEG Transform Failed" (a few times it worked correctly)
Actually, are you sure these files you have are JPEGs and not just named such? Could you upload one that fails here?