Could I strongly suggest that you use exiv2 instead? libexif is poorly
maintained and crash prone, in my experience. exiv2 supports xmp, iptc,
exif, and raw files, all in one library. For an example of how we are
using it in the trunk version of gthumb, see
We are using it very successfully, even though the exiv2 api is C++, and
gthumb is C. The exiv2 maintainer is very responsive.
Tag reading is quite simple with exiv2, as the above file shows.
> Hi Michael,
> First of all: Thanks for your feedback/help.
> I have considered to use exiv2 before start developing. The problem is
> the license, GPL. I have asked the author if he could change it to LGPL
> and he said: "no plans to change".
> I haven't got 'craches' with libexif until now. Could you please send me
> files, or tell me how can I get such craches?
I don't have any sample files. You can search the gthumb bug reports,