Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Get metadata (date taken, location) from photo (jpeg)
Qt 6.11 is out! See what's new in the release blog

Get metadata (date taken, location) from photo (jpeg)

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 3.0k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    KirstenS
    wrote on last edited by KirstenS
    #1

    I was hoping there was a way to get metadata (date taken and gps location) from a photo (jpeg) using Qt. I cannot find a way to get the metadata using QImage or QImageReader. I have found question about using QMediaObject but with no answers for images (https://stackoverflow.com/questions/21562848/qt-getting-photo-metadata, https://stackoverflow.com/questions/42396954/qt-get-jpeg-exif-metadata-for-datetime). Is there any method in Qt 5.7 to get a photo's metadata?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      I did not notice any functions for that but it seems
      http://doc.qt.io/qt-5/qmediametadata.html#details
      can be used. In connection with QMediaPlayer.

      However, this lib might be useful for you (in case the Qt version is not what u want)
      https://github.com/mayanklahiri/easyexif
      very easy to use. you can just add
      exif.cpp and exif.h to project and off you go.

      Update:
      easyexif was mentioned in the links you provide so i guess u already seen it :)

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved