From 004e069b46889f35372bc73615dc9a163a0f297b Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Fri, 29 Oct 2021 20:52:16 +0200 Subject: [PATCH 1/1] 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. --- codec.inc.pl | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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'], + }, + }, }, } -- 2.30.0