fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove contest form link
[wolnelektury.git]
/
src
/
catalogue
/
management
/
commands
/
gencover.py
diff --git
a/src/catalogue/management/commands/gencover.py
b/src/catalogue/management/commands/gencover.py
index
d4c8383
..
5afd1ba
100644
(file)
--- 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 django.core.management.base import BaseCommand
from catalogue.models import Book
-from librarian.cover import
DefaultEbookC
over
+from librarian.cover import
make_c
over
class Command(BaseCommand):
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()
size = options['size']
bleed = 20 if options['bleed'] else 0
wldoc = Book.objects.get(slug=slug).wldocument()
- cover =
DefaultEbookC
over(wldoc.book_info, width=size, bleed=bleed)
+ cover =
make_c
over(wldoc.book_info, width=size, bleed=bleed)
cover.save('%s.jpg' % slug)
cover.save('%s.jpg' % slug)