if background_img:
background = Image.open(background_img)
- img.paste(background)
+ img.paste(background, None, background)
del background
# WL logo
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
)