fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix in extract_annotations
[librarian.git]
/
librarian
/
cover.py
diff --git
a/librarian/cover.py
b/librarian/cover.py
index
2f3117c
..
21eedc3
100644
(file)
--- a/
librarian/cover.py
+++ b/
librarian/cover.py
@@
-214,7
+214,12
@@
class Cover(object):
return self.exts[self.format]
def save(self, *args, **kwargs):
return self.exts[self.format]
def save(self, *args, **kwargs):
- return self.final_image().save(format=self.format, quality=95, *args, **kwargs)
+ default_kwargs = {
+ 'format': self.format,
+ 'quality': 95,
+ }
+ default_kwargs.update(kwargs)
+ return self.final_image().save(*args, **default_kwargs)
def output_file(self, *args, **kwargs):
imgstr = StringIO()
def output_file(self, *args, **kwargs):
imgstr = StringIO()