mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Impute TIFF xres/yres from withMetadata({density})
This commit is contained in:
committed by
Lovell Fuller
parent
b33231d4bd
commit
342de36973
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user