wasm-vips 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -4
- package/lib/vips-es6.js +498 -286
- package/lib/vips-es6.worker.js +1 -1
- package/lib/vips-heif.wasm +0 -0
- package/lib/vips-jxl.wasm +0 -0
- package/lib/vips-node.js +520 -0
- package/lib/vips-node.mjs +518 -0
- package/lib/vips-node.worker.js +1 -0
- package/lib/vips-node.worker.mjs +1 -0
- package/lib/vips-resvg.wasm +0 -0
- package/lib/vips.d.ts +303 -146
- package/lib/vips.js +499 -287
- package/lib/vips.wasm +0 -0
- package/lib/vips.worker.js +1 -1
- package/package.json +12 -12
- package/lib/node-commonjs/vips.js +0 -308
- package/lib/node-commonjs/vips.worker.js +0 -1
- package/lib/node-es6/vips.mjs +0 -308
- package/lib/node-es6/vips.worker.js +0 -1
package/lib/vips.d.ts
CHANGED
|
@@ -21,6 +21,9 @@ interface EmscriptenModule {
|
|
|
21
21
|
): WebAssembly.Exports;
|
|
22
22
|
locateFile(url: string, scriptDirectory: string): string;
|
|
23
23
|
mainScriptUrlOrBlob: Blob | File | string;
|
|
24
|
+
|
|
25
|
+
// https://github.com/kleisauke/wasm-vips/issues/12
|
|
26
|
+
workaroundCors: boolean;
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
declare module Vips {
|
|
@@ -103,9 +106,9 @@ declare module Vips {
|
|
|
103
106
|
function operationBlock(name: string, state: boolean): void;
|
|
104
107
|
|
|
105
108
|
/**
|
|
106
|
-
* Call this to
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
+
* Call this to drop caches, close plugins, terminate background threads, and finalize any internal library testing.
|
|
110
|
+
* Calling this is optional. If you don't call it, your platform will clean up for you.
|
|
111
|
+
* The only negative consequences are that the leak checker and the profiler will not work.
|
|
109
112
|
*/
|
|
110
113
|
function shutdown(): void;
|
|
111
114
|
|
|
@@ -260,23 +263,6 @@ declare module Vips {
|
|
|
260
263
|
static files(): number;
|
|
261
264
|
}
|
|
262
265
|
|
|
263
|
-
/**
|
|
264
|
-
* An abstract class for error messages and error handling.
|
|
265
|
-
*/
|
|
266
|
-
abstract class Error {
|
|
267
|
-
/**
|
|
268
|
-
* Get the error buffer as a string.
|
|
269
|
-
* @return The error buffer as a string.
|
|
270
|
-
*/
|
|
271
|
-
static buffer(): string;
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* Clear and reset the error buffer.
|
|
275
|
-
* This is typically called after presenting an error to the user.
|
|
276
|
-
*/
|
|
277
|
-
static clear(): void;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
266
|
/**
|
|
281
267
|
* Handy utilities.
|
|
282
268
|
*/
|
|
@@ -1460,7 +1446,7 @@ declare module Vips {
|
|
|
1460
1446
|
|
|
1461
1447
|
/**
|
|
1462
1448
|
* The format used for each band element.
|
|
1463
|
-
*
|
|
1449
|
+
*
|
|
1464
1450
|
* Each corresponds to a native C type for the current machine. For example,
|
|
1465
1451
|
* #VIPS_FORMAT_USHORT is <type>unsigned short</type>.
|
|
1466
1452
|
*/
|
|
@@ -1510,11 +1496,11 @@ declare module Vips {
|
|
|
1510
1496
|
/**
|
|
1511
1497
|
* The various Porter-Duff and PDF blend modes. See vips_composite(),
|
|
1512
1498
|
* for example.
|
|
1513
|
-
*
|
|
1499
|
+
*
|
|
1514
1500
|
* The Cairo docs have a nice explanation of all the blend modes:
|
|
1515
|
-
*
|
|
1501
|
+
*
|
|
1516
1502
|
* https://www.cairographics.org/operators
|
|
1517
|
-
*
|
|
1503
|
+
*
|
|
1518
1504
|
* The non-separable modes are not implemented.
|
|
1519
1505
|
*/
|
|
1520
1506
|
enum BlendMode {
|
|
@@ -1622,11 +1608,11 @@ declare module Vips {
|
|
|
1622
1608
|
|
|
1623
1609
|
/**
|
|
1624
1610
|
* How pixels are coded.
|
|
1625
|
-
*
|
|
1611
|
+
*
|
|
1626
1612
|
* Normally, pixels are uncoded and can be manipulated as you would expect.
|
|
1627
1613
|
* However some file formats code pixels for compression, and sometimes it's
|
|
1628
1614
|
* useful to be able to manipulate images in the coded format.
|
|
1629
|
-
*
|
|
1615
|
+
*
|
|
1630
1616
|
* The gaps in the numbering are historical and must be maintained. Allocate
|
|
1631
1617
|
* new numbers from the end.
|
|
1632
1618
|
*/
|
|
@@ -1649,10 +1635,10 @@ declare module Vips {
|
|
|
1649
1635
|
* How the values in an image should be interpreted. For example, a
|
|
1650
1636
|
* three-band float image of type #VIPS_INTERPRETATION_LAB should have its
|
|
1651
1637
|
* pixels interpreted as coordinates in CIE Lab space.
|
|
1652
|
-
*
|
|
1638
|
+
*
|
|
1653
1639
|
* RGB and sRGB are treated in the same way. Use the colourspace functions if
|
|
1654
1640
|
* you want some other behaviour.
|
|
1655
|
-
*
|
|
1641
|
+
*
|
|
1656
1642
|
* The gaps in numbering are historical and must be maintained. Allocate
|
|
1657
1643
|
* new numbers from the end.
|
|
1658
1644
|
*/
|
|
@@ -1738,33 +1724,33 @@ declare module Vips {
|
|
|
1738
1724
|
/**
|
|
1739
1725
|
* See vips_image_pipelinev(). Operations can hint to the VIPS image IO
|
|
1740
1726
|
* system about the kind of demand geometry they prefer.
|
|
1741
|
-
*
|
|
1727
|
+
*
|
|
1742
1728
|
* These demand styles are given below in order of increasing
|
|
1743
1729
|
* restrictiveness. When demanding output from a pipeline,
|
|
1744
1730
|
* vips_image_generate()
|
|
1745
1731
|
* will use the most restrictive of the styles requested by the operations
|
|
1746
1732
|
* in the pipeline.
|
|
1747
|
-
*
|
|
1733
|
+
*
|
|
1748
1734
|
* #VIPS_DEMAND_STYLE_THINSTRIP --- This operation would like to output strips
|
|
1749
1735
|
* the width of the image and a few pels high. This is option suitable for
|
|
1750
1736
|
* point-to-point operations, such as those in the arithmetic package.
|
|
1751
|
-
*
|
|
1737
|
+
*
|
|
1752
1738
|
* This option is only efficient for cases where each output pel depends
|
|
1753
1739
|
* upon the pel in the corresponding position in the input image.
|
|
1754
|
-
*
|
|
1740
|
+
*
|
|
1755
1741
|
* #VIPS_DEMAND_STYLE_FATSTRIP --- This operation would like to output strips
|
|
1756
1742
|
* the width of the image and as high as possible. This option is suitable
|
|
1757
1743
|
* for area operations which do not violently transform coordinates, such
|
|
1758
1744
|
* as vips_conv().
|
|
1759
|
-
*
|
|
1745
|
+
*
|
|
1760
1746
|
* #VIPS_DEMAND_STYLE_SMALLTILE --- This is the most general demand format.
|
|
1761
1747
|
* Output is demanded in small (around 100x100 pel) sections. This style works
|
|
1762
1748
|
* reasonably efficiently, even for bizzare operations like 45 degree rotate.
|
|
1763
|
-
*
|
|
1749
|
+
*
|
|
1764
1750
|
* #VIPS_DEMAND_STYLE_ANY --- This image is not being demand-read from a disc
|
|
1765
1751
|
* file (even indirectly) so any demand style is OK. It's used for things like
|
|
1766
1752
|
* vips_black() where the pixels are calculated.
|
|
1767
|
-
*
|
|
1753
|
+
*
|
|
1768
1754
|
* See also: vips_image_pipelinev().
|
|
1769
1755
|
*/
|
|
1770
1756
|
enum DemandStyle {
|
|
@@ -2007,9 +1993,9 @@ declare module Vips {
|
|
|
2007
1993
|
/**
|
|
2008
1994
|
* The type of access an operation has to supply. See vips_tilecache()
|
|
2009
1995
|
* and #VipsForeign.
|
|
2010
|
-
*
|
|
1996
|
+
*
|
|
2011
1997
|
* @VIPS_ACCESS_RANDOM means requests can come in any order.
|
|
2012
|
-
*
|
|
1998
|
+
*
|
|
2013
1999
|
* @VIPS_ACCESS_SEQUENTIAL means requests will be top-to-bottom, but with some
|
|
2014
2000
|
* amount of buffering behind the read point for small non-local accesses.
|
|
2015
2001
|
*/
|
|
@@ -2027,27 +2013,27 @@ declare module Vips {
|
|
|
2027
2013
|
|
|
2028
2014
|
/**
|
|
2029
2015
|
* See vips_embed(), vips_conv(), vips_affine() and so on.
|
|
2030
|
-
*
|
|
2016
|
+
*
|
|
2031
2017
|
* When the edges of an image are extended, you can specify
|
|
2032
2018
|
* how you want the extension done.
|
|
2033
|
-
*
|
|
2019
|
+
*
|
|
2034
2020
|
* #VIPS_EXTEND_BLACK --- new pixels are black, ie. all bits are zero.
|
|
2035
|
-
*
|
|
2021
|
+
*
|
|
2036
2022
|
* #VIPS_EXTEND_COPY --- each new pixel takes the value of the nearest edge
|
|
2037
2023
|
* pixel
|
|
2038
|
-
*
|
|
2024
|
+
*
|
|
2039
2025
|
* #VIPS_EXTEND_REPEAT --- the image is tiled to fill the new area
|
|
2040
|
-
*
|
|
2026
|
+
*
|
|
2041
2027
|
* #VIPS_EXTEND_MIRROR --- the image is reflected and tiled to reduce hash
|
|
2042
2028
|
* edges
|
|
2043
|
-
*
|
|
2029
|
+
*
|
|
2044
2030
|
* #VIPS_EXTEND_WHITE --- new pixels are white, ie. all bits are set
|
|
2045
|
-
*
|
|
2031
|
+
*
|
|
2046
2032
|
* #VIPS_EXTEND_BACKGROUND --- colour set from the @background property
|
|
2047
|
-
*
|
|
2033
|
+
*
|
|
2048
2034
|
* We have to specify the exact value of each enum member since we have to
|
|
2049
2035
|
* keep these frozen for back compat with vips7.
|
|
2050
|
-
*
|
|
2036
|
+
*
|
|
2051
2037
|
* See also: vips_embed().
|
|
2052
2038
|
*/
|
|
2053
2039
|
enum Extend {
|
|
@@ -2121,10 +2107,10 @@ declare module Vips {
|
|
|
2121
2107
|
|
|
2122
2108
|
/**
|
|
2123
2109
|
* See vips_flip(), vips_join() and so on.
|
|
2124
|
-
*
|
|
2110
|
+
*
|
|
2125
2111
|
* Operations like vips_flip() need to be told whether to flip left-right or
|
|
2126
2112
|
* top-bottom.
|
|
2127
|
-
*
|
|
2113
|
+
*
|
|
2128
2114
|
* See also: vips_flip(), vips_join().
|
|
2129
2115
|
*/
|
|
2130
2116
|
enum Direction {
|
|
@@ -2140,10 +2126,10 @@ declare module Vips {
|
|
|
2140
2126
|
|
|
2141
2127
|
/**
|
|
2142
2128
|
* See vips_join() and so on.
|
|
2143
|
-
*
|
|
2129
|
+
*
|
|
2144
2130
|
* Operations like vips_join() need to be told whether to align images on the
|
|
2145
2131
|
* low or high coordinate edge, or centre.
|
|
2146
|
-
*
|
|
2132
|
+
*
|
|
2147
2133
|
* See also: vips_join().
|
|
2148
2134
|
*/
|
|
2149
2135
|
enum Align {
|
|
@@ -2165,11 +2151,11 @@ declare module Vips {
|
|
|
2165
2151
|
* Pick the algorithm vips uses to decide image "interestingness". This is used
|
|
2166
2152
|
* by vips_smartcrop(), for example, to decide what parts of the image to
|
|
2167
2153
|
* keep.
|
|
2168
|
-
*
|
|
2154
|
+
*
|
|
2169
2155
|
* #VIPS_INTERESTING_NONE and #VIPS_INTERESTING_LOW mean the same -- the
|
|
2170
2156
|
* crop is positioned at the top or left. #VIPS_INTERESTING_HIGH positions at
|
|
2171
2157
|
* the bottom or right.
|
|
2172
|
-
*
|
|
2158
|
+
*
|
|
2173
2159
|
* See also: vips_smartcrop().
|
|
2174
2160
|
*/
|
|
2175
2161
|
enum Interesting {
|
|
@@ -2205,9 +2191,9 @@ declare module Vips {
|
|
|
2205
2191
|
|
|
2206
2192
|
/**
|
|
2207
2193
|
* See vips_rot() and so on.
|
|
2208
|
-
*
|
|
2194
|
+
*
|
|
2209
2195
|
* Fixed rotate angles.
|
|
2210
|
-
*
|
|
2196
|
+
*
|
|
2211
2197
|
* See also: vips_rot().
|
|
2212
2198
|
*/
|
|
2213
2199
|
enum Angle {
|
|
@@ -2231,9 +2217,9 @@ declare module Vips {
|
|
|
2231
2217
|
|
|
2232
2218
|
/**
|
|
2233
2219
|
* See vips_rot45() and so on.
|
|
2234
|
-
*
|
|
2220
|
+
*
|
|
2235
2221
|
* Fixed rotate angles.
|
|
2236
|
-
*
|
|
2222
|
+
*
|
|
2237
2223
|
* See also: vips_rot45().
|
|
2238
2224
|
*/
|
|
2239
2225
|
enum Angle45 {
|
|
@@ -2289,10 +2275,35 @@ declare module Vips {
|
|
|
2289
2275
|
approximate = 'approximate'
|
|
2290
2276
|
}
|
|
2291
2277
|
|
|
2278
|
+
/**
|
|
2279
|
+
* Sets the word wrapping style for vips_text() when used with a maximum
|
|
2280
|
+
* width.
|
|
2281
|
+
*
|
|
2282
|
+
* See also: vips_text().
|
|
2283
|
+
*/
|
|
2284
|
+
enum TextWrap {
|
|
2285
|
+
/**
|
|
2286
|
+
* Wrap at word boundaries
|
|
2287
|
+
*/
|
|
2288
|
+
word = 'word',
|
|
2289
|
+
/**
|
|
2290
|
+
* Wrap at character boundaries
|
|
2291
|
+
*/
|
|
2292
|
+
char = 'char',
|
|
2293
|
+
/**
|
|
2294
|
+
* Wrap at word boundaries, but fall back to character boundaries if there is not enough space for a full word
|
|
2295
|
+
*/
|
|
2296
|
+
word_char = 'word-char',
|
|
2297
|
+
/**
|
|
2298
|
+
* No wrapping
|
|
2299
|
+
*/
|
|
2300
|
+
none = 'none'
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2292
2303
|
/**
|
|
2293
2304
|
* How sensitive loaders are to errors, from never stop (very insensitive), to
|
|
2294
2305
|
* stop on the smallest warning (very sensitive).
|
|
2295
|
-
*
|
|
2306
|
+
*
|
|
2296
2307
|
* Each one implies the ones before it, so #VIPS_FAIL_ON_ERROR implies
|
|
2297
2308
|
* #VIPS_FAIL_ON_TRUNCATED.
|
|
2298
2309
|
*/
|
|
@@ -2317,14 +2328,17 @@ declare module Vips {
|
|
|
2317
2328
|
|
|
2318
2329
|
/**
|
|
2319
2330
|
* The netpbm file format to save as.
|
|
2320
|
-
*
|
|
2331
|
+
*
|
|
2321
2332
|
* #VIPS_FOREIGN_PPM_FORMAT_PBM images are single bit.
|
|
2322
|
-
*
|
|
2333
|
+
*
|
|
2323
2334
|
* #VIPS_FOREIGN_PPM_FORMAT_PGM images are 8, 16, or 32-bits, one band.
|
|
2324
|
-
*
|
|
2335
|
+
*
|
|
2325
2336
|
* #VIPS_FOREIGN_PPM_FORMAT_PPM images are 8, 16, or 32-bits, three bands.
|
|
2326
|
-
*
|
|
2337
|
+
*
|
|
2327
2338
|
* #VIPS_FOREIGN_PPM_FORMAT_PFM images are 32-bit float pixels.
|
|
2339
|
+
*
|
|
2340
|
+
* #VIPS_FOREIGN_PPM_FORMAT_PNM images are anymap images -- the image format
|
|
2341
|
+
* is used to pick the saver.
|
|
2328
2342
|
*/
|
|
2329
2343
|
enum ForeignPpmFormat {
|
|
2330
2344
|
/**
|
|
@@ -2342,7 +2356,11 @@ declare module Vips {
|
|
|
2342
2356
|
/**
|
|
2343
2357
|
* Portable float map
|
|
2344
2358
|
*/
|
|
2345
|
-
pfm = 'pfm'
|
|
2359
|
+
pfm = 'pfm',
|
|
2360
|
+
/**
|
|
2361
|
+
* Portable anymap
|
|
2362
|
+
*/
|
|
2363
|
+
pnm = 'pnm'
|
|
2346
2364
|
}
|
|
2347
2365
|
|
|
2348
2366
|
/**
|
|
@@ -2487,13 +2505,13 @@ declare module Vips {
|
|
|
2487
2505
|
|
|
2488
2506
|
/**
|
|
2489
2507
|
* The compression types supported by the tiff writer.
|
|
2490
|
-
*
|
|
2508
|
+
*
|
|
2491
2509
|
* Use @Q to set the jpeg compression level, default 75.
|
|
2492
|
-
*
|
|
2510
|
+
*
|
|
2493
2511
|
* Use @predictor to set the lzw or deflate prediction, default horizontal.
|
|
2494
|
-
*
|
|
2512
|
+
*
|
|
2495
2513
|
* Use @lossless to set WEBP lossless compression.
|
|
2496
|
-
*
|
|
2514
|
+
*
|
|
2497
2515
|
* Use @level to set webp and zstd compression level.
|
|
2498
2516
|
*/
|
|
2499
2517
|
enum ForeignTiffCompression {
|
|
@@ -2570,7 +2588,7 @@ declare module Vips {
|
|
|
2570
2588
|
|
|
2571
2589
|
/**
|
|
2572
2590
|
* The compression format to use inside a HEIF container.
|
|
2573
|
-
*
|
|
2591
|
+
*
|
|
2574
2592
|
* This is assumed to use the same numbering as %heif_compression_format.
|
|
2575
2593
|
*/
|
|
2576
2594
|
enum ForeignHeifCompression {
|
|
@@ -2592,10 +2610,38 @@ declare module Vips {
|
|
|
2592
2610
|
av1 = 'av1'
|
|
2593
2611
|
}
|
|
2594
2612
|
|
|
2613
|
+
/**
|
|
2614
|
+
* The selected encoder to use.
|
|
2615
|
+
* If libheif hasn't been compiled with the selected encoder,
|
|
2616
|
+
* we will fallback to the default encoder for the compression format.
|
|
2617
|
+
*/
|
|
2618
|
+
enum ForeignHeifEncoder {
|
|
2619
|
+
/**
|
|
2620
|
+
* Auto
|
|
2621
|
+
*/
|
|
2622
|
+
auto = 'auto',
|
|
2623
|
+
/**
|
|
2624
|
+
* Aom
|
|
2625
|
+
*/
|
|
2626
|
+
aom = 'aom',
|
|
2627
|
+
/**
|
|
2628
|
+
* RAV1E
|
|
2629
|
+
*/
|
|
2630
|
+
rav1e = 'rav1e',
|
|
2631
|
+
/**
|
|
2632
|
+
* SVT-AV1
|
|
2633
|
+
*/
|
|
2634
|
+
svt = 'svt',
|
|
2635
|
+
/**
|
|
2636
|
+
* X265
|
|
2637
|
+
*/
|
|
2638
|
+
x265 = 'x265'
|
|
2639
|
+
}
|
|
2640
|
+
|
|
2595
2641
|
/**
|
|
2596
2642
|
* Controls whether an operation should upsize, downsize, both up and
|
|
2597
2643
|
* downsize, or force a size.
|
|
2598
|
-
*
|
|
2644
|
+
*
|
|
2599
2645
|
* See also: vips_thumbnail().
|
|
2600
2646
|
*/
|
|
2601
2647
|
enum Size {
|
|
@@ -2689,7 +2735,7 @@ declare module Vips {
|
|
|
2689
2735
|
|
|
2690
2736
|
/**
|
|
2691
2737
|
* More like hit-miss, really.
|
|
2692
|
-
*
|
|
2738
|
+
*
|
|
2693
2739
|
* See also: vips_morph().
|
|
2694
2740
|
*/
|
|
2695
2741
|
enum OperationMorphology {
|
|
@@ -2705,10 +2751,10 @@ declare module Vips {
|
|
|
2705
2751
|
|
|
2706
2752
|
/**
|
|
2707
2753
|
* See vips_draw_image() and so on.
|
|
2708
|
-
*
|
|
2754
|
+
*
|
|
2709
2755
|
* Operations like vips_draw_image() need to be told how to combine images
|
|
2710
2756
|
* from two sources.
|
|
2711
|
-
*
|
|
2757
|
+
*
|
|
2712
2758
|
* See also: vips_join().
|
|
2713
2759
|
*/
|
|
2714
2760
|
enum CombineMode {
|
|
@@ -3063,11 +3109,11 @@ declare module Vips {
|
|
|
3063
3109
|
*/
|
|
3064
3110
|
static gifload(filename: string, options?: {
|
|
3065
3111
|
/**
|
|
3066
|
-
*
|
|
3112
|
+
* Number of pages to load, -1 for all.
|
|
3067
3113
|
*/
|
|
3068
3114
|
n?: number
|
|
3069
3115
|
/**
|
|
3070
|
-
*
|
|
3116
|
+
* First page to load.
|
|
3071
3117
|
*/
|
|
3072
3118
|
page?: number
|
|
3073
3119
|
/**
|
|
@@ -3096,11 +3142,11 @@ declare module Vips {
|
|
|
3096
3142
|
*/
|
|
3097
3143
|
static gifloadBuffer(buffer: Blob, options?: {
|
|
3098
3144
|
/**
|
|
3099
|
-
*
|
|
3145
|
+
* Number of pages to load, -1 for all.
|
|
3100
3146
|
*/
|
|
3101
3147
|
n?: number
|
|
3102
3148
|
/**
|
|
3103
|
-
*
|
|
3149
|
+
* First page to load.
|
|
3104
3150
|
*/
|
|
3105
3151
|
page?: number
|
|
3106
3152
|
/**
|
|
@@ -3129,11 +3175,11 @@ declare module Vips {
|
|
|
3129
3175
|
*/
|
|
3130
3176
|
static gifloadSource(source: Source, options?: {
|
|
3131
3177
|
/**
|
|
3132
|
-
*
|
|
3178
|
+
* Number of pages to load, -1 for all.
|
|
3133
3179
|
*/
|
|
3134
3180
|
n?: number
|
|
3135
3181
|
/**
|
|
3136
|
-
*
|
|
3182
|
+
* First page to load.
|
|
3137
3183
|
*/
|
|
3138
3184
|
page?: number
|
|
3139
3185
|
/**
|
|
@@ -3176,11 +3222,11 @@ declare module Vips {
|
|
|
3176
3222
|
*/
|
|
3177
3223
|
static heifload(filename: string, options?: {
|
|
3178
3224
|
/**
|
|
3179
|
-
*
|
|
3225
|
+
* First page to load.
|
|
3180
3226
|
*/
|
|
3181
3227
|
page?: number
|
|
3182
3228
|
/**
|
|
3183
|
-
*
|
|
3229
|
+
* Number of pages to load, -1 for all.
|
|
3184
3230
|
*/
|
|
3185
3231
|
n?: number
|
|
3186
3232
|
/**
|
|
@@ -3217,11 +3263,11 @@ declare module Vips {
|
|
|
3217
3263
|
*/
|
|
3218
3264
|
static heifloadBuffer(buffer: Blob, options?: {
|
|
3219
3265
|
/**
|
|
3220
|
-
*
|
|
3266
|
+
* First page to load.
|
|
3221
3267
|
*/
|
|
3222
3268
|
page?: number
|
|
3223
3269
|
/**
|
|
3224
|
-
*
|
|
3270
|
+
* Number of pages to load, -1 for all.
|
|
3225
3271
|
*/
|
|
3226
3272
|
n?: number
|
|
3227
3273
|
/**
|
|
@@ -3258,11 +3304,11 @@ declare module Vips {
|
|
|
3258
3304
|
*/
|
|
3259
3305
|
static heifloadSource(source: Source, options?: {
|
|
3260
3306
|
/**
|
|
3261
|
-
*
|
|
3307
|
+
* First page to load.
|
|
3262
3308
|
*/
|
|
3263
3309
|
page?: number
|
|
3264
3310
|
/**
|
|
3265
|
-
*
|
|
3311
|
+
* Number of pages to load, -1 for all.
|
|
3266
3312
|
*/
|
|
3267
3313
|
n?: number
|
|
3268
3314
|
/**
|
|
@@ -3614,11 +3660,11 @@ declare module Vips {
|
|
|
3614
3660
|
*/
|
|
3615
3661
|
density?: string
|
|
3616
3662
|
/**
|
|
3617
|
-
*
|
|
3663
|
+
* First page to load.
|
|
3618
3664
|
*/
|
|
3619
3665
|
page?: number
|
|
3620
3666
|
/**
|
|
3621
|
-
*
|
|
3667
|
+
* Number of pages to load, -1 for all.
|
|
3622
3668
|
*/
|
|
3623
3669
|
n?: number
|
|
3624
3670
|
/**
|
|
@@ -3651,11 +3697,11 @@ declare module Vips {
|
|
|
3651
3697
|
*/
|
|
3652
3698
|
density?: string
|
|
3653
3699
|
/**
|
|
3654
|
-
*
|
|
3700
|
+
* First page to load.
|
|
3655
3701
|
*/
|
|
3656
3702
|
page?: number
|
|
3657
3703
|
/**
|
|
3658
|
-
*
|
|
3704
|
+
* Number of pages to load, -1 for all.
|
|
3659
3705
|
*/
|
|
3660
3706
|
n?: number
|
|
3661
3707
|
/**
|
|
@@ -4121,10 +4167,6 @@ declare module Vips {
|
|
|
4121
4167
|
* @return Output image.
|
|
4122
4168
|
*/
|
|
4123
4169
|
static openslideload(filename: string, options?: {
|
|
4124
|
-
/**
|
|
4125
|
-
* Attach all associated images.
|
|
4126
|
-
*/
|
|
4127
|
-
attach_associated?: boolean
|
|
4128
4170
|
/**
|
|
4129
4171
|
* Load this level from the file.
|
|
4130
4172
|
*/
|
|
@@ -4137,6 +4179,14 @@ declare module Vips {
|
|
|
4137
4179
|
* Load this associated image.
|
|
4138
4180
|
*/
|
|
4139
4181
|
associated?: string
|
|
4182
|
+
/**
|
|
4183
|
+
* Attach all associated images.
|
|
4184
|
+
*/
|
|
4185
|
+
attach_associated?: boolean
|
|
4186
|
+
/**
|
|
4187
|
+
* Output rgb (not rgba).
|
|
4188
|
+
*/
|
|
4189
|
+
rgb?: boolean
|
|
4140
4190
|
/**
|
|
4141
4191
|
* Force open via memory.
|
|
4142
4192
|
*/
|
|
@@ -4162,10 +4212,6 @@ declare module Vips {
|
|
|
4162
4212
|
* @return Output image.
|
|
4163
4213
|
*/
|
|
4164
4214
|
static openslideloadSource(source: Source, options?: {
|
|
4165
|
-
/**
|
|
4166
|
-
* Attach all associated images.
|
|
4167
|
-
*/
|
|
4168
|
-
attach_associated?: boolean
|
|
4169
4215
|
/**
|
|
4170
4216
|
* Load this level from the file.
|
|
4171
4217
|
*/
|
|
@@ -4178,6 +4224,14 @@ declare module Vips {
|
|
|
4178
4224
|
* Load this associated image.
|
|
4179
4225
|
*/
|
|
4180
4226
|
associated?: string
|
|
4227
|
+
/**
|
|
4228
|
+
* Attach all associated images.
|
|
4229
|
+
*/
|
|
4230
|
+
attach_associated?: boolean
|
|
4231
|
+
/**
|
|
4232
|
+
* Output rgb (not rgba).
|
|
4233
|
+
*/
|
|
4234
|
+
rgb?: boolean
|
|
4181
4235
|
/**
|
|
4182
4236
|
* Force open via memory.
|
|
4183
4237
|
*/
|
|
@@ -4204,27 +4258,27 @@ declare module Vips {
|
|
|
4204
4258
|
*/
|
|
4205
4259
|
static pdfload(filename: string, options?: {
|
|
4206
4260
|
/**
|
|
4207
|
-
*
|
|
4261
|
+
* First page to load.
|
|
4208
4262
|
*/
|
|
4209
4263
|
page?: number
|
|
4210
4264
|
/**
|
|
4211
|
-
*
|
|
4265
|
+
* Number of pages to load, -1 for all.
|
|
4212
4266
|
*/
|
|
4213
4267
|
n?: number
|
|
4214
4268
|
/**
|
|
4215
|
-
*
|
|
4269
|
+
* Dpi to render at.
|
|
4216
4270
|
*/
|
|
4217
4271
|
dpi?: number
|
|
4218
4272
|
/**
|
|
4219
|
-
*
|
|
4273
|
+
* Factor to scale by.
|
|
4220
4274
|
*/
|
|
4221
4275
|
scale?: number
|
|
4222
4276
|
/**
|
|
4223
|
-
* Background
|
|
4277
|
+
* Background colour.
|
|
4224
4278
|
*/
|
|
4225
4279
|
background?: ArrayConstant
|
|
4226
4280
|
/**
|
|
4227
|
-
*
|
|
4281
|
+
* Password to decrypt with.
|
|
4228
4282
|
*/
|
|
4229
4283
|
password?: string
|
|
4230
4284
|
/**
|
|
@@ -4253,27 +4307,27 @@ declare module Vips {
|
|
|
4253
4307
|
*/
|
|
4254
4308
|
static pdfloadBuffer(buffer: Blob, options?: {
|
|
4255
4309
|
/**
|
|
4256
|
-
*
|
|
4310
|
+
* First page to load.
|
|
4257
4311
|
*/
|
|
4258
4312
|
page?: number
|
|
4259
4313
|
/**
|
|
4260
|
-
*
|
|
4314
|
+
* Number of pages to load, -1 for all.
|
|
4261
4315
|
*/
|
|
4262
4316
|
n?: number
|
|
4263
4317
|
/**
|
|
4264
|
-
*
|
|
4318
|
+
* Dpi to render at.
|
|
4265
4319
|
*/
|
|
4266
4320
|
dpi?: number
|
|
4267
4321
|
/**
|
|
4268
|
-
*
|
|
4322
|
+
* Factor to scale by.
|
|
4269
4323
|
*/
|
|
4270
4324
|
scale?: number
|
|
4271
4325
|
/**
|
|
4272
|
-
* Background
|
|
4326
|
+
* Background colour.
|
|
4273
4327
|
*/
|
|
4274
4328
|
background?: ArrayConstant
|
|
4275
4329
|
/**
|
|
4276
|
-
*
|
|
4330
|
+
* Password to decrypt with.
|
|
4277
4331
|
*/
|
|
4278
4332
|
password?: string
|
|
4279
4333
|
/**
|
|
@@ -4302,27 +4356,27 @@ declare module Vips {
|
|
|
4302
4356
|
*/
|
|
4303
4357
|
static pdfloadSource(source: Source, options?: {
|
|
4304
4358
|
/**
|
|
4305
|
-
*
|
|
4359
|
+
* First page to load.
|
|
4306
4360
|
*/
|
|
4307
4361
|
page?: number
|
|
4308
4362
|
/**
|
|
4309
|
-
*
|
|
4363
|
+
* Number of pages to load, -1 for all.
|
|
4310
4364
|
*/
|
|
4311
4365
|
n?: number
|
|
4312
4366
|
/**
|
|
4313
|
-
*
|
|
4367
|
+
* Dpi to render at.
|
|
4314
4368
|
*/
|
|
4315
4369
|
dpi?: number
|
|
4316
4370
|
/**
|
|
4317
|
-
*
|
|
4371
|
+
* Factor to scale by.
|
|
4318
4372
|
*/
|
|
4319
4373
|
scale?: number
|
|
4320
4374
|
/**
|
|
4321
|
-
* Background
|
|
4375
|
+
* Background colour.
|
|
4322
4376
|
*/
|
|
4323
4377
|
background?: ArrayConstant
|
|
4324
4378
|
/**
|
|
4325
|
-
*
|
|
4379
|
+
* Password to decrypt with.
|
|
4326
4380
|
*/
|
|
4327
4381
|
password?: string
|
|
4328
4382
|
/**
|
|
@@ -4823,17 +4877,13 @@ declare module Vips {
|
|
|
4823
4877
|
*/
|
|
4824
4878
|
align?: Align | Enum
|
|
4825
4879
|
/**
|
|
4826
|
-
*
|
|
4880
|
+
* Justify lines.
|
|
4827
4881
|
*/
|
|
4828
|
-
|
|
4882
|
+
justify?: boolean
|
|
4829
4883
|
/**
|
|
4830
4884
|
* Dpi to render at.
|
|
4831
4885
|
*/
|
|
4832
4886
|
dpi?: number
|
|
4833
|
-
/**
|
|
4834
|
-
* Justify lines.
|
|
4835
|
-
*/
|
|
4836
|
-
justify?: boolean
|
|
4837
4887
|
/**
|
|
4838
4888
|
* Line spacing.
|
|
4839
4889
|
*/
|
|
@@ -4842,6 +4892,14 @@ declare module Vips {
|
|
|
4842
4892
|
* Load this font file.
|
|
4843
4893
|
*/
|
|
4844
4894
|
fontfile?: string
|
|
4895
|
+
/**
|
|
4896
|
+
* Enable rgba output.
|
|
4897
|
+
*/
|
|
4898
|
+
rgba?: boolean
|
|
4899
|
+
/**
|
|
4900
|
+
* Wrap lines on word or character boundaries.
|
|
4901
|
+
*/
|
|
4902
|
+
wrap?: TextWrap | Enum
|
|
4845
4903
|
/**
|
|
4846
4904
|
* Dpi selected by autofit (output).
|
|
4847
4905
|
*/
|
|
@@ -5002,15 +5060,15 @@ declare module Vips {
|
|
|
5002
5060
|
*/
|
|
5003
5061
|
static tiffload(filename: string, options?: {
|
|
5004
5062
|
/**
|
|
5005
|
-
*
|
|
5063
|
+
* First page to load.
|
|
5006
5064
|
*/
|
|
5007
5065
|
page?: number
|
|
5008
5066
|
/**
|
|
5009
|
-
*
|
|
5067
|
+
* Subifd index.
|
|
5010
5068
|
*/
|
|
5011
5069
|
subifd?: number
|
|
5012
5070
|
/**
|
|
5013
|
-
*
|
|
5071
|
+
* Number of pages to load, -1 for all.
|
|
5014
5072
|
*/
|
|
5015
5073
|
n?: number
|
|
5016
5074
|
/**
|
|
@@ -5043,15 +5101,15 @@ declare module Vips {
|
|
|
5043
5101
|
*/
|
|
5044
5102
|
static tiffloadBuffer(buffer: Blob, options?: {
|
|
5045
5103
|
/**
|
|
5046
|
-
*
|
|
5104
|
+
* First page to load.
|
|
5047
5105
|
*/
|
|
5048
5106
|
page?: number
|
|
5049
5107
|
/**
|
|
5050
|
-
*
|
|
5108
|
+
* Subifd index.
|
|
5051
5109
|
*/
|
|
5052
5110
|
subifd?: number
|
|
5053
5111
|
/**
|
|
5054
|
-
*
|
|
5112
|
+
* Number of pages to load, -1 for all.
|
|
5055
5113
|
*/
|
|
5056
5114
|
n?: number
|
|
5057
5115
|
/**
|
|
@@ -5084,15 +5142,15 @@ declare module Vips {
|
|
|
5084
5142
|
*/
|
|
5085
5143
|
static tiffloadSource(source: Source, options?: {
|
|
5086
5144
|
/**
|
|
5087
|
-
*
|
|
5145
|
+
* First page to load.
|
|
5088
5146
|
*/
|
|
5089
5147
|
page?: number
|
|
5090
5148
|
/**
|
|
5091
|
-
*
|
|
5149
|
+
* Subifd index.
|
|
5092
5150
|
*/
|
|
5093
5151
|
subifd?: number
|
|
5094
5152
|
/**
|
|
5095
|
-
*
|
|
5153
|
+
* Number of pages to load, -1 for all.
|
|
5096
5154
|
*/
|
|
5097
5155
|
n?: number
|
|
5098
5156
|
/**
|
|
@@ -5223,15 +5281,15 @@ declare module Vips {
|
|
|
5223
5281
|
*/
|
|
5224
5282
|
static webpload(filename: string, options?: {
|
|
5225
5283
|
/**
|
|
5226
|
-
*
|
|
5284
|
+
* First page to load.
|
|
5227
5285
|
*/
|
|
5228
5286
|
page?: number
|
|
5229
5287
|
/**
|
|
5230
|
-
*
|
|
5288
|
+
* Number of pages to load, -1 for all.
|
|
5231
5289
|
*/
|
|
5232
5290
|
n?: number
|
|
5233
5291
|
/**
|
|
5234
|
-
*
|
|
5292
|
+
* Factor to scale by.
|
|
5235
5293
|
*/
|
|
5236
5294
|
scale?: number
|
|
5237
5295
|
/**
|
|
@@ -5260,15 +5318,15 @@ declare module Vips {
|
|
|
5260
5318
|
*/
|
|
5261
5319
|
static webploadBuffer(buffer: Blob, options?: {
|
|
5262
5320
|
/**
|
|
5263
|
-
*
|
|
5321
|
+
* First page to load.
|
|
5264
5322
|
*/
|
|
5265
5323
|
page?: number
|
|
5266
5324
|
/**
|
|
5267
|
-
*
|
|
5325
|
+
* Number of pages to load, -1 for all.
|
|
5268
5326
|
*/
|
|
5269
5327
|
n?: number
|
|
5270
5328
|
/**
|
|
5271
|
-
*
|
|
5329
|
+
* Factor to scale by.
|
|
5272
5330
|
*/
|
|
5273
5331
|
scale?: number
|
|
5274
5332
|
/**
|
|
@@ -5297,15 +5355,15 @@ declare module Vips {
|
|
|
5297
5355
|
*/
|
|
5298
5356
|
static webploadSource(source: Source, options?: {
|
|
5299
5357
|
/**
|
|
5300
|
-
*
|
|
5358
|
+
* First page to load.
|
|
5301
5359
|
*/
|
|
5302
5360
|
page?: number
|
|
5303
5361
|
/**
|
|
5304
|
-
*
|
|
5362
|
+
* Number of pages to load, -1 for all.
|
|
5305
5363
|
*/
|
|
5306
5364
|
n?: number
|
|
5307
5365
|
/**
|
|
5308
|
-
*
|
|
5366
|
+
* Factor to scale by.
|
|
5309
5367
|
*/
|
|
5310
5368
|
scale?: number
|
|
5311
5369
|
/**
|
|
@@ -6558,13 +6616,17 @@ declare module Vips {
|
|
|
6558
6616
|
*/
|
|
6559
6617
|
interframe_maxerror?: number
|
|
6560
6618
|
/**
|
|
6561
|
-
*
|
|
6619
|
+
* Reuse palette from input.
|
|
6562
6620
|
*/
|
|
6563
|
-
|
|
6621
|
+
reuse?: boolean
|
|
6564
6622
|
/**
|
|
6565
6623
|
* Maximum inter-palette error for palette reusage.
|
|
6566
6624
|
*/
|
|
6567
6625
|
interpalette_maxerror?: number
|
|
6626
|
+
/**
|
|
6627
|
+
* Generate an interlaced (progressive) gif.
|
|
6628
|
+
*/
|
|
6629
|
+
interlace?: boolean
|
|
6568
6630
|
/**
|
|
6569
6631
|
* Strip all metadata from image.
|
|
6570
6632
|
*/
|
|
@@ -6602,13 +6664,17 @@ declare module Vips {
|
|
|
6602
6664
|
*/
|
|
6603
6665
|
interframe_maxerror?: number
|
|
6604
6666
|
/**
|
|
6605
|
-
*
|
|
6667
|
+
* Reuse palette from input.
|
|
6606
6668
|
*/
|
|
6607
|
-
|
|
6669
|
+
reuse?: boolean
|
|
6608
6670
|
/**
|
|
6609
6671
|
* Maximum inter-palette error for palette reusage.
|
|
6610
6672
|
*/
|
|
6611
6673
|
interpalette_maxerror?: number
|
|
6674
|
+
/**
|
|
6675
|
+
* Generate an interlaced (progressive) gif.
|
|
6676
|
+
*/
|
|
6677
|
+
interlace?: boolean
|
|
6612
6678
|
/**
|
|
6613
6679
|
* Strip all metadata from image.
|
|
6614
6680
|
*/
|
|
@@ -6646,13 +6712,17 @@ declare module Vips {
|
|
|
6646
6712
|
*/
|
|
6647
6713
|
interframe_maxerror?: number
|
|
6648
6714
|
/**
|
|
6649
|
-
*
|
|
6715
|
+
* Reuse palette from input.
|
|
6650
6716
|
*/
|
|
6651
|
-
|
|
6717
|
+
reuse?: boolean
|
|
6652
6718
|
/**
|
|
6653
6719
|
* Maximum inter-palette error for palette reusage.
|
|
6654
6720
|
*/
|
|
6655
6721
|
interpalette_maxerror?: number
|
|
6722
|
+
/**
|
|
6723
|
+
* Generate an interlaced (progressive) gif.
|
|
6724
|
+
*/
|
|
6725
|
+
interlace?: boolean
|
|
6656
6726
|
/**
|
|
6657
6727
|
* Strip all metadata from image.
|
|
6658
6728
|
*/
|
|
@@ -6741,6 +6811,10 @@ declare module Vips {
|
|
|
6741
6811
|
* Select chroma subsample operation mode.
|
|
6742
6812
|
*/
|
|
6743
6813
|
subsample_mode?: ForeignSubsample | Enum
|
|
6814
|
+
/**
|
|
6815
|
+
* Select encoder to use.
|
|
6816
|
+
*/
|
|
6817
|
+
encoder?: ForeignHeifEncoder | Enum
|
|
6744
6818
|
/**
|
|
6745
6819
|
* Strip all metadata from image.
|
|
6746
6820
|
*/
|
|
@@ -6785,6 +6859,10 @@ declare module Vips {
|
|
|
6785
6859
|
* Select chroma subsample operation mode.
|
|
6786
6860
|
*/
|
|
6787
6861
|
subsample_mode?: ForeignSubsample | Enum
|
|
6862
|
+
/**
|
|
6863
|
+
* Select encoder to use.
|
|
6864
|
+
*/
|
|
6865
|
+
encoder?: ForeignHeifEncoder | Enum
|
|
6788
6866
|
/**
|
|
6789
6867
|
* Strip all metadata from image.
|
|
6790
6868
|
*/
|
|
@@ -6829,6 +6907,10 @@ declare module Vips {
|
|
|
6829
6907
|
* Select chroma subsample operation mode.
|
|
6830
6908
|
*/
|
|
6831
6909
|
subsample_mode?: ForeignSubsample | Enum
|
|
6910
|
+
/**
|
|
6911
|
+
* Select encoder to use.
|
|
6912
|
+
*/
|
|
6913
|
+
encoder?: ForeignHeifEncoder | Enum
|
|
6832
6914
|
/**
|
|
6833
6915
|
* Strip all metadata from image.
|
|
6834
6916
|
*/
|
|
@@ -8910,6 +8992,14 @@ declare module Vips {
|
|
|
8910
8992
|
* How to measure interestingness.
|
|
8911
8993
|
*/
|
|
8912
8994
|
interesting?: Interesting | Enum
|
|
8995
|
+
/**
|
|
8996
|
+
* Horizontal position of attention centre (output).
|
|
8997
|
+
*/
|
|
8998
|
+
attention_x?: number | undefined
|
|
8999
|
+
/**
|
|
9000
|
+
* Vertical position of attention centre (output).
|
|
9001
|
+
*/
|
|
9002
|
+
attention_y?: number | undefined
|
|
8913
9003
|
}): Image;
|
|
8914
9004
|
|
|
8915
9005
|
/**
|
|
@@ -9442,7 +9532,7 @@ declare module Vips {
|
|
|
9442
9532
|
}): void;
|
|
9443
9533
|
|
|
9444
9534
|
/**
|
|
9445
|
-
* Save
|
|
9535
|
+
* Save as webp.
|
|
9446
9536
|
* @param filename Filename to save to.
|
|
9447
9537
|
* @param options Optional options.
|
|
9448
9538
|
*/
|
|
@@ -9510,7 +9600,7 @@ declare module Vips {
|
|
|
9510
9600
|
}): void;
|
|
9511
9601
|
|
|
9512
9602
|
/**
|
|
9513
|
-
* Save
|
|
9603
|
+
* Save as webp.
|
|
9514
9604
|
* @param options Optional options.
|
|
9515
9605
|
* @return Buffer to save to.
|
|
9516
9606
|
*/
|
|
@@ -9578,7 +9668,74 @@ declare module Vips {
|
|
|
9578
9668
|
}): Uint8Array;
|
|
9579
9669
|
|
|
9580
9670
|
/**
|
|
9581
|
-
* Save image to webp
|
|
9671
|
+
* Save image to webp mime.
|
|
9672
|
+
* @param options Optional options.
|
|
9673
|
+
*/
|
|
9674
|
+
webpsaveMime(options?: {
|
|
9675
|
+
/**
|
|
9676
|
+
* Q factor.
|
|
9677
|
+
*/
|
|
9678
|
+
Q?: number
|
|
9679
|
+
/**
|
|
9680
|
+
* Enable lossless compression.
|
|
9681
|
+
*/
|
|
9682
|
+
lossless?: boolean
|
|
9683
|
+
/**
|
|
9684
|
+
* Preset for lossy compression.
|
|
9685
|
+
*/
|
|
9686
|
+
preset?: ForeignWebpPreset | Enum
|
|
9687
|
+
/**
|
|
9688
|
+
* Enable high quality chroma subsampling.
|
|
9689
|
+
*/
|
|
9690
|
+
smart_subsample?: boolean
|
|
9691
|
+
/**
|
|
9692
|
+
* Enable preprocessing in lossless mode (uses q).
|
|
9693
|
+
*/
|
|
9694
|
+
near_lossless?: boolean
|
|
9695
|
+
/**
|
|
9696
|
+
* Change alpha plane fidelity for lossy compression.
|
|
9697
|
+
*/
|
|
9698
|
+
alpha_q?: number
|
|
9699
|
+
/**
|
|
9700
|
+
* Optimise for minimum size.
|
|
9701
|
+
*/
|
|
9702
|
+
min_size?: boolean
|
|
9703
|
+
/**
|
|
9704
|
+
* Minimum number of frames between key frames.
|
|
9705
|
+
*/
|
|
9706
|
+
kmin?: number
|
|
9707
|
+
/**
|
|
9708
|
+
* Maximum number of frames between key frames.
|
|
9709
|
+
*/
|
|
9710
|
+
kmax?: number
|
|
9711
|
+
/**
|
|
9712
|
+
* Level of cpu effort to reduce file size.
|
|
9713
|
+
*/
|
|
9714
|
+
effort?: number
|
|
9715
|
+
/**
|
|
9716
|
+
* Icc profile to embed.
|
|
9717
|
+
*/
|
|
9718
|
+
profile?: string
|
|
9719
|
+
/**
|
|
9720
|
+
* Allow mixed encoding (might reduce file size).
|
|
9721
|
+
*/
|
|
9722
|
+
mixed?: boolean
|
|
9723
|
+
/**
|
|
9724
|
+
* Strip all metadata from image.
|
|
9725
|
+
*/
|
|
9726
|
+
strip?: boolean
|
|
9727
|
+
/**
|
|
9728
|
+
* Background value.
|
|
9729
|
+
*/
|
|
9730
|
+
background?: ArrayConstant
|
|
9731
|
+
/**
|
|
9732
|
+
* Set page height for multipage save.
|
|
9733
|
+
*/
|
|
9734
|
+
page_height?: number
|
|
9735
|
+
}): void;
|
|
9736
|
+
|
|
9737
|
+
/**
|
|
9738
|
+
* Save as webp.
|
|
9582
9739
|
* @param target Target to save to.
|
|
9583
9740
|
* @param options Optional options.
|
|
9584
9741
|
*/
|