title: Using Pillow to find DPI
body: <p>I'm trying to find out the DPI of an image using the Pillow module. </p>
  
  <p>I'm doing this  </p>
  
  <pre><code>image = Image.open("image.jpeg")
  print(image.info["dpi"])
  </code></pre>
  
  <p>which returns</p>
  
  <pre><code>(300, 300)
  </code></pre>
  
  <p>Why is this a tuple? I was expecting a single value. What do the two values relate to and which should I use to give me the same value I see in photoshop?</p>