3 Jun 2009 09:09
How to write tags ?
Jean-Philippe François <jp.francois <at> cynove.com>
2009-06-03 07:09:32 GMT
2009-06-03 07:09:32 GMT
Hi,
The libexif API seems to be mainly oriented toward reading exif data.
For example :
There is a :
exif_entry_get_value() function,
but no
exif_entry_set_value() function
I am using this library to build an exif section "from scratch" and o
I find it quite helpful, but I am missing some functions, and I don't
know if I am doing things correctly.
Anyway, to write data to an ascii tag, I have to mess with the content
of the ExifEntry struct like this :
exif_entry_initialize(MyEntry, EXIF_TAG_IMAGE_DESCRIPTION);
MyEntry->data = realloc(MyEntry->data, ASCII_TAG_DEFAULT_SIZE);
MyEntry->size = ASCII_TAG_DEFAULT_SIZE;
MyEntry->components = ASCII_TAG_DEFAULT_SIZE;
snprintf(MyEntry->data, MyEntry->size, "JPEG Image");
Did I miss something ?
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
(Continue reading)
RSS Feed