Commit e9a27e55 authored by Jim Nelson's avatar Jim Nelson

JPEG Orientation now respected in viewer, thumbnails, file chooser: Closes #7007, Closes #7074

This may also close issue #7073, but more investigation is required.
parent f21cda54
......@@ -86,7 +86,7 @@ public class AttachmentDialog : Gtk.FileChooserDialog {
return;
}
pixbuf.apply_embedded_orientation();
pixbuf = pixbuf.apply_embedded_orientation();
// distribute the extra space around the image
int extra_space = PREVIEW_SIZE - pixbuf.width;
......
......@@ -237,6 +237,7 @@ public class ConversationWebView : WebKit.WebView {
img.get_class_list().add("thumbnail");
Gdk.Pixbuf image = new Gdk.Pixbuf.from_file_at_scale(filename, maxwidth, maxheight,
true);
image = image.apply_embedded_orientation();
image.save_to_buffer(out content, "png");
icon_mime_type = "image/png";
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment