python read image resolution code example Example: get resolution of image python img = Image.open("test.png") img = img.size # img.size is a tuple