From: Jean-Philippe F. <jp....@cy...> - 2009-06-03 07:09:41
|
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 ? |