X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/433d74a7369648a5a005b8678d005d85fe1dfac1..a80f46810bbfd38d8f40d2e2328cbcfd50e45c86:/codec.inc.pl diff --git a/codec.inc.pl b/codec.inc.pl index a76b04d..2e157fc 100644 --- a/codec.inc.pl +++ b/codec.inc.pl @@ -199,18 +199,36 @@ feature => { }, max_dimensions => { name => 'maximum image dimensions', + score => { + jpeg => 3, + png => 4, + jp2k => 5, + webp => 1, + heic => 2, + avif => 3, + jxl => 4, + }, data => { jpeg => '65k²', # 2**16 png => '2G²', # 2**31 jp2k => '4G²', # 2**32 webp => '16k²', # 2**14 - heic => '8k×4k+', # 2**13 - avif => '8k×4k+', + heic => '8k×4k+', # 8193x4320 + avif => '65k²+', # 2**16, 8193x4320 with profile jxl => '1G²', # 2**30 }, }, max_bitdepth => { name => 'precision (max. bit depth)', + score => { + jpeg => 2, + png => 4, + jp2k => 5, + webp => 2, + heic => 3, + avif => 3, + jxl => 5, + }, data => { jpeg => 8, png => 16, @@ -247,6 +265,15 @@ feature => { }, max_channels => { name => 'maximum number of channels', + score => { + jpeg => 2, + png => 2, + jp2k => 5, + webp => 2, + heic => 3, + avif => 3, + jxl => 4, + }, data => { jpeg => 4, # cmyk png => 4, # cmyk @@ -271,9 +298,9 @@ feature => { animation => { name => 'supports animation', score => { - jpeg => 'n', - png => 'y', - jp2k => 'n', + jpeg => 2, + png => 4, + jp2k => 2, webp => 'y', heic => 'y', avif => 'y', @@ -378,13 +405,14 @@ feature => { royalties => { name => 'royalty-free', score => { - jpeg => 'y', - png => 'y', - jp2k => 'y', - webp => 'y', - heic => 'n', - avif => 'y', - jxl => 'y', + jpeg => 5, + png => 5, + gif => 5, # patents expired + jp2k => 3, # specs not freely available + webp => 4, # submarine risk + heic => 'n', # patents enforced + avif => 4, + jxl => 4, }, }, },