mirror of
https://github.com/ciromattia/kcc
synced 2026-10-20 16:32:31 +00:00
fix subtle incorrectness with gamma correction with BW images saved as RGB (#1461)
This commit is contained in:
@@ -420,9 +420,12 @@ class ComicPage:
|
||||
if self.opt.hq:
|
||||
self.size = (int(self.size[0] * 1.5), int(self.size[1] * 1.5))
|
||||
self.original_color_mode = image.mode
|
||||
# TODO: color check earlier
|
||||
self.image = image.convert("RGB")
|
||||
self.image = image
|
||||
self.color = colorCheck(self.image, self.original_color_mode, self.opt)
|
||||
if self.color:
|
||||
self.image = self.image.convert('RGB')
|
||||
else:
|
||||
self.image = self.image.convert('L')
|
||||
self.colorOutput = self.color and self.opt.forcecolor
|
||||
self.page_background_color = page_background_color
|
||||
self.fill = fill
|
||||
|
||||
Reference in New Issue
Block a user