Get metadata (date taken, location) from photo (jpeg)
-
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?
-
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 :)