Impute TIFF xres/yres from withMetadata({density})

This commit is contained in:
Michael B. Klein
2021-10-28 14:46:45 -05:00
committed by Lovell Fuller
parent b33231d4bd
commit 342de36973
5 changed files with 28 additions and 1 deletions

View File

@@ -637,6 +637,8 @@ function trySetAnimationOptions (source, target) {
/**
* Use these TIFF options for output image.
*
* The `density` can be set in pixels/inch via {@link withMetadata} instead of providing `xres` and `yres` in pixels/mm.
*
* @example
* // Convert SVG input to LZW-compressed, 1 bit per pixel TIFF output
* sharp('input.svg')