Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
nekk
gajim-plugins
Commits
9ba27bb4
Commit
9ba27bb4
authored
Dec 17, 2020
by
Daniel Brötzmann
Browse files
[preview] Apply EXIF rotation
parent
7fbef8fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
url_image_preview/utils.py
View file @
9ba27bb4
...
...
@@ -182,6 +182,7 @@ def create_thumbnail_with_pil(data, size):
image
.
thumbnail
((
size
,
size
))
image
.
save
(
output_file
,
format
=
image
.
format
,
exif
=
image
.
info
.
get
(
'exif'
,
b
''
),
optimize
=
True
)
bytes_
=
output_file
.
getvalue
()
...
...
@@ -232,7 +233,7 @@ def pixbuf_from_data(data):
input_file
.
close
()
return
pixbuf
return
loader
.
get_pixbuf
()
return
loader
.
get_pixbuf
()
.
apply_embedded_orientation
()
def
parse_fragment
(
fragment
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment