Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix implementation of getIsTransparent #12571

Merged
merged 5 commits into from
Feb 2, 2023
Merged

Conversation

brianjhanson
Copy link
Contributor

Description

Imagine 1.3.0 introduced a change to how alpha channels are handled in versions of Imagick < 7. When we updated to use Imagine ~1.3.3.1 we started pulling in that version which had adverse effects on the Raster::getIsTransparent() function.

Previously that function returned if there was an alpha channel present or not, which wasn't necessarily an indication of if the image was actually transparent or not. For example, Imagine will apply an alpha layer to images when they are rotated with a background color that has an alpha. That alpha layer may not be used, but it is present.

Thanks to the help of the library authors this replaces the getIsTransparent check with something more reliable.

Related issues

Fixes #12565

@brianjhanson brianjhanson requested a review from a team as a code owner January 24, 2023 23:34
@brandonkelly brandonkelly self-requested a review as a code owner February 2, 2023 23:25
@brandonkelly brandonkelly merged commit 6013779 into v3 Feb 2, 2023
@brandonkelly brandonkelly deleted the bugfix/is-transparent-fix branch February 2, 2023 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants