pillow.py calls cs[3].filtered when cs[3] is of type HexString, being the palette data for an indexed colorspace. But HexString does not have a filtered attribute. Changed it to .to_bytes() to convert the strings to bytes, which is what Pillow expects for palette data.
pillow.py calls
cs[3].filtered
whencs[3]
is of typeHexString
, being the palette data for an indexed colorspace. ButHexString
does not have afiltered
attribute. Changed it to.to_bytes()
to convert the strings to bytes, which is what Pillow expects for palette data.