I am using Python Pillow to modify images. Whenever I save a jpeg the internal resolution is set to 72dpi. I am looking to see how I can set it to a different value. I realize this is just a number and that in many ways its meaningless. My motivation is to make follow-on work easier when I read the image into photoshop.
2
Answers
‘quality’ is one of the options when you save the image using Pillow.
http://pillow.readthedocs.io/en/4.2.x/handbook/image-file-formats.html?highlight=resolution#jpeg
I think you’re probably looking for dpi.
Both images contain the same pixels, and are the same size on disk, but are coded as different image sizes and resolutions. Many image viewers will display them the same way, but higher end software like The GiMP and Photoshop can detect the difference.