uploads: add support for uploading .avif files.
Features of AVIF include: * Lossless and lossy compression. * High dynamic range (HDR) images * Wide color gamut images (i.e. 10- and 12-bit color depths) * Transparency (through alpha planes). * Animations (with an optional cover image). * Auxiliary image sequences, where the file contains a single primary image and a short secondary video, like Apple's Live Photos. * Metadata rotation, mirroring, and cropping. The AVIF format is still relatively new and some of these features aren't well supported by browsers or other software: * Animated AVIFs aren't supported by Firefox or by libvips. * HDR images aren't supported by Firefox. * Rotated, mirrored, and cropped AVIFs aren't supported by Firefox or Chrome. * Image grids, where the file contains multiple images that are tiled together into one big image, aren't supported by Firefox. * AVIF as a whole has only been supported for a year or two by Chrome and Firefox, and less than a year by Safari. For these reasons, only basic AVIFs that don't use animation, rotation, cropping, or image grids can be uploaded.
BIN
test/files/avif/Image grid example.avif
Normal file
|
After Width: | Height: | Size: 5.6 KiB |
7
test/files/avif/README.md
Normal file
@@ -0,0 +1,7 @@
|
||||
Test file sources:
|
||||
|
||||
* https://github.com/link-u/avif-sample-images
|
||||
* https://github.com/AOMediaCodec/av1-avif/tree/master/testFiles
|
||||
* https://github.com/AOMediaCodec/libavif/tree/main/tests/data
|
||||
* https://colinbendell.github.io/webperf/animated-gif-decode/avif.html
|
||||
* https://0xc0000054.github.io/pdn-avif/using-image-grids.html
|
||||
BIN
test/files/avif/alpha_video.avif
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
test/files/avif/fox.profile0.8bpc.yuv420.monochrome.avif
Normal file
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
BIN
test/files/avif/hdr_cosmos01000_cicp9-16-9_yuv444_full_qp40.avif
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
test/files/avif/kimono.crop.avif
Normal file
|
After Width: | Height: | Size: 84 KiB |
BIN
test/files/avif/kimono.mirror-horizontal.avif
Normal file
|
After Width: | Height: | Size: 83 KiB |
BIN
test/files/avif/kimono.rotate90.avif
Normal file
|
After Width: | Height: | Size: 83 KiB |
BIN
test/files/avif/paris_icc_exif_xmp.avif
Normal file
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
BIN
test/files/avif/sequence-with-pitm-avif-major.avif
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
test/files/avif/sequence-with-pitm.avif
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
test/files/avif/sequence-without-pitm.avif
Normal file
BIN
test/files/avif/star-8bpc.avif
Normal file
BIN
test/files/avif/tiger_3layer_1res.avif
Normal file
|
After Width: | Height: | Size: 69 KiB |