[sushi] image: apply pixbuf embedded orientation
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi] image: apply pixbuf embedded orientation
- Date: Thu, 25 Jun 2015 21:15:29 +0000 (UTC)
commit 5479c76e11fb9575506f6453e2759347a72ebd91
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Jun 25 14:14:43 2015 -0700
image: apply pixbuf embedded orientation
So that it will automatically rotate if e.g. the EXIF data says so.
https://bugzilla.gnome.org/show_bug.cgi?id=748396
src/js/viewers/image.js | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/js/viewers/image.js b/src/js/viewers/image.js
index 9951065..29da911 100644
--- a/src/js/viewers/image.js
+++ b/src/js/viewers/image.js
@@ -75,6 +75,7 @@ ImageRenderer.prototype = {
(stream, null,
Lang.bind(this, function(obj, res) {
let pix = GdkPixbuf.Pixbuf.new_from_stream_finish(res);
+ pix = pix.apply_embedded_orientation();
this._texture = new GtkClutter.Texture({ keep_aspect_ratio: true });
this._texture.set_from_pixbuf(pix);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]