X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/fb08d6c6a6dca486303ca69b5c47dd29e548fd11..09d07c1e40ddf5c7ef3d75f5cfafa79a3450d160:/src/catalogue/views.py diff --git a/src/catalogue/views.py b/src/catalogue/views.py index fd98dee23..267d9b40a 100644 --- a/src/catalogue/views.py +++ b/src/catalogue/views.py @@ -788,9 +788,9 @@ def collections(request): def ridero_cover(request, slug): - from librarian.cover import DefaultEbookCover + from librarian.cover import make_cover wldoc = Book.objects.get(slug=slug).wldocument() - cover = DefaultEbookCover(wldoc.book_info, width=980, bleed=20, format='PNG') + cover = make_cover(wldoc.book_info, width=980, bleed=20, format='PNG') response = HttpResponse(content_type="image/png") cover.save(response) return response