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
Some more context: On squoosh.app we'd like to use ImageDecoder, particularly for animated file formats.
Right now <img> supports animated formats, even if the mime type is incorrect.
If we want to match the support of <img> where the file extension or mime type doesn't matter, but be able to grab particular frames from the animated format, we would need to implement our own sniffing, even though that code already exists in the browser.
Right now, you need to provide a mimeType for
ImageDecoder
, butcreateImageBitmap
uses sniffing.Could the
ImageDecoder
mimetype be optional and use sniffing if one isn't provided?The text was updated successfully, but these errors were encountered: