Add pdfBackground constructor property (#4207)

This commit is contained in:
Caleb Meredith
2024-09-06 07:31:43 -04:00
committed by GitHub
parent fc32e0bd3f
commit 7ee54810d4
8 changed files with 46 additions and 4 deletions

2
lib/index.d.ts vendored
View File

@@ -935,6 +935,8 @@ declare namespace sharp {
subifd?: number | undefined;
/** Level to extract from a multi-level input (OpenSlide), zero based. (optional, default 0) */
level?: number | undefined;
/** Background color to use when PDF is partially transparent. Requires the use of a globally-installed libvips compiled with support for PDFium, poppler-glib, ImageMagick, or GraphicsMagick. */
pdfBackground?: Color | undefined;
/** Set to `true` to read all frames/pages of an animated image (equivalent of setting `pages` to `-1`). (optional, default false) */
animated?: boolean | undefined;
/** Describes raw pixel input image data. See raw() for pixel ordering. */