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.
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 anOption<Result<_, _>>
, but that would be breaking. To ensure duplicate iccp sections are handled correctly, I introduced a newhave_iccp
field.