-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Introduce mediatypes directory with image type data
#27168
New issue
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
Merged
Merged
Changes from 30 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
e1e70dd
Add image formats
caugner be139cd
Add new media top-level object to README
caugner cfc75b4
Merge branch 'main' into 6971-image-formats
caugner e6eb726
Merge branch 'main' into 6971-image-formats
caugner 6381f06
Chromium unshipped JPEG XL
caugner fdf5942
Remove GIF animation (same support as parent)
caugner d74068b
Add HEIC/HEIF bugs
caugner 39ed6e2
Rename HEIC to HEIF
caugner 08676cd
Refine Safari data for AVIF
caugner 71439fb
Safari doesn't support JPEG XL with animated images
caugner aabc88e
Add Edge/IE image format data
caugner 9b5bc6e
Add WebP subfeatures
caugner cedc106
Refine Opera data for WebP
caugner a13d724
Merge branch 'main' into 6971-image-formats
caugner f870710
Merge branch 'main' into 6971-image-formats
caugner 67ca958
Move {media.formats => media-types}.image
caugner fc0bca8
Split media-types/image.json
caugner 7386b16
Add spec url for BMP (Bitmap file)
caugner 1757cd0
Merge branch 'main' into 6971-image-formats
caugner ab60b1c
Add media-types to code snippets, generate-types, data-folders
caugner a73cfff
Fix accidental "false" string
caugner d604185
refactor: rename {media-types => mediatypes}
caugner 7210ced
Fix some media-types versions
caugner 740db78
Fix notes array with single note
caugner c8eb716
Fix spec URL
caugner 83f00a1
Add missing WebView entries for media types
caugner abdd0ec
Fix AVIF animation version for Edge
caugner 8a19b48
Merge branch 'main' into 6971-image-formats
caugner c2b100b
Add fragments to media types spec URLs
caugner 3cb3649
Add spec URL exceptions for media types
caugner d2e33a7
Replace APNG spec URL
caugner 365d630
Apply suggestions from code review
caugner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| { | ||
| "mediatypes": { | ||
| "image": { | ||
| "avif": { | ||
| "__compat": { | ||
| "description": "AV1 Image File Format (AVIF)", | ||
| "mdn_url": "https://developer.mozilla.org/docs/Web/Media/Guides/Formats/Image_types#avif_image", | ||
| "spec_url": "https://aomediacodec.github.io/av1-avif/#general", | ||
| "support": { | ||
| "chrome": { | ||
| "version_added": "85" | ||
| }, | ||
| "chrome_android": "mirror", | ||
| "edge": { | ||
| "version_added": "121" | ||
| }, | ||
| "firefox": { | ||
| "version_added": "93" | ||
| }, | ||
| "firefox_android": "mirror", | ||
| "opera": "mirror", | ||
| "opera_android": "mirror", | ||
| "safari": [ | ||
| { | ||
| "version_added": "16.4" | ||
| }, | ||
| { | ||
| "version_added": "16.1", | ||
| "version_removed": "16.4", | ||
| "partial_implementation": true, | ||
| "notes": [ | ||
| "Only on macOS Ventura. Big Sur and Monterey are not supported.", | ||
| "Noise synthesis is not supported." | ||
| ] | ||
| } | ||
| ], | ||
| "safari_ios": { | ||
| "version_added": "16.1" | ||
| }, | ||
| "samsunginternet_android": "mirror", | ||
| "webview_android": "mirror", | ||
| "webview_ios": "mirror" | ||
| }, | ||
| "status": { | ||
| "experimental": false, | ||
| "standard_track": true, | ||
| "deprecated": false | ||
| } | ||
| }, | ||
| "animation": { | ||
| "__compat": { | ||
| "description": "Animation support (AVIF Image sequences)", | ||
| "spec_url": "https://aomediacodec.github.io/av1-avif/#image-sequences", | ||
| "support": { | ||
| "chrome": { | ||
| "version_added": "85" | ||
| }, | ||
| "chrome_android": "mirror", | ||
| "edge": { | ||
| "version_added": "121" | ||
| }, | ||
| "firefox": { | ||
| "version_added": "113" | ||
| }, | ||
| "firefox_android": "mirror", | ||
| "opera": "mirror", | ||
| "opera_android": "mirror", | ||
| "safari": { | ||
| "version_added": "16.1" | ||
| }, | ||
| "safari_ios": "mirror", | ||
| "samsunginternet_android": "mirror", | ||
| "webview_android": "mirror", | ||
| "webview_ios": "mirror" | ||
| }, | ||
| "status": { | ||
| "experimental": false, | ||
| "standard_track": true, | ||
| "deprecated": false | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| { | ||
| "mediatypes": { | ||
| "image": { | ||
| "bmp": { | ||
| "__compat": { | ||
| "description": "Bitmap file (BMP)", | ||
|
caugner marked this conversation as resolved.
Outdated
|
||
| "mdn_url": "https://developer.mozilla.org/docs/Web/Media/Guides/Formats/Image_types#bmp_bitmap_file", | ||
| "spec_url": "https://www.rfc-editor.org/rfc/rfc7903#section-1.2", | ||
| "support": { | ||
| "chrome": { | ||
| "version_added": "1" | ||
| }, | ||
| "chrome_android": "mirror", | ||
| "edge": { | ||
| "version_added": "12" | ||
| }, | ||
| "firefox": { | ||
| "version_added": "1" | ||
| }, | ||
| "firefox_android": "mirror", | ||
| "ie": { | ||
| "version_added": "1" | ||
| }, | ||
| "opera": { | ||
| "version_added": "≤2" | ||
| }, | ||
| "opera_android": "mirror", | ||
| "safari": { | ||
| "version_added": "1" | ||
| }, | ||
| "safari_ios": "mirror", | ||
| "samsunginternet_android": "mirror", | ||
| "webview_android": "mirror", | ||
| "webview_ios": "mirror" | ||
| }, | ||
| "status": { | ||
| "experimental": false, | ||
| "standard_track": true, | ||
| "deprecated": false | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| { | ||
| "mediatypes": { | ||
| "image": { | ||
| "gif": { | ||
| "__compat": { | ||
| "description": "Graphics Interchange Format (GIF)", | ||
| "mdn_url": "https://developer.mozilla.org/docs/Web/Media/Guides/Formats/Image_types#gif_graphics_interchange_format", | ||
| "spec_url": [ | ||
| "https://www.w3.org/Graphics/GIF/spec-gif87.txt#top", | ||
| "https://www.w3.org/Graphics/GIF/spec-gif89a.txt#top" | ||
| ], | ||
| "support": { | ||
| "chrome": { | ||
| "version_added": "1" | ||
| }, | ||
| "chrome_android": "mirror", | ||
| "edge": { | ||
| "version_added": "12" | ||
| }, | ||
| "firefox": { | ||
| "version_added": "1" | ||
| }, | ||
| "firefox_android": "mirror", | ||
| "ie": [ | ||
| { | ||
| "version_added": "2" | ||
| }, | ||
| { | ||
| "version_added": "1", | ||
| "version_removed": "2", | ||
| "partial_implementation": true, | ||
| "notes": "Animation is not supported." | ||
| } | ||
| ], | ||
| "opera": { | ||
| "version_added": "≤2" | ||
| }, | ||
| "opera_android": "mirror", | ||
| "safari": { | ||
| "version_added": "1" | ||
| }, | ||
| "safari_ios": "mirror", | ||
| "samsunginternet_android": "mirror", | ||
| "webview_android": "mirror", | ||
| "webview_ios": "mirror" | ||
| }, | ||
| "status": { | ||
| "experimental": false, | ||
| "standard_track": true, | ||
| "deprecated": false | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| { | ||
| "mediatypes": { | ||
| "image": { | ||
| "heif": { | ||
| "__compat": { | ||
| "description": "High Efficiency Image File Format (HEIF)", | ||
| "spec_url": "https://www.iso.org/standard/89035.html#content", | ||
| "support": { | ||
| "chrome": { | ||
| "version_added": false, | ||
| "impl_url": "https://crbug.com/411125808" | ||
| }, | ||
| "chrome_android": "mirror", | ||
| "edge": "mirror", | ||
| "firefox": { | ||
| "version_added": false, | ||
| "impl_url": "https://bugzil.la/1402293" | ||
| }, | ||
| "firefox_android": "mirror", | ||
| "opera": "mirror", | ||
| "opera_android": "mirror", | ||
| "safari": { | ||
| "version_added": "17" | ||
| }, | ||
| "safari_ios": "mirror", | ||
| "samsunginternet_android": "mirror", | ||
| "webview_android": "mirror", | ||
| "webview_ios": "mirror" | ||
| }, | ||
| "status": { | ||
| "experimental": false, | ||
| "standard_track": true, | ||
| "deprecated": false | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| { | ||
| "mediatypes": { | ||
| "image": { | ||
| "ico": { | ||
| "__compat": { | ||
| "description": "Microsoft Windows Icon (ICO)", | ||
|
caugner marked this conversation as resolved.
Outdated
|
||
| "support": { | ||
| "chrome": { | ||
| "version_added": "1" | ||
| }, | ||
| "chrome_android": "mirror", | ||
| "edge": { | ||
| "version_added": "12" | ||
| }, | ||
| "firefox": { | ||
| "version_added": "1" | ||
| }, | ||
| "firefox_android": "mirror", | ||
| "ie": { | ||
| "version_added": "5" | ||
| }, | ||
| "opera": { | ||
| "version_added": "≤2" | ||
| }, | ||
| "opera_android": "mirror", | ||
| "safari": { | ||
| "version_added": "1", | ||
| "version_removed": "2" | ||
| }, | ||
| "safari_ios": "mirror", | ||
| "samsunginternet_android": "mirror", | ||
| "webview_android": "mirror", | ||
| "webview_ios": "mirror" | ||
| }, | ||
| "status": { | ||
| "experimental": false, | ||
| "standard_track": false, | ||
| "deprecated": false | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| { | ||
| "mediatypes": { | ||
| "image": { | ||
| "jpeg": { | ||
| "__compat": { | ||
| "description": "Joint Photographic Experts Group Image (JPEG)", | ||
|
caugner marked this conversation as resolved.
Outdated
|
||
| "mdn_url": "https://developer.mozilla.org/docs/Web/Media/Guides/Formats/Image_types#jpeg_joint_photographic_experts_group_image", | ||
| "spec_url": "https://jpeg.org/jpeg/#content", | ||
| "support": { | ||
| "chrome": { | ||
| "version_added": "1" | ||
| }, | ||
| "chrome_android": "mirror", | ||
| "edge": { | ||
| "version_added": "12" | ||
| }, | ||
| "firefox": { | ||
| "version_added": "1" | ||
| }, | ||
| "firefox_android": "mirror", | ||
| "ie": { | ||
| "version_added": "1" | ||
| }, | ||
| "opera": { | ||
| "version_added": "≤2" | ||
| }, | ||
| "opera_android": "mirror", | ||
| "safari": { | ||
| "version_added": "1" | ||
| }, | ||
| "safari_ios": "mirror", | ||
| "samsunginternet_android": "mirror", | ||
| "webview_android": "mirror", | ||
| "webview_ios": "mirror" | ||
| }, | ||
| "status": { | ||
| "experimental": false, | ||
| "standard_track": true, | ||
| "deprecated": false | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI @ddbeck @Elchi3 I have renamed
media-typestomediatypesto avoid the extra work of mapping the dash ({ media-types: { … }}is not valid).