Add image format support information to this page

I just did a little cleanup work on the page on the <img> element. It has a section called Supported image formats which previously only mentioned Gecko. I’ve changed it to have a brief statement about how different browsers may support different image formats, then a subsection for Firefox’s list of supported formats.

We need to add the supported formats for the other major browsers in here. At least Chrome, Edge, and Safari would be good. Anyone up to that?

Sheppy

2 Likes

This work could be filed as a “help wanted” issue on https://github.com/mdn/browser-compat-data.

1 Like

Are you suggesting we devise a way to incorporate image format support directly into BCD, or that updating the content to provide this information could be somehow considered part of BCD’s project?

My thinking is that at least for starters, just a simple list of the image and media formats supported by each browser would be helpful. And actually coming up with a schema for including that info in BCD would make a ton of sense. Maybe a general “file type support” database, with records something like:

"file_type": {
  "name": "JPEG",
  "mimetypes": [
    "image/jpeg"
  ],
  "extensions: [
    "jpg", "jpeg"
  ],
  "support": {
    "chrome": {
      ... /* same format as other support sections */
   }
  }
}

Sheppy

1 Like