Skip to content

Fix alpha handling when flattening images for vector backends#32107

Draft
ayshih wants to merge 2 commits into
matplotlib:mainfrom
ayshih:flatten_images_with_alpha
Draft

Fix alpha handling when flattening images for vector backends#32107
ayshih wants to merge 2 commits into
matplotlib:mainfrom
ayshih:flatten_images_with_alpha

Conversation

@ayshih

@ayshih ayshih commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

PR summary

This PR fixes two bugs when flattening images for vector backends and alpha is not 1. Image flattening is when the Agg resampler is used to flatten a sequence of images into a single image so that only a single image needs to be drawn by the backend, and is on by default.

Fixes #8847

AI Disclosure

PR checklist

@ayshih
ayshih force-pushed the flatten_images_with_alpha branch from 79eb786 to cccfc55 Compare July 23, 2026 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agg alpha image compositor differs from Matplotlib's software image compositor

1 participant