check whether a JPG is completed?

O

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 download a file
from internet")

thanx
 
M

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top