0

How can I count total of bytes of image file in python?

I have some corrupted image in jpg format , and i want to check to know it is damaged by comparing sum of byte in the header and real size.

19th Jun 2020, 2:20 AM
Châu Lê
Châu Lê - avatar
2 Respostas
0
Use the pillow module which is a third party module.
19th Jun 2020, 3:37 AM
Ayush Kumar
Ayush Kumar - avatar
0
Yep, i have checked with Pillow, but I get the size equal to the header even though it's partially damaged
19th Jun 2020, 3:49 AM
Châu Lê
Châu Lê - avatar