From 1e355114311d7bf44b96b11b745857a2b68e8a06 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sat, 2 Aug 2008 13:50:16 +0200 Subject: Port to exiv2 library Now we are able to read EXIF, IPTC and JPEG metadata such as caption, copyright, author etc. though we don't display them anywhere yet. Fixes weird shutter times. --- generators.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'generators.c') diff --git a/generators.c b/generators.c index 3639309..a478389 100644 --- a/generators.c +++ b/generators.c @@ -486,8 +486,7 @@ write_html_image (TGallerySetup *setup, /* Get EXIF data from the original image */ - exif = malloc (sizeof (TExifData)); - if (get_exif (original_img, exif)) + if (get_exif (original_img, &exif)) fprintf (stderr, "write_html_image: error getting exif data from file \"%s\"\n", orig_dst); /* Retrieve image sizes of preview and original image */ -- cgit v1.2.3