in reply to Creating thumbnail solution help
Are you sure you're handling your image data always in binary mode? For example, reading them in in text mode might well produce broken images. Just a guess, though...