codec: calculate theoretical minimal overhead
authorMischa POSLAWSKY <perl@shiar.org>
Fri, 29 Oct 2021 18:52:23 +0000 (20:52 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Tue, 9 Nov 2021 03:14:15 +0000 (04:14 +0100)
commitc106d1bc4d686595384f6b3d4cc2a28cbed70d1f
tree853ff5212a3082311032a0fe17f1dc246e0036b6
parent004e069b46889f35372bc73615dc9a163a0f297b
codec: calculate theoretical minimal overhead

Optimal sizes of 1x1 black images as researched by Jon Sneyers [1]
with later AVIF data [2] and 2021-10-25 breakthrough for JPEG-XL [3].

An example found for HEIC [4] may not be golfed, but kind of irrelevant
considering the container.  Its 212 byte JPEG-2000 example is larger than a
naive ImageMagick conversion.

[1] https://cloudinary.com/blog/one_pixel_is_worth_three_thousand_words
[2] https://twitter.com/jonsneyers/status/1333037638840967169
[3] https://twitter.com/jonsneyers/status/1452727349405966341
[4] https://github.com/mathiasbynens/small/commit/e05a006dd
codec.inc.pl