Here’s a summary of what’s new in libvips 8.19. Check the ChangeLog if you need more details.

The headline features are better HDR support, better RAW load, animated PNGs, and the QOI image format. Plus the usual improvements to file format handling, libvips operations, and the libvips core.

Better HDR support

Thanks to great work by starbix and mertalev, libvips 8.19 and later now support loading and saving images with CICP tags to and from AVIF, JXL, and PNG images. It also supports loading and saving these images to UltraHDR formats like JPG with automatic conversion of tags. libvips supports generating and modifying CICP tags programmatically, including support for computing some image properties, such as target illumination.

If you need more control, you can also take charge of the HDR pipeline yourself. The new CICP chapter in the libvips docs has the details.

As an example, here’s an HDR PNG image. It’ll probably look very dark on your screen, since almost no one supports this strange HDR image format:

CICP PNG image

You can convert this terrible file to something more reasonable like this:

$ vips copy cicp-car-small.png x.jpg

This will make a JPEG image, but the JPEG saver will automatically spot the CICP tags on this image and generate a UltraHDR file with a gainmap.

This might now display as HDR, depending on your screen and browser:

UltraHDR JPEG image

You can also convert to AVIF, of course.

$ vips copy cicp-car-small.png x.avif

CICP AVIF image

Again, the appearance will depend on your browser and display. On SDR screens, these two versions of the original probably won’t match well, since the UltraHDR image has been tone mapped, whereas the AVIF will display the SDR component of the CICP data.

There should be a good match on an HDR display.

These automatic conversions should work everywhere (they work with thumbnail, for example) and in all libvips bindings.

Better RAW load

The dcrawload operator has been improved. It should now make more stable images, be more accurate, and be quite a lot faster.

The defaults have been improved:

The linear default is especially good for scientific work – it makes getting useful colour measurements from RAW files much simpler. On the other hand, images may look rather dark and flat and need more downstream processing.

You can use CICP2scRGB or icc_import to transform to one of the colorimetric spaces.

There are two new options:

Additionally, dcrawload now attaches more camera preview images, and thumbnail will use the previews if it can. This can make generating thumbnails of RAW files hundreds of times faster.

Animated PNG

Thanks to generous support from the EU, libvips now supports animated PNG with the upcoming libpng 2.0. For now, you’ll need to build against libpng 1.8, the development version.

Animated PNG images are a bit larger than GIFs, but they support full alpha transparency and full colour with no need for dithering. For example, this animated PNG has numbers moving over a textured background:

Animated PNG

Unlike a GIF, the edges of the characters should look nicely antialiased whatever background you use.

You can convert them like any animated image, for example:

$ vips copy numbers.png[n=-1] numbers.gif

To make:

Animated GIF

Improvements to file format support

The other file format operations have seen some improvements:

Improvements to libvips operations

There have been some useful improvements to some basic libvips operations.

Improvements to the libvips core

The libvips core has also seen some improvements.

And the usual range of smaller improvements, see the ChangeLog for details.