Verse counters.
[librarian.git] / src / librarian / covers / marquise.py
index 283a2be..fb84a79 100644 (file)
@@ -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)