Skip to content

Detect regular BMP in IcoFrame::with_encoded#3017

Open
RunDevelopment wants to merge 1 commit into
image-rs:mainfrom
RunDevelopment:IcoFrame--with_encoded-detect-bmp
Open

Detect regular BMP in IcoFrame::with_encoded#3017
RunDevelopment wants to merge 1 commit into
image-rs:mainfrom
RunDevelopment:IcoFrame--with_encoded-detect-bmp

Conversation

@RunDevelopment

Copy link
Copy Markdown
Member

Work towards #2192.

In this PR, I documented the requirements for encoded BMPs IcoFrame::with_encoded has and made it return an error if a regular BMP is given.

This makes it more difficult to misuse the API and create invalid ICO files (see #2192). Adding an API for creating valid BMP ICO files can be done in follow-up PRs.

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