From: Radek Czajka Date: Tue, 7 Jun 2022 10:49:45 +0000 (+0200) Subject: fix for covers. X-Git-Tag: 2.4.3 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/fdcbc69e0f1f8f4945cd37c1e10be34a910d48c6 fix for covers. --- diff --git a/CHANGELOG.md b/CHANGELOG.md index bf0522f..5774562 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/setup.py b/setup.py index 1ff1243..c4ddaae 100755 --- 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', diff --git a/src/librarian/covers/marquise.py b/src/librarian/covers/marquise.py index 283a2be..d1f832c 100644 --- a/src/librarian/covers/marquise.py +++ b/src/librarian/covers/marquise.py @@ -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