.HEIC and .AVIF test files

As part of the effort for Exiv2 to provide ISOBMFF support for darktable, it would be very helpful to have more test images in .HEIC and .AVIF formats.

I believe Canon have recently added HEIF support to some cameras, so I’m looking for .HEIC files for both Apple and Canon devices. Search results for "heif"Search Results heif | Cameralabs


5 posts were split to a new topic: Are HEIC and AVIF Files raws?

[update]: I’ve split the discussion about if the heic/avif files are raws or not to a separate topic, as it’s off-topic to the actual request for files (regardless of where they get uploaded to). - drop them here if you have some!

Ugh, no need for semantics. :wink:

If an image lands in raw.pixls.us that is HEIC/AVIF we can ask @andabata to drop them in this thread and scrub them.

If someone has HEIC and AVIF files just upload them here in the thread (I’ll make sure now that we can upload those filetypes). In fact, I’ve got an iphone I can generate an HEIC with. I’ll be right back. :wink:


I don’t know of any devices yet that produce an AVIF directly, so in the meantime the AOM test suite is probably the best bet?

Here’s an HEIC I just took:


(Sorry about not uploading it here - the forum is unhappy with .heic files at the moment… :slight_smile: ).

1 Like

Thank You @patdavid and @kmilos

@patdavid Very pleased to say that tvisitor.cpp the code in my book dumps your .HEIC file effortlessly. So, when the tvisitor/ISOBMFF code is ported to Exiv2, we should be able to read those files.

@kmilos I don’t know what .AVIF files are! Peter has some which have been generated by a scanning application and tvisitor.cpp successfully dumps the metadata. I am aware of aviflib, and maybe we can use images from their test suite.

They’re also ISOBMFF image files. The only difference to HEIC is that they use the royalty-free AV1 codec to store the payload instead of H.265

@kmilos The more I learn about images, the less I know. It’s an endless mess of overlapping/duplicated standards that do the same job in much the same way. What’s the point of this mess? I smell business self-interest and brand loyalty over consumer choice and open standards.

I have worked with Peter to decode the metadata in both AVIF and HEIC files. The Canon CR3 file is also ISOBMFF, however the metadata structures are 100% different. JP2000 uses yet another scheme. So, although those files are all ISOBMFF, the internal structure of the metadata depends on the file formats.

Let’s try to get a sufficient spread of test files to be confident that when everything is delivered, darktable users will be happy. I’d like test images now to avoid bug reports later!

1 Like

Collection of HEIC files from Nokia: heif_conformance/conformance_files at master · nokiatech/heif_conformance · GitHub

Collection of old AVIF files from Netflix: S3 Bucket Listing Generator

AVIF testfiles from Microsoft (already mentioned above), they have EXIF metadata: av1-avif/testFiles/Microsoft at master · AOMediaCodec/av1-avif · GitHub

I have customized plug-in(s) for GIMP using libheif and libavif. If needed I can generate some HEIF or AVIF files with EXIF and/or XMP metadata. Just let me know if you need such files.

@novomesk Thank You, Daniel for those resources and your offer of help. You are indeed a very helpful person. And of course @patdavid @kmilos @1div0 @LebedevRI @heckflosse and everbody else working on the darktable/Exiv2/ISOBMFF matter. Thanks, Everybody.

Here are two AVIF files with metadata:
Metadata are close to the beginning of the file (created via libavif):
Metadata at the end of file (created via libheif):

Thanks for the two AVIF files, @novomesk. Very pleased to say that tvisitor.cpp (the code in the book) reads these files and finds the metadata. I’ve added the two files to the test suite for the book.

Bribery will get you everywhere. I sent Gordon £10 for coffee and he sent me 14 files from an EOS R5 and a Sony A1 Camera. There are 8xHIF, 2xARW and 4xCR3. Very pleased to say that tvisitor (the code in my book) reads the files and displays the Exif metadata. Tomorrow, I’ll analyse the files carefully.

For the moment, the files on the Exiv2 buildserver and I have let Gordon know that I plan to share them with the community.

I understand that a new sub-domain for test images is to be established on pixels.us and I hope to share those files with the community when that’s available.

If anybody else would like to show appreciation for Gordon’s contribution, you can buy him coffee via PayPal on his blog. https://www.cameralabs.com/?s=heif

