Mercurial > geeqie
diff src/exif-common.c @ 188:0584cb78aa14
write comment and keywords to xmp, sidecars are used if exist
author | nadvornik |
---|---|
date | Sun, 16 Mar 2008 10:32:52 +0000 |
parents | 2507418ab7a2 |
children | c2923efebfdc |
line wrap: on
line diff
--- a/src/exif-common.c Sat Mar 15 19:53:33 2008 +0000 +++ b/src/exif-common.c Sun Mar 16 10:32:52 2008 +0000 @@ -326,3 +326,25 @@ return NULL; } + +ExifData *exif_read_fd(FileData *fd, gint parse_color_profile) +{ + GList *work = fd->sidecar_files; + gchar *sidecar_path = NULL; + + while(work) + { + FileData *sfd = work->data; + work = work->next; + printf("sfd %s\n", sfd->path); + if (strcasecmp(sfd->extension, ".xmp") == 0) + { + sidecar_path = sfd->path; + break; + } + } + + + // FIXME: some caching would be nice + return exif_read(fd->path, sidecar_path, parse_color_profile); +}