You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Keep pointer to im object to prevent dereferencing.
self._im=img.im
ifself._im.mode=="P":
self._palette=img.palette
This code saves a reference to the image palette, but only for "P" mode images. I think it should probably check for "PA" here too. This saved palette is used later in this class, but again only for "P", not "PA".
Pillow/src/PIL/PyAccess.py
Lines 59 to 62 in 5a087cc
This code saves a reference to the image palette, but only for "P" mode images. I think it should probably check for "PA" here too. This saved palette is used later in this class, but again only for "P", not "PA".
Pillow/src/PIL/PyAccess.py
Lines 91 to 97 in 5a087cc
I haven't checked if this palette reference is used outside of this class, though it is supposed to be private so hopefully not.
The text was updated successfully, but these errors were encountered: