Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-62249

JPEG with Exif data does not set the right resolution

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.6.2, 5.9.1
    • Image formats
    • None

      When a JPEG has the Exif data, it does not have the JFIF information. When the Exif data are present, like for the orientation (-QTBUG-37946-), the reader should also read the image resolution from the Exif.

      Attached testcases with 300x300 dpi resolution:

      • jfif.jpg was saved with .net and has the JFIF data (Qt read and set the right resolution)
      • exif.jpg was saved with Photoshop and has the Exif data (Qt leaves the default resolution, in my case 96 dpi).

        1. exif.jpg
          exif.jpg
          361 kB
        2. jfif.jpg
          jfif.jpg
          110 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            vgt Eirik Aavitsland
            mircomir Mirco Miranda
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes