From: Mischa POSLAWSKY Date: Fri, 29 Oct 2021 18:52:16 +0000 (+0200) Subject: codec: rate browser support in my biased opinion X-Git-Tag: v1.13~112 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/004e069b46889f35372bc73615dc9a163a0f297b?hp=a142c8ca12f907b4775231207eeb5819ae76f30a codec: rate browser support in my biased opinion 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. --- diff --git a/codec.inc.pl b/codec.inc.pl index 2b1f590..992c488 100644 --- a/codec.inc.pl +++ b/codec.inc.pl @@ -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'], + }, + }, }, }