Skip to content

fix: decode ICO assets with non-RGBA payloads - #232

Open
ItsDark008 wants to merge 1 commit into
mainfrom
fix/icon-decode
Open

ItsDark008 wants to merge 1 commit into
mainfrom
fix/icon-decode

Conversation

@ItsDark008

Copy link
Copy Markdown
Collaborator

Some valid ICO files fail to convert because the image crate cannot decode their embedded entries (for example non-RGBA PNG payloads). transformed_webp now tries a manual ICO fallback: parse the directory, skip invalid entries, and decode the largest usable one (PNG payload directly, or raw bitmap rewrapped as a single-entry ICO). Adds a regression test covering an ICO with an RGB PNG entry.

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.

1 participant