Ensure background metadata can be parsed #4090

This commit is contained in:
Lovell Fuller
2024-11-02 13:03:58 +00:00
parent 3796dd8a87
commit 04e7f58cea
9 changed files with 55 additions and 7 deletions

View File

@@ -31,7 +31,7 @@ A `Promise` is returned when `callback` is not provided.
- `pagePrimary`: Number of the primary page in a HEIF image
- `levels`: Details of each level in a multi-level image provided as an array of objects, requires libvips compiled with support for OpenSlide
- `subifds`: Number of Sub Image File Directories in an OME-TIFF image
- `background`: Default background colour, if present, for PNG (bKGD) and GIF images, either an RGB Object or a single greyscale value
- `background`: Default background colour, if present, for PNG (bKGD) and GIF images
- `compression`: The encoder used to compress an HEIF file, `av1` (AVIF) or `hevc` (HEIC)
- `resolutionUnit`: The unit of resolution (density), either `inch` or `cm`, if present
- `hasProfile`: Boolean indicating the presence of an embedded ICC profile

View File

@@ -10,6 +10,9 @@ Requires libvips v8.16.0-rc2
* Expose WebP `smartDeblock` output option.
* Ensure `background` metadata can be parsed by `color` package.
[#4090](https://github.com/lovell/sharp/issues/4090)
* TypeScript: Ensure channel counts use the correct range.
[#4197](https://github.com/lovell/sharp/pull/4197)
[@DavidVaness](https://github.com/DavidVaness)