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