X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/b92b58ba86f08f04b4f0436479d3d73ce0c03f00..12266a4397d9e344b7f95a19edc4a8df7cd5f9f0:/librarian/cover.py 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'