Docs: changelog and refresh for #3023

This commit is contained in:
Lovell Fuller 2022-01-29 14:59:20 +00:00
parent f7bed69ffb
commit da5453a7c0
3 changed files with 6 additions and 1 deletions

View File

@ -422,6 +422,7 @@ The `density` can be set in pixels/inch via [withMetadata][1] instead of providi
* `options.tileHeight` **[number][9]** vertical tile size (optional, default `256`) * `options.tileHeight` **[number][9]** vertical tile size (optional, default `256`)
* `options.xres` **[number][9]** horizontal resolution in pixels/mm (optional, default `1.0`) * `options.xres` **[number][9]** horizontal resolution in pixels/mm (optional, default `1.0`)
* `options.yres` **[number][9]** vertical resolution in pixels/mm (optional, default `1.0`) * `options.yres` **[number][9]** vertical resolution in pixels/mm (optional, default `1.0`)
* `options.resolutionUnit` **[string][2]** resolution unit options: inch, cm (optional, default `'inch'`)
* `options.bitdepth` **[number][9]** reduce bitdepth to 1, 2 or 4 bit (optional, default `8`) * `options.bitdepth` **[number][9]** reduce bitdepth to 1, 2 or 4 bit (optional, default `8`)
### Examples ### Examples

View File

@ -43,6 +43,10 @@ Requires libvips v8.12.1
[#3006](https://github.com/lovell/sharp/pull/3006) [#3006](https://github.com/lovell/sharp/pull/3006)
[@christopherbradleybanks](https://github.com/christopherbradleybanks) [@christopherbradleybanks](https://github.com/christopherbradleybanks)
* Add `resolutionUnit` as `tiff` option and expose in metadata.
[#3023](https://github.com/lovell/sharp/pull/3023)
[@ompal-sisodiya](https://github.com/ompal-sisodiya)
* Ensure rotate-then-extract works with EXIF mirroring. * Ensure rotate-then-extract works with EXIF mirroring.
[#3024](https://github.com/lovell/sharp/issues/3024) [#3024](https://github.com/lovell/sharp/issues/3024)

File diff suppressed because one or more lines are too long