Commit 9ba27bb4 authored by Daniel Brötzmann's avatar Daniel Brötzmann
Browse files

[preview] Apply EXIF rotation

parent 7fbef8fa
......@@ -182,6 +182,7 @@ def create_thumbnail_with_pil(data, size):
image.thumbnail((size, size)),
format=image.format,'exif', b''),
bytes_ = output_file.getvalue()
......@@ -232,7 +233,7 @@ def pixbuf_from_data(data):
return pixbuf
return loader.get_pixbuf()
return loader.get_pixbuf().apply_embedded_orientation()
def parse_fragment(fragment):
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