mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Fix bytes which should be bytearray
This commit is contained in:
parent
eee43319bb
commit
4be146cf27
|
@ -718,7 +718,7 @@ class Image:
|
|||
if self.mode == "L" and mode == "RGBA" and "transparency" in self.info:
|
||||
from PIL import ImagePalette
|
||||
self.mode = "P"
|
||||
bytePalette = bytes([i//3 for i in range(768)])
|
||||
bytePalette = bytearray([i//3 for i in range(768)])
|
||||
self.palette = ImagePalette.raw("RGB", bytePalette)
|
||||
self.palette.dirty = 1
|
||||
self.load()
|
||||
|
|
Loading…
Reference in New Issue
Block a user