X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/c461850146a3c49dd5bec6c845c1b0ce52a34896..e868b7e6511dfbb89e5a9dd69bbb7ef13c42620a:/librarian/cover.py?ds=inline diff --git a/librarian/cover.py b/librarian/cover.py index 27f7a70..9070344 100644 --- a/librarian/cover.py +++ b/librarian/cover.py @@ -124,8 +124,8 @@ class VirtualoCover(Cover): height = 730 author_top = 73 title_top = 73 - logo_bottom = 0 - logo_width = 300 + logo_bottom = 25 + logo_width = 250 class PrestigioCover(Cover): @@ -173,3 +173,14 @@ class BookotekaCover(Cover): title_font = ImageFont.truetype(get_resource('fonts/JunicodeWL-Regular.ttf'), 140) format = 'PNG' + + +class GandalfCover(Cover): + width = 600 + height = 730 + background_img = get_resource('res/cover-gandalf.png') + author_font = ImageFont.truetype(get_resource('fonts/JunicodeWL-Regular.ttf'), 30) + title_font = ImageFont.truetype(get_resource('fonts/JunicodeWL-Regular.ttf'), 40) + logo_bottom = 25 + logo_width = 250 + format = 'PNG'