Get image dpi for tif files using Pillow
python, python-imaging-library
Solution
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.
Problem
How to get tiff image DPI using pillow? Cant see in documentation. ``` from PIL import Image im = Image.open('test.tif') print("im dpi?") ```