An opaque blue circle on a transparent green background.
It is of color type 2 (PNG_COLOR_TYPE_RGB) and has a tRNS chunk after a PLTE chunk.
An opaque blue circle on a transparent green background.
It is of color type 2 (PNG_COLOR_TYPE_RGB) and has a tRNS chunk before a PLTE chunk. Since the PNG specification version 1.2 says “the tRNS chunk [...] must follow the PLTE chunk, if any”, libpng considers the tRNS chunk as invalid and ignores it.
Source: Generated with ImageMagick's convert
command:
convert -size 3x1 xc:red -alpha on -fill '#00F8' \ -draw 'point 1,0' \ -draw 'color 2,0 point' -scale 33x33 draw_points.png
It is of color type 3 (PNG_COLOR_TYPE_PALETTE) and has a tRNS chunk.
License: same as libavif
Source: single white pixel encoded with libavif at default quality.
kodim*
License: released by the Eastman Kodak Company for unrestricted usage
License: released by the Eastman Kodak Company for unrestricted usage
It is kodim03_yuv420_8bpc.avif converted to grayscale and tagged as Gamma 1.6 gAMA PNG chunk.
License: released by the Eastman Kodak Company for unrestricted usage
It is kodim03_grayscale_gamma1.6.png converted into sRGB colorspace by Chrome using “Capture Node Screenshot” in DevTools.
License: released by the Eastman Kodak Company for unrestricted usage
Source: http://r0k.us/graphics/kodak/
cosmos*
License: Creative Commons Attribution license (reuse allowed)
Source: “Cosmos Laundromat” movie (frame at around 1 minute past the beginning)
License: “Irrevocable, nonexclusive, worldwide copyright license to download, copy, modify, distribute, perform, and use raw files from Signature Edits for free, including for commercial purposes, without permission from or attributing the photographer or Signature Edits.”
Source: Picture from https://www.signatureedits.com/free-raw-photos/, rescaled, modified color balance and converted with GIMP+Darktable to 16b PNG, metadata removed with exiftool -All=
.
The structure can be displayed using exiv2 -pS <file>
.
License: same as libavif
Source: Personal photo.
address | marker | length | data |
---|---|---|---|
0 | 0xffd8 SOI | ||
2 | 0xffe1 APP1 | 884 | Exif..II*...................... |
888 | 0xffe1 APP1 | 353 | http://ns.adobe.com/xap/1.0/.<x: |
1243 | 0xffe1 APP1 | 32417 | http://ns.adobe.com/xmp/extensio |
33662 | 0xffe0 APP0 | 16 | JFIF......... |
... | |||
33818 | 0xffe2 APP2 | 612 | ICC_PROFILE......T........mntrRG chunk 1/1 |
... |
License: same as libavif
Source: Personal photo edited with Gimp 2.10.
address | marker | length | data |
---|---|---|---|
0 | 0xffd8 SOI | ||
2 | 0xffe0 APP0 | 16 | JFIF.....,.,. |
20 | 0xffe1 APP1 | 1134 | Exif..II*...................... |
1156 | 0xffe1 APP1 | 3929 | http://ns.adobe.com/xap/1.0/.<?x |
5087 | 0xffe2 APP2 | 612 | ICC_PROFILE......T........mntrRG chunk 1/1 |
... |
License: same as libavif
Source: Metadata was extracted from paris_exif_xmp_icc.jpg
with exiftool -tagsfromfile paris_exif_xmp_icc.jpg paris_exif_xmp_icc.xmp
. The text of the first book of De finibus bonorum et malorum was manually inserted in that file under the tag xmp:Label
and the second book under the tag xmp:Nickname
(any <
or >
removed to avoid conflicts with XMP). The file was reconstructed with exiftool -tagsfromfile paris_exif_xmp_icc.xmp -Exif= -icc_profile= paris_exif_xmp_icc.jpg -o paris_extended_xmp.jpg
. The goal is to have a large XMP blob so that it can only be stored as multiple extended XMP chunks.
address | marker | length | data |
---|---|---|---|
0 | 0xffd8 SOI | ||
2 | 0xffe0 APP0 | 16 | JFIF.....,.,. |
20 | 0xffe1 APP1 | 5531 | http://ns.adobe.com/xap/1.0/.<?x |
5553 | 0xffe1 APP1 | 65535 | http://ns.adobe.com/xmp/extensio |
71090 | 0xffe1 APP1 | 65535 | http://ns.adobe.com/xmp/extensio |
136627 | 0xffe1 APP1 | 4791 | http://ns.adobe.com/xmp/extensio |
... |
License: same as libavif
Source: paris_exif_xmp_icc.jpg
loaded with avifReadImage()
, stripped of ICC and Exif, a zero byte appended to XMP, then written with avifJPEGWrite()
with quality 0 (without calling avifImageFixXMP()
).
address | marker | length | data |
---|---|---|---|
0 | 0xffd8 SOI | ||
2 | 0xffe0 APP0 | 16 | JFIF......... |
20 | 0xffe1 APP1 | 3930 | http://ns.adobe.com/xap/1.0/.<?x |
... |
License: same as libavif
Source: paris_exif_xmp_icc.jpg
loaded with avifReadImage()
then written with avifPNGWrite()
(modified to output metadata this way).
address | marker | length | data |
---|---|---|---|
8 | IHDR | 13 | |
33 | iCCP | 386 | libavif..(.u..+DQ..?3...E..... |
431 | zTXt | 631 | Raw profile type exif..H...[.. |
1074 | zTXt | 1076 | Raw profile type xmp..X..YQ..8 |
2162 | IDAT | ... | |
160456 | IEND | 0 |
License: same as libavif
Source: paris_exif_xmp_icc.jpg
loaded with avifReadImage()
then written with avifPNGWrite()
(modified to output metadata this way).
address | marker | length | data |
---|---|---|---|
8 | IHDR | 13 | |
33 | iCCP | 386 | libavif..(.u..+DQ..?3...E..... |
2162 | IDAT | ... | |
151474 | eXIf | 1126 | II*.......................... |
152612 | tEXt | 7832 | Raw profile type xmp..XMP.0000 |
160456 | IEND | 0 |
License: same as libavif
Source: paris_exif_xmp_icc.jpg
stripped of all metadata with exiftool -all=
and Exif orientation added with exiv2 -k -M "set Exif.Image.Orientation 5"
address | marker | length | data |
---|---|---|---|
0 | 0xffd8 SOI | ||
2 | 0xffe1 APP1 | 34 | Exif..II*...................... |
... |
License: same as libavif
Source: Encoded from paris_icc_exif_xmp.png
using avifenc -s 10
at commit ed52c1b.
License: Creative Commons Attribution-NonCommercial 2.5 License
Source: Picture from the libpng test page http://www.libpng.org/pub/png/colorcube/colorcube-pngs-gamma16.html.
It's a color image tagged as gamma 1.6.
License: Creative Commons Attribution-NonCommercial 2.5 License
Source: Picture from the libpng test page http://www.libpng.org/pub/png/colorcube/colorcube-pngs-gamma22.html.
It's a color image tagged as gamma 2.2.
License: Creative Commons Attribution-NonCommercial 2.5 License
Source: Picture from the libpng test page http://www.libpng.org/pub/png/colorcube/colorcube-pngs-gamma16.html.
It's a grayscale image tagged as gamma 1.6.
License: Creative Commons Attribution-NonCommercial 2.5 License
Source: Picture from the libpng test page http://www.libpng.org/pub/png/colorcube/colorcube-pngs-gamma22.html.
It's a grayscale image tagged as gamma 2.2.
License: Creative Commons Attribution-NonCommercial 2.5 License
Source: Picture from the libpng test page http://www.libpng.org/pub/png/colorcube/colorcube-pngs-sRGB.html.
It's a color image tagged as sRGB.
License: Creative Commons Attribution-NonCommercial 2.5 License
Attribution: Greg Roelofs
Source: Picture from the libpng test page http://www.libpng.org/pub/png/png-colortest.html.
It's a image tagged as gamma 2.2 and BT709 primaries.
License: Creative Commons Attribution-NonCommercial 2.5 License
Attribution: Greg Roelofs
Source: Picture from the libpng test page http://www.libpng.org/pub/png/png-colortest.html.
It's a image tagged as gamma 2.2 and BT709 primaries but red and green swapped.
License: Creative Commons Attribution-NonCommercial 2.5 License
Attribution: Greg Roelofs
Source: Picture from the libpng test page http://www.libpng.org/pub/png/png-colortest.html.
It's ArcTriomphe-cHRM-red-green-swap.png converted into sRGB colorspace by Chrome using “Capture Node Screenshot” in DevTools.
License: Creative Commons Attribution-NonCommercial 2.5 License
Attribution: Greg Roelofs
Source: ArcTriomphe-cHRM-orig.png
compressed with avifenc --ignore-exif --ignore-xmp --ignore-icc
.
The file is manually edited. The iloc
property of the primary item has two extents. A null byte was inserted between the two extents in the mdat
payload.
License: same as libavif
Source: Personal photo converted with avifenc --grid 1x5 --yuv 420
at commit 632d131.
License: same as libavif
Source: sofa_grid1x5_420.avif
with manually edited dimg
associations 2,3,4,5,5 instead of 2,3,4,5,6 (invalid file).
License: same as libavif
Source: sofa_grid1x5_420.avif
manually edited so that the dimg
order is 6,5,4,3,2 instead of 2,3,4,5,6.
License: same as libavif
Source: https://github.com/AOMediaCodec/libavif/issues/1203
The color planes are arranged as a 1x2 grid item. The alpha plane items are tagged as dimg
for each color plane item (without a grid
item on its own). This is allowed per the specification. libavif should decode such files correctly (i.e.) it should report them as files with alpha channel.
Box structure of the items in this file:
[primary item grid] ^ ^ |dimg |dimg | | [color] [color] ^ ^ |auxl |auxl | | [alpha] [alpha]
License: same as libavif
Source: Same as color_grid_alpha_nogrid.avif
The color and alpha planes are arranged as 2x2 grid items. The color dimg
associations are manually edited from 2,3,4,5 to 2,3,4,A. The item with ID 0xA is an item used in two grids.
License: same as libavif
Source: Same pixels as color_grid_alpha_nogrid.avif
encoded with cavif-rs
with the alpha ispe
fix removed.
License: same as libavif
Source: Based on paris_exif_xmp_icc.jpg with ICC stripped out and a gain map added. Contains a MPF (Multi-Picture Format) segment with metadata pointing to a second image at offset 33487. The MPF metadata is in little endian order, as signaled by the four bytes ‘II*\0’.
address | marker | length | data |
---|---|---|---|
0 | 0xffd8 SOI | ||
2 | 0xffe0 APP0 | 16 | JFIF.....,.,. |
20 | 0xffe1 APP1 | 838 | Exif..II*...................... |
1156 | 0xffe1 APP1 | 2808 | http://ns.adobe.com/xap/1.0/.<?x |
3670 | 0xffe1 APP1 | 392 | http://ns.adobe.com/xmp/extension/ |
4064 | 0xffe2 APP2 | 88 | MPF..II*..... |
... | |||
33487 | 0xffd8 SOI | ||
33489 | 0xffe0 APP0 | 16 | JFIF.....,.,. |
33507 | 0xffe1 APP1 | 571 | http://ns.adobe.com/xap/1.0/.<?x |
... |
License: same as libavif
Source: Same as paris_exif_xmp_gainmap_littleendian.jpg but manually edited with a hex editor to make the MPF metadata big endian, as signaled by the four bytes ‘MM\0*’.
address | marker | length | data |
---|---|---|---|
0 | 0xffd8 SOI | ||
2 | 0xffe0 APP0 | 16 | JFIF.....,.,. |
20 | 0xffe1 APP1 | 838 | Exif..II*...................... |
1156 | 0xffe1 APP1 | 2808 | http://ns.adobe.com/xap/1.0/.<?x |
3670 | 0xffe1 APP1 | 392 | http://ns.adobe.com/xmp/extension/ |
4064 | 0xffe2 APP2 | 88 | MPF..MM.*.... |
... | |||
33487 | 0xffd8 SOI | ||
33489 | 0xffe0 APP0 | 16 | JFIF.....,.,. |
33507 | 0xffe1 APP1 | 571 | http://ns.adobe.com/xap/1.0/.<?x |
... |
License: same as libavif
Source: same as paris_exif_xmp_gainmap_bigendian.jpg but with a DCI-P3 ICC profile added using exiftool:
cp paris_exif_xmp_gainmap_bigendian.jpg paris_exif_xmp_icc_gainmap_bigendian.jpg exiftool -icc_profile -b path/to/some_image_with_a_p3_profile.jpg > p3.icc exiftool "-icc_profile<=p3.icc" paris_exif_xmp_icc_gainmap_bigendian.jpg
License: same as libavif
Source: generated with a modified libavif at https://github.com/maryla-uc/libavif/tree/weirdgainmaps
Contains a 4x3 color grid, a 4x3 alpha grid, and a 2x2 gain map grid.
License: same as libavif
Source: generated with a modified libavif at https://github.com/maryla-uc/libavif/tree/weirdgainmaps
Contains a single color image, single alpha image, and a 2x2 gain map grid.
License: same as libavif
Source: generated with a modified libavif at https://github.com/maryla-uc/libavif/tree/weirdgainmaps
Contains a 4x3 color grid, a 4x3 alpha grid, and a single gain map image.
License: same as libavif
Source : created from a personal photo, converted to HDR using Photoshop, see https://helpx.adobe.com/camera-raw/using/hdr-output.html and https://gregbenzphotography.com/hdr-images/jpg-hdr-gain-maps-in-adobe-camera-raw/
See also sources/seine.psd
HDR image using the PQ transfer curve. Contains a gain map in Adobe's format that is not recognized by libavif and ignored by the tests.
License: same as libavif
Source : created from a personal photo, converted to HDR using Photoshop, then saved as JPEG+gainmap, see https://helpx.adobe.com/camera-raw/using/hdr-output.html and https://gregbenzphotography.com/hdr-images/jpg-hdr-gain-maps-in-adobe-camera-raw/
License: same as libavif
Source : same as seine_hdr_srgb but saved with the Rec. 2020 color space in Photoshop (Camera Raw 16.0.1.1683).
License: same as libavif
Source : created from seine_sdr_gainmap_srgb.jpg
converted to avif with avifenc built with AVIF_ENABLE_EXPERIMENTAL_GAIN_MAP and AVIF_ENABLE_LIBXML2 then:
# from libavif/mybuilddir/ ./avifenc ../tests/data/seine_sdr_gainmap_srgb.jpg ../tests/data/seine_sdr_gainmap_srgb.avif --qcolor 90 --qgain-map 90 --ignore-icc
SDR image with a gain map to allow tone mapping to HDR.
Source : modified version of seine_sdr_gainmap_srgb.avif
with an upscaled gain map, generated using libavif's API. See CreateTestImages
in avifgainmaptest.cc
(set kUpdateTestImages to update images).
SDR image with a gain map to allow tone mapping to HDR. The gain map's width and height are doubled compared to the base image. This is an atypical image just for testing. Typically, the gain map would be either the same size or smaller as the base image.
License: same as libavif
Source : created from seine_hdr_srgb.avif
(for the base image) and seine_sdr_gainmap_srgb.avif
(for the gain map) with libavif's API. See CreateTestImages
in avifgainmaptest.cc
(set kUpdateTestImages to update images).
HDR image with a gain map to allow tone mapping to SDR.
License: same as libavif
Source : modified version of seine_hdr_gainmap_srgb.avif
with a downscaled gain map, generated using libavif's API. See CreateTestImages
in avifgainmaptest.cc
(set kUpdateTestImages to update images).
SDR image with a gain map to allow tone mapping to HDR. The gain map's width and height are halved compared to the base image.
SDR and HDR (PQ) AVIF images in various colorspaces. The files with ‘wcg’ (wide color gamut) in their name have colors outside of the sRGB color space. The files without ‘wcg’ in their name have sRGB colors, but expressed in various color spaces.
The files with ‘text’ in their name have text on them. They are not currently used in tests but can be used for manual testing of gain maps (e.g. with avifgainmaputil combine ...
), as they make it easy to see which version the browser is displaying.
HDR/wide color gamut images should be viewed on an HDR display, such as on a M1+ Mac Book Pro.
Source : created with Photoshop 25.1.0 (Camera Raw 16.0.1.1683), see sources/colors.psd and https://helpx.adobe.com/camera-raw/using/hdr-output.html, https://gregbenzphotography.com/hdr-images/jpg-hdr-gain-maps-in-adobe-camera-raw/
Basic process: create a 32bit image, export it as png for the SDR version. Then open the Camera Raw filter (Filter > Camera Raw Filter...), click HDR at the top right, and drag the histogram towards the right to create brighter pixels. Click the save icon on the top right. Select AVIF as output format and check “HDR output” then save. To create an image with a wider color gamut, choose Edit > Assign Profile... and set the color space to e.g. BT 2020.
To export more images from sources/colors.psd:
License: same as libavif
Source: Random colors generated with ffmpeg.
An animated AVIF image file with the following attributes:
License: same as libavif
Source: colors-animated-8bpc.avif
but translucent and with the Exif/XMP chunks of paris_exif_xmp_icc.jpg
. The repetition is infinite.
License: same as libavif
Source: Random frames generated with libavif.