How to get image size (bytes) using PIL May 26, 2023 by Tarik Try: import os print os.stat('somefile.ext').st_size