fix for covers. 2.4.3
authorRadek Czajka <rczajka@rczajka.pl>
Tue, 7 Jun 2022 10:49:45 +0000 (12:49 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Tue, 7 Jun 2022 10:50:44 +0000 (12:50 +0200)
CHANGELOG.md
setup.py
src/librarian/covers/marquise.py

index bf0522f..5774562 100644 (file)
@@ -3,6 +3,12 @@
 This document records all notable changes to Librarian.
 
 
+## 2.4.3 (2022-06-07)
+
+### Fixed
+- Fix for new cover with custom size.
+
+
 ## 2.4.2 (2022-05-23)
 
 ### Fixed
index 1ff1243..c4ddaae 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ def whole_tree(prefix, path):
 
 setup(
     name='librarian',
-    version='2.4.2',
+    version='2.4.3',
     description='Converter from WolneLektury.pl XML-based language to XHTML, TXT and other formats',
     author="Marek StÄ™pniowski",
     author_email='marek@stepniowski.com',
index 283a2be..d1f832c 100644 (file)
@@ -56,7 +56,7 @@ class MarquiseCover(Cover):
                 self.scale_after = final_width / self.width
             
         if final_height is not None:
-            self.height = round(final_height / self.m._scale)
+            self.height = round(final_height / self.scale_after / self.m._scale)
 
         self.square_variant = self.height / self.width < 250 / 210