How to compare the size of two pictures by python

how does python compare the size of two images, that is, kb how many M to compare

Dec.06,2021

read the file size and compare it.


os.path.getsize (file path) can get the bytes of the file.

Menu