You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This somehow relates to #7, but seems different enough to me to create a new issue for this.
I am using your crate in my html5-picture. Since webp calls unreacheable! when a color profile is not supported, I am required to use panic::catch_unwind to be able to skip unsupported color profiles.
To prevent me from checking for supported color profiles and synchronize my crate every time webp changes and gets new implementations, it would be awesome that the from_XXX functions return Result<Self> instead of Self. This way it would be possible to skip unsupported profiles without catching a panic resulting in cleaner code.
The text was updated successfully, but these errors were encountered:
This somehow relates to #7, but seems different enough to me to create a new issue for this.
I am using your crate in my html5-picture. Since
webp
callsunreacheable!
when a color profile is not supported, I am required to usepanic::catch_unwind
to be able to skip unsupported color profiles.To prevent me from checking for supported color profiles and synchronize my crate every time
webp
changes and gets new implementations, it would be awesome that thefrom_XXX
functions returnResult<Self>
instead ofSelf
. This way it would be possible to skip unsupported profiles without catching a panic resulting in cleaner code.The text was updated successfully, but these errors were encountered: