X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/18a72965fc7b90155130e87d4f1a4dd4aa354549..c69605017947202b0bbd0a2a2335cb37752141b9:/librarian/cover.py?ds=inline diff --git a/librarian/cover.py b/librarian/cover.py index c946d43..20cca66 100644 --- a/librarian/cover.py +++ b/librarian/cover.py @@ -43,7 +43,7 @@ def cover(author, title, if background_img: background = Image.open(background_img) - img.paste(background) + img.paste(background, None, background) del background # WL logo @@ -72,9 +72,9 @@ def virtualo_cover(author, title): def asbis_cover(author, title): return cover(author, u"„%s”" % title, - 800, 800, '#000', '', - 455, 230, 170, 60, '#fff', ImageFont.truetype(get_resource('fonts/JunicodeWL-Italic.ttf'), 50), '#000', - 0, 230, 170, 60, '#fff', ImageFont.truetype(get_resource('fonts/JunicodeWL-Italic.ttf'), 50), '#000', + 580, 783, '#fff', get_resource('res/cover-prestigio.png'), + 446, 118, 62, 60, '#fff', ImageFont.truetype(get_resource('fonts/JunicodeWL-Italic.ttf'), 50), '#000', + 0, 118, 62, 60, '#fff', ImageFont.truetype(get_resource('fonts/JunicodeWL-Italic.ttf'), 50), '#000', None, None )