fnp
/
librarian.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7502026
)
Fixes rotated image
author
Radek Czajka
<rczajka@rczajka.pl>
Fri, 18 Jul 2025 12:29:45 +0000
(14:29 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Fri, 18 Jul 2025 12:29:45 +0000
(14:29 +0200)
src/librarian/covers/widgets/background.py
patch
|
blob
|
history
diff --git
a/src/librarian/covers/widgets/background.py
b/src/librarian/covers/widgets/background.py
index
98adf05
..
1f5bf0f
100644
(file)
--- a/
src/librarian/covers/widgets/background.py
+++ b/
src/librarian/covers/widgets/background.py
@@
-5,6
+5,7
@@
import io
import time
from urllib.request import urlopen
import PIL.Image
+from PIL import ImageOps
from .base import Widget
@@
-27,6
+28,7
@@
class Background(Widget):
break
img = PIL.Image.open(data)
+ img = ImageOps.exif_transpose(img)
if self.crop_to_square:
# crop top square.