[gegl] ui: readded rotate code that fell through cracks
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] ui: readded rotate code that fell through cracks
- Date: Tue, 13 Oct 2015 13:10:02 +0000 (UTC)
commit dfbbec2ca2b49bc1ca026ff458dad8e5289eaee2
Author: Øyvind Kolås <pippin gimp org>
Date: Tue Oct 13 15:00:38 2015 +0200
ui: readded rotate code that fell through cracks
bin/mrg-ui.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/bin/mrg-ui.c b/bin/mrg-ui.c
index 286ed54..ad23a7f 100644
--- a/bin/mrg-ui.c
+++ b/bin/mrg-ui.c
@@ -114,6 +114,7 @@ static char *suffix = "-gegl";
void gegl_meta_set (const char *path, const char *meta_data);
char * gegl_meta_get (const char *path);
+GExiv2Orientation path_get_orientation (const char *path);
static char *suffix_path (const char *path);
static char *unsuffix_path (const char *path);
@@ -1805,4 +1806,19 @@ gegl_meta_get (const char *path)
return ret;
}
+GExiv2Orientation path_get_orientation (const char *path)
+{
+ GExiv2Orientation ret = 0;
+ GError *error = NULL;
+ GExiv2Metadata *e2m = gexiv2_metadata_new ();
+ gexiv2_metadata_open_path (e2m, path, &error);
+ if (!error)
+ ret = gexiv2_metadata_get_orientation (e2m);
+ /*else
+ g_warning ("%s", error->message);*/
+ gexiv2_metadata_free (e2m);
+ return ret;
+}
+
+
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]