@novomesk Daniel. I put your images avif_metadata2.avif and avif_with_metadata_exif_xmp.avif into the Exiv2 test suite. Exiv2 parses the Exif and XMP data beautifully. Today, I thought, “what’s in those files?” and downloaded Chrome. OMG. It’s my avatar from GitHub. Thank You. You made me laugh.

A couple of questions about AVIF files. Do you have any images with any of the following:

  1. Thumbnail/previews
  2. ICC profile
  3. IPTC metadata

I’m hoping the answer is “no” because that will save me lots of work and testing!

We had a Team Exiv2 meeting on Saturday. We’ve decided to hibernate the Exiv2 project after v0.28 in Fall 2021 as we don’t have a maintainer. We’re hoping to have a mountain retreat weekend in Bavaria in the Fall. I hope you’ll be able to join us. Some hiking, talking, eating and boozing. Bavaria is about the centre of gravity of the contributors.


I think answer for 3. is no. I am not sure.

There could be thumbnails, for example av1-avif/Tomsk_with_thumbnails.avif at master · AOMediaCodec/av1-avif · GitHub (The primary image is encoded at 1280x720. The file contains two embedded thumbnails, encoded at 320x180 and 160x90 resolution, respectively.)
I think thumbnails are stored in the format, not in the metadata.

I have AVIF with ICC:
But ICC is saved din the format, not in the metadata. We do not need Exiv2 to handle it.

Thanks @novomesk. Exiv2 deals with metadata (Exif, IPTC and XMP) and three cousins: ICC, Previews and Comments. Sometimes the cousins are in the metadata (for example in Tiff) and often elsewhere in the file.

Exiv2 v0.27.4 RC1 is due on 2021-03-31. It’s more important to make that milestone than to worry about the “cousins”.

I’ll ask @1div0 to test the current version of our code with your test images in https://github.com/AOMediaCodec/av1-avif.git

Thanks for you help with this matter.

1 Like

If it helps, there is also an AVIF sample w/ ICC profile in the topic here. Exported from darktable using libavif.

Thanks @kmilos Miloš. I have ICC profiles in the test harness. It’s thumbnail/previews that are my main concern. Alex has searched the darktable code and we believe they generate/cache thumbnails for themselves. I hope to finish the bmff PR today. @1div0 has agreed test and review it.

Thank you for the lilienstein files. There’s an XMP parsing error to be investigated:

626 rmills@rmillsm1:~/Downloads/lilienstein_1k_HLG $ exiv2 -pS *.avif  >/dev/null
Error: XMP Toolkit error 201: XML parsing failure
Error: XMP Toolkit error 201: XML parsing failure
627 rmills@rmillsm1:~/Downloads/lilienstein_1k_HLG $ ls -l
total 3376
-rw-r--r--@ 1 rmills  staff  858852 10 Feb 10:41 lilienstein_1k_HLG_cicp.avif
-rw-r--r--@ 1 rmills  staff  867938 11 Feb 11:04 lilienstein_1k_HLG_icc.avif
628 rmills@rmillsm1:~/Downloads/lilienstein_1k_HLG $ 

Your files have an infe/av01Color record which I will investigate:

637 rmills@rmillsm1:~/Downloads/lilienstein_1k_HLG $ exiv2 -pS * | grep -i col
    Exiv2::BmffImage::boxHandler: infe      142->26 ID =   1 av01Color 
      Exiv2::BmffImage::boxHandler: colr      232->19 
    Exiv2::BmffImage::boxHandler: infe      142->26 ID =   1 av01Color 
      Exiv2::BmffImage::boxHandler: colr      232->9088 
      Exiv2::BmffImage::boxHandler: colr     9320->19 
638 rmills@rmillsm1:~/Downloads/lilienstein_1k_HLG $ 

I think you and @novomesk are country-men. Share transport to join us in Bavaria in the Fall?

I think that’s right, I don’t recall previews being embedded into e.g. exported TIFFs…

That’s very strange, as there should be no XMP data in those files - darktable currently does not pass XMP data to the AVIF export method AFAIK (only Exif so far), and inserting it via exiv2 in a second pass like it is done for other formats is not supported yet obviously… ExifTool does not show any XMP data or warnings.

Ha, that’s still the remnants of Cold War habits talking there Robin :wink: We’re not - relatively close, a few 100s of km south-east, but I’m not based in the region any more. You don’t need to sell me on the Bavaria get together, but my managers: the real day job one, the wife, and the toddler :wink: