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

Ignore iCCP section if it is invalid #475

Merged
merged 1 commit into from
Apr 1, 2024

Conversation

nathaniel-daniel
Copy link
Contributor

This PR makes invalid iCCP sections get ignored instead of throwing an error. Let me know if I should add an option to toggle this behavior.

Ideally, I think the icc_profile field should be an Option<Result<_, _>>, but that would be breaking. To ensure duplicate iccp sections are handled correctly, I introduced a new have_iccp field.

@fintelia fintelia merged commit f28bc07 into image-rs:master Apr 1, 2024
19 checks passed
@fintelia
Copy link
Contributor

fintelia commented Apr 1, 2024

This might change if we switch to lazy loading of metadata chunks, but looks good to me

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