check whether a JPG is completed?

2008-12-20 Thread oyster
there are some pics(most of them are JPGs) on my disk, but some are not completed, that is to say, if I view it in irfanview, the bottom is displayed as a gray block. so I want to check where they are completed. but how to do that in python? (No, I am not saying how to tell the fileszie when I

Re: check whether a JPG is completed?

2008-12-20 Thread M�ta-MCI (MVP)
Hi! Sometimes, PIL give an error. With try: Except:, you can get info. Sometimes, non error, but the Jpeg is not correct. Difficult, in this case, to get info. Therefore, the answer is: not in all cases. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list