[gthumb] apply the emebedded orientation when doing a standard rotation
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] apply the emebedded orientation when doing a standard rotation
- Date: Tue, 22 Jun 2010 09:41:29 +0000 (UTC)
commit 70d81d186d47d0bd386fecc708e94ca7e78766f1
Author: Paolo Bacchilega <paobac src gnome org>
Date: Tue Jun 22 11:37:42 2010 +0200
apply the emebedded orientation when doing a standard rotation
extensions/image_rotation/rotation-utils.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/extensions/image_rotation/rotation-utils.c b/extensions/image_rotation/rotation-utils.c
index 0459c58..a13ed76 100644
--- a/extensions/image_rotation/rotation-utils.c
+++ b/extensions/image_rotation/rotation-utils.c
@@ -310,6 +310,7 @@ file_buffer_ready_cb (void **buffer,
{
GInputStream *istream;
GdkPixbuf *original_pixbuf;
+ GdkPixbuf *tmp;
GdkPixbuf *transformed_pixbuf;
istream = g_memory_input_stream_new_from_data (*buffer, count, NULL);
@@ -320,6 +321,10 @@ file_buffer_ready_cb (void **buffer,
return;
}
+ tmp = gdk_pixbuf_apply_embedded_orientation (original_pixbuf);
+ g_object_unref (original_pixbuf);
+ original_pixbuf = tmp;
+
transformed_pixbuf = _gdk_pixbuf_transform (original_pixbuf, tdata->transform);
_gdk_pixbuf_save_async (transformed_pixbuf,
tdata->file_data,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]