Author: akv
Date: 2012-04-18 00:57:51 +0200 (Wed, 18 Apr 2012)
New Revision: 4182

Modified:
   branches/4175-enfuse/src/rs-enfuse.c
Log:
Copying metadata from the first selected photo.

Modified: branches/4175-enfuse/src/rs-enfuse.c
===================================================================
--- branches/4175-enfuse/src/rs-enfuse.c        2012-04-17 21:12:42 UTC (rev 
4181)
+++ branches/4175-enfuse/src/rs-enfuse.c        2012-04-17 22:57:51 UTC (rev 
4182)
@@ -160,12 +160,15 @@
   gchar *file = NULL;
   GString *outname = g_string_new("");
   GString *fullpath = NULL;
+  gchar *first;
 
   if (g_list_length(files))
     {
       for(i=0; i<num_selected; i++)
        {
          name = (gchar*) g_list_nth_data(files, i);
+         if (i == 0)
+           first = g_strdup(name);
          file = g_malloc(sizeof(char)*strlen(name));
          sscanf(g_path_get_basename(name), "%[^.]", file);
          outname = g_string_append(outname, file);
@@ -184,6 +187,9 @@
   else
       aligned_names = exported_names;
   enfuse_images(aligned_names, fullpath->str);
+
+  rs_exif_copy(first, fullpath->str, "sRGB", RS_EXIF_FILE_TYPE_TIFF);
+
   return fullpath->str;
 }
 


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to