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