codec: rate browser support in my biased opinion
authorMischa POSLAWSKY <perl@shiar.org>
Fri, 29 Oct 2021 18:52:16 +0000 (20:52 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Tue, 9 Nov 2021 03:14:15 +0000 (04:14 +0100)
Likely the most important and most subjective (except for jpeg ubiquity).
Of the newer formats currently only webp and avif have been widely adopted.
Personal bonus point for any kind of implementation or compatibility.

codec.inc.pl

index 2b1f59031ab95c10428bf8c09b2c500a3dcd60c1..992c48869c83f7ae4d301daf090251835a345eef 100644 (file)
@@ -36,7 +36,7 @@ codec => {
 },
 feature => {
        default => {
-               children => [qw( quality_photo quality_art speed limits features royalties )],
+               children => [qw( quality_photo quality_art speed limits features royalties support )],
        },
        quality_photo => {
                name => 'compression (photo)',
@@ -438,5 +438,17 @@ feature => {
                },
                children => [],
        },
+       support => {
+               score => {
+                       jpeg => 5,
+                       gif  => 5,
+                       png  => 5,
+                       jp2k => [2, undef, 'Apple only'],
+                       webp => [4, undef, 'modern browsers'],
+                       heic => [1, undef, 'stored by latest cameras, no browser support'],
+                       avif => [3, undef, 'all modern browsers except Safari and Edge'],
+                       jxl  => [2, undef, 'upcoming in most browsers'],
+               },
+       },
 },
 }