autocontrast color image
This commit is contained in:
parent
180d7ac7a7
commit
7293c64daa
|
|
@ -288,6 +288,7 @@ class ASCII(callbacks.Plugin):
|
|||
image = image.resize((cols, rows), Image.LANCZOS)
|
||||
image2 = image2.convert('RGBA')
|
||||
image2 = image2.convert('RGB')
|
||||
image2 = ImageOps.autocontrast(image2)
|
||||
image2 = image2.resize((cols, rows), Image.LANCZOS)
|
||||
lumamap = np.array(image)
|
||||
colormap = np.array(image2)
|
||||
|
|
@ -381,6 +382,7 @@ class ASCII(callbacks.Plugin):
|
|||
image = image.resize((cols, rows), Image.LANCZOS)
|
||||
image2 = image2.convert('RGBA')
|
||||
image2 = image2.convert('RGB')
|
||||
image2 = ImageOps.autocontrast(image2)
|
||||
image2 = image2.resize((cols, rows), Image.LANCZOS)
|
||||
lumamap = np.array(image)
|
||||
colormap = np.array(image2)
|
||||
|
|
|
|||
Loading…
Reference in New Issue