X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/08a62c79e1e283f446130c02b92aa7920d7d7949..a4d6831b455ed69b196905427600d7163cdd3fe8:/librarian/cover.py?ds=sidebyside diff --git a/librarian/cover.py b/librarian/cover.py index 2f3117c..21eedc3 100644 --- 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.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()