Skip to content

ICO: Ignore AND mask for 32bpp images with native alpha#3002

Open
mpospelova wants to merge 1 commit into
image-rs:mainfrom
mpospelova:remove-and-mask
Open

ICO: Ignore AND mask for 32bpp images with native alpha#3002
mpospelova wants to merge 1 commit into
image-rs:mainfrom
mpospelova:remove-and-mask

Conversation

@mpospelova
Copy link
Copy Markdown
Contributor

2bpp BMPs already have a native alpha channel, so applying the 1-bit AND mask is destructive, as it overwrites real alpha values.

@RunDevelopment
Copy link
Copy Markdown
Member

Could you please show that this is correct? Just because applying the AND mask is destructive doesn't mean we can just ignore it. So could you please find relevant documentation that supports your change and/or show that other widely used decoders behave equivalently?

I think an example image would really help here. Then we could just see what other programs are doing.

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