X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/327e9cecd8cd2a8795a874dcb4e88a50d7c972fe..ac05eb781dae22cef8d2d08f5b039e18b3274344:/src/catalogue/management/commands/gencover.py diff --git a/src/catalogue/management/commands/gencover.py b/src/catalogue/management/commands/gencover.py index d4c838351..5afd1ba24 100644 --- a/src/catalogue/management/commands/gencover.py +++ b/src/catalogue/management/commands/gencover.py @@ -5,7 +5,7 @@ from django.core.management.base import BaseCommand from catalogue.models import Book -from librarian.cover import DefaultEbookCover +from librarian.cover import make_cover class Command(BaseCommand): @@ -19,5 +19,5 @@ class Command(BaseCommand): size = options['size'] bleed = 20 if options['bleed'] else 0 wldoc = Book.objects.get(slug=slug).wldocument() - cover = DefaultEbookCover(wldoc.book_info, width=size, bleed=bleed) + cover = make_cover(wldoc.book_info, width=size, bleed=bleed) cover.save('%s.jpg' % slug)