0

I am trying to obtain the standard dpi values from images (the one depicted in the image attached)

I tried pillow method .get('dpi') and it fgives me no results

I tried to obtain the properties and that it the output i got:

from PIL import Image

image_file = Image.open(jpg)

image_file.info

>>>> [enter image description here][1]{'adobe': 100, 'adobe_transform': 100}

A user can see the properties form the image and check the dpi, how can i extract it from Python

Zordon8000
  • 31
  • 3
  • Does this answer your question? [Get image dpi for tif files using Pillow](https://stackoverflow.com/questions/24050345/get-image-dpi-for-tif-files-using-pillow) – juanpablo_c Mar 30 '21 at 12:38
  • Thank you for the help so far. I tried to obtain by creating an Image object but is gives me KeyError all the time i try to access. Is there an alternative way? – Zordon8000 Apr 01 '21 at 10:09
  • maybe the image file does not have the dpi EXIF information, can you share a link to the image you are trying to check? – juanpablo_c Apr 01 '21 at 10:20

0 Answers0