Save quality
This commit is contained in:
parent
ba33edbc3d
commit
d342572a23
1 changed files with 1 additions and 1 deletions
|
@ -543,7 +543,7 @@ class CentralManagement():
|
|||
img = Image.open(f)
|
||||
img = img.transpose(Image.ROTATE_90).transpose(Image.FLIP_TOP_BOTTOM)
|
||||
tunedImg = Level.level_image(img, self.config['level']['min'], self.config['level']['max'], self.config['level']['gamma'])
|
||||
tunedImg.save(filename)
|
||||
tunedImg.save(filename,quality=95)
|
||||
except Exception as e:
|
||||
self.logger.critical("Cannot create image from scan. Did scanner work?")
|
||||
self.logger.exception(e)
|
||||
|
|
Loading…
Reference in a new issue