X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/8495b2ce8e9aebe778db74217b60fb68c0b5f9f2..d9c4c2ba3172bb39e1255479be53338d27dfa954:/src/librarian/covers/marquise.py diff --git a/src/librarian/covers/marquise.py b/src/librarian/covers/marquise.py index 283a2be..fb84a79 100644 --- a/src/librarian/covers/marquise.py +++ b/src/librarian/covers/marquise.py @@ -17,6 +17,8 @@ class MarquiseCover(Cover): height = 2970 margin = 100 logo_h = 177 + author_width = 1300 + title_box_top = 262 color_schemes = [ @@ -56,7 +58,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 @@ -138,8 +140,8 @@ class MarquiseCover(Cover): marquise.title_box_position[1], ) - AuthorBox(self, self.m.width - self.m.margin).apply( - img, 0, self.m.margin + AuthorBox(self, self.m.author_width).apply( + img, self.m.width - self.m.margin - self.m.author_width, self.m.margin ) WLLogo(self).apply(img, self.m.margin, self.m.margin, None, self.m.logo_h)