How to get image size (bytes) using PIL

Try:

import os
print os.stat('somefile.ext').st_size

Leave a Comment