How to get tiff image DPI using pillow? Cant see in documentation.
from PIL import Image
im = Image.open('test.tif')
print("im dpi?")
How to get tiff image DPI using pillow? Cant see in documentation.
from PIL import Image
im = Image.open('test.tif')
print("im dpi?")
Image resolution in DPI should be available in info dictionary (more about info
for tiff images can be found here):
print(im.info['dpi'])
Though, not all images provide this information.