mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 04:20:07 +01:00
Merge pull request #1066 from garibarba/master
Fix bug due to type mismatch.
This commit is contained in:
@@ -506,7 +506,7 @@ class PILImageHandler(object):
|
||||
import PIL.ImageEnhance as ImageEnhance
|
||||
|
||||
pil = Image.new('RGB', (img.GetWidth(), img.GetHeight()))
|
||||
pil.frombytes(img.GetData())
|
||||
pil.frombytes(bytes(img.GetData()))
|
||||
enh = ImageEnhance.Brightness(pil)
|
||||
enh = enh.enhance(1.5)
|
||||
img.SetData(enh.convert('RGB').tobytes())
|
||||
|
||||
Reference in New Issue
Block a user