SyntaxFix
Write A Post
Hire A Developer
Questions
The word "read" is vague, but here is an example which reads a jpeg file using the Image class, and prints information about it.
from PIL import Image jpgfile = Image.open("picture.jpg") print(jpgfile.bits, jpgfile.size, jpgfile.format)