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:

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:

You can also convert to AVIF, of course.
$ vips copy cicp-car-small.png x.avif

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:
-
We were not disabling libraw’s auto brightness feature, so there was no consistency between shots. Thanks to chrisabra, it’s now off and the output should be more predictable. This also means you can see the full range of the sensor.
-
It also sets the output colourspace to linear Rec.2020, and will use dcraw’s table of camera models to pick the right matrix. You should see more consistent colour between cameras too. Images are tagged with the matching ICC profile and CICP tags.
-
We’ve made it attach the JPEG preview images as metadata, and
thumbnailwill use these if it can. You should see much quicker thumbnails. -
Linear data needs 16 bits to represent the sensor range, so that’s now the default bitdepth.
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:
-
half-sizemakesdcrawloaddecode at 50% size. This lets you skip demosaicing and is a lot faster. -
auto-brightnessturns on libraw’s auto brightness feature. You’ll probably want this off if you are doing your own colour processing.
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:

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:

Improvements to file format support
The other file format operations have seen some improvements:
-
Thanks to work by Snafuh, libvips now has full support for the QOI image format. There are new
qoiloadandqoisaveoperations. -
jxlsavehas a newinterlaceoption. -
uhdrsavehas new options to control peak brightness and maximum content boost. -
heifsavehas a new option to set encoder options. This can give you more control over the compression settings.
Improvements to libvips operations
There have been some useful improvements to some basic libvips operations.
-
thumbnailnow has support for cropping by a specific point of interest, supportsdcrawloadthumbnails, and supports CICP HDR images. -
The
vipsthumbnailutility supports the@modifier for sizing to a pixel count. -
compositenow supports the non-separable blending modes. -
projectlets you set the combining mode. -
premultiplyandunpremultiplynow include a fast 8-bit path.
Improvements to the libvips core
The libvips core has also seen some improvements.
-
There’s a new built-in ICC profile,
linear-rec2020. This is useful withdcrawload, see above. -
libvips is now C11.
-
The old and long-deprecated vips7 API is no longer built by default.
-
New meson options let you disable features like man pages and CLI tools if you wish.
-
VIPS_UNLIMITED,--vips-unlimited,vips_unlimited_get(),vips_unlimited_set()let you disable all DoS checks. -
A new
VIPS_MEMCPY()macro gives a good speedup for small memory copies.
And the usual range of smaller improvements, see the ChangeLog for details.