[Qt-interest] New image metadata parser based on the Qt
Sami Maisniemi
sami.maisniemi at katelabs.com
Tue Jan 25 21:20:36 CET 2011
Hi all,
I have created a new image metadata parser with the Qt and I have released it under the LGPL license. The parser supports TIFF and EXIF metadata. The support for XMP and IPTC metadata will be added in the future. The source code can be found from the following location:
http://www.gitorious.org/qimagemetadata
The following files are needed:
- QImageMetaData.h
- QImageMetaData.cpp
- QImageMetaDataRational.h
The source code includes also some additional files for debugging and testing, but they are for development purposes only.
The parser supports both TIFF and JPEG images and it has been tested with unit tests.
The following example shows how to use the parser to display the manufacturer and the model of the camera:
#include "QImageMetaData.h"
QImageMetaData* metadata = new QImageMetaData();
QString test = "test.tiff";
if (!metadata->read(test)) {
qDebug() << metaData->errorMessage();
} else {
qDebug() << metaData->make();
qDebug() << metaData->model();
}
delete(metadata);
All comments and feedback is welcome. I was informed that the contribution of the parser should wait until the new contribution process has been finished. Meanwhile I intend to improve the quality of the parser. Please let me know if you to participate the development. Naturally I will provide support if needed.
Regards Sami
P.S. When you send comments and feedback, please keep in mind that this is my first open source project.
Sami Maisniemi | Imaging Specialist | Kate Labs Ltd
www.katelabs.com | +358 400 114 070
More information about the Qt-interest-old
mailing list