We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I would like to be able to create ImageFormat from a MIME type.
ImageFormat
My specific use case for this functionality is decoding an image that comes from a js function.
if this feature is accepted, i will do a pr for it.
impl ImageFormat { fn from_mime_type(mime_type: &str) -> Option<Self> { match mime_type { "image/png" => Some(ImageFormat::Png) _ => todo!(); } } }
The text was updated successfully, but these errors were encountered:
This sounds good to me.
Sorry, something went wrong.
ok i will open a pr for it.
Successfully merging a pull request may close this issue.
I would like to be able to create
ImageFormat
from a MIME type.My specific use case for this functionality is decoding an image that comes from a js function.
if this feature is accepted, i will do a pr for it.
Draft
The text was updated successfully, but these errors were encountered: