Skip to content

Add more image formats: BMP, GIF, and JPEG#3921

Open
ddbeck wants to merge 5 commits intoweb-platform-dx:mainfrom
ddbeck:more-image-formats
Open

Add more image formats: BMP, GIF, and JPEG#3921
ddbeck wants to merge 5 commits intoweb-platform-dx:mainfrom
ddbeck:more-image-formats

Conversation

@ddbeck
Copy link
Copy Markdown
Collaborator

@ddbeck ddbeck commented Apr 2, 2026

This maps some of the longest-implemented yet unmapped keys from BCD.

I searched for related keys and found a couple unmapped canvas keys. I placed them with canvas while I was at it.

@github-actions github-actions bot added feature definition Creating or defining new features or groups of features. tools and infrastructure Project internal tooling, such as linters, GitHub Actions, or repo settings labels Apr 2, 2026
Comment on lines +16 to +18
- api.HTMLCanvasElement.toBlob.type_parameter_jpeg
- api.HTMLCanvasElement.toDataURL
- api.HTMLCanvasElement.toDataURL.type_parameter_jpeg
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While we're at it, there's also type_parameter_png in BCD which we could add here. The compat data for it is a bit weird, because the spec says that browser must return the data as PNG if no type parameter is provided. So I would have expected this type's compat data to be the same as the toDataURL compat data, but that's not the case.

There's also type_parameter_webp, but that one is not supported on Safari. So we might want to ignore it for now.

Comment on lines +200 to +205
"https://jpeg.org/jpeg/#content",
"Allowed because it's a spec not tracked in web-specs."
],
[
"https://www.rfc-editor.org/rfc/rfc7903#section-1.2",
"Allowed because it's a spec not tracked in web-specs."
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tidoust should web-specs track these?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature definition Creating or defining new features or groups of features. tools and infrastructure Project internal tooling, such as linters, GitHub Actions, or repo settings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants