Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ANI: Reduce Pillow frames to RGB when opaque
In some cases, such as GIF output, Pillow must convert to P (palette) mode. Unfortunately, when done on RGBA images, this can lose some colour information (cf, python-pillow/Pillow#6832) But when the image starts in RGB mode, the conversion to P mode works better, so convert frames to RGB when they don't have any transparent pixels. Fixes matplotlib#29190
- Loading branch information