Python Dapatkan DPI gambar

from PIL import Image
im = Image.open("path/to/image")
im.info['dpi']
wolf-like_hunter