[Qt-interest] New image metadata parser based on the Qt
Sami Maisniemi
sami.maisniemi at katelabs.com
Wed Jan 26 23:07:10 CET 2011
In the short term the target is to access metadata with minimal coding efforts and without libraries. The purpose is not to recreate something that is already available. I want to keep everything as simple as possible.
In the long term the target is to merge the source code into Qt.
The purpose is to follow the Qt guidelines as well as possible. The target is to deliver an API which is similar with the APIs of Qt.
Indeed the the API of the class requires some changes. I managed to find the API Design Principles of Qt from gitorious.org and I will take a look at them already in this weekend. Thanks for information.
-Sami
On Jan 26, 2011, at 10:18 AM, Mihail Naydenov wrote:
> Interesting, is there however a reason to start from scratch?
> What is your goal, regarding the project? No lib dependencies? Small footprint?
> Test your skills? Do it "The Qt way", in hopes to be merged with it.
>
> I am asking because, right now there are libs implementing this (and more),
> which, of course, can be wrapped in Qt API.
> If you wish to only load the metadata, without the pixels, FreeImage[1] for one
> supports that, though the API is not as nice, because it is more generic, and it
> also depends on libjpeg and libtiff.
>
> Now, regarding "the Qt way" - you should study its code, to see their coding
> style. The most important feature is the usage of pimpl idiom.
>
> Still, it really depends on what you are aiming to achieve.
>
> thumbs up
> MihailNaydenov
>
>
> [1] http://freeimage.sourceforge.net/
>
>
>
> ----- Original Message ----
>> From: Sami Maisniemi <sami.maisniemi at katelabs.com>
>> To: Qt-interest at qt.nokia.com
>> Sent: Tue, January 25, 2011 10:20:36 PM
>> Subject: [Qt-interest] New image metadata parser based on the Qt
>>
>> 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
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at qt.nokia.com
>> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>>
>
>
>
More information about the Qt-interest-old
mailing list