How to get the metadata of a file (an image) in Qt
-
Hi guys, my question is simple, I'm trying to read the metadata of a file, especially an image, what I want is to access all its metadata, particularly its date and time of capture, I get a different date than the one The image was captured with a cell phone camera.
I have tried the following:
QFileInfo finfo("D:/images/20190613_091503.jpg"); qInfo() << finfo.birthTime().toString("dd/MM/yyyy h:m:ss AP"); qInfo() << finfo.lastModified().toString("dd/MM/yyyy h:m:ss AP"); qInfo() << finfo.lastRead().toString("dd/MM/yyyy h:m:ss AP");
Get some data from the QFileInfo class, such as date and time, but they show me different dates, from the date of creation or capture of the image.
As you can see, it shows me several dates and none of them coincide with the original capture date of the image. So how could I get the correct date and time of image capture, thanks.
-
Hi guys, my question is simple, I'm trying to read the metadata of a file, especially an image, what I want is to access all its metadata, particularly its date and time of capture, I get a different date than the one The image was captured with a cell phone camera.
I have tried the following:
QFileInfo finfo("D:/images/20190613_091503.jpg"); qInfo() << finfo.birthTime().toString("dd/MM/yyyy h:m:ss AP"); qInfo() << finfo.lastModified().toString("dd/MM/yyyy h:m:ss AP"); qInfo() << finfo.lastRead().toString("dd/MM/yyyy h:m:ss AP");
Get some data from the QFileInfo class, such as date and time, but they show me different dates, from the date of creation or capture of the image.
As you can see, it shows me several dates and none of them coincide with the original capture date of the image. So how could I get the correct date and time of image capture, thanks.
-