title: How to extract modify date from the EXIF?
body: <p>I tried the following code:</p>
  <pre><code>from PIL import Image
  
  def get_exif(filename):
      image = Image.open(filename)
      image.verify()
      return image.getexif()
  
  def get_exif_date(exif):
      return exif.get_ifd(0x0132)
  
  ff = 'path/to/file.jpg'
  image_exif = get_exif(ff)
  print(str(image_exif))
  image_date = get_exif_date(image_exif)
  print(str(image_date))
  </code></pre>
  <p>it returns the following output:</p>
  <pre><code>{34853: 2068, 296: 2, 34665: 228, 271: 'Apple', 272: 'iPhone X', 305: '14.4.2', 274: 1, 306: '2021:05:02 17:27:18', 531: 1, 282: 72.0, 283: 72.0, 316: 'iPhone X'}
  {}
  </code></pre>
  <p>So, <a href="https://exiftool.org/TagNames/EXIF.html" rel="nofollow noreferrer">ModifyDate tag</a> (306=0x0132) is here, but I can not extract it. Any idea why?</p>