[gimp/metadata-wip-rebased: 3/20] plug-ins: handle metadata loading in file-jpeg



commit 5ea7c233d223d073d623eeb26922d63a5e2d93b7
Author: Michael Natterer <mitch gimp org>
Date:   Tue Oct 22 18:57:10 2013 +0200

    plug-ins: handle metadata loading in file-jpeg

 plug-ins/file-jpeg/jpeg.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/file-jpeg/jpeg.c b/plug-ins/file-jpeg/jpeg.c
index ca06401..fd3543c 100644
--- a/plug-ins/file-jpeg/jpeg.c
+++ b/plug-ins/file-jpeg/jpeg.c
@@ -216,6 +216,13 @@ run (const gchar      *name,
 
       if (image_ID != -1)
         {
+          GFile *file = g_file_new_for_path (param[1].data.d_string);
+
+          gimp_image_metadata_load (image_ID, "image/jpeg", file,
+                                    load_interactive);
+
+          g_object_unref (file);
+
           *nreturn_vals = 2;
           values[1].type         = GIMP_PDB_IMAGE;
           values[1].data.d_image = image_ID;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]