wasm-vips 0.0.1 → 0.0.2

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.
@@ -9,11 +9,51 @@ declare namespace vips {
9
9
  type ArrayConstant = Array<number>;
10
10
  type ArrayImage = Array<Image> | Vector<Image>;
11
11
 
12
+ //#region Utility functions
13
+
14
+ /**
15
+ * Get the major, minor or patch version number of the libvips library.
16
+ * When the flag is omitted, the entire version number is returned as a string.
17
+ * @param flag 0 to get the major version number, 1 to get minor, 2 to get patch.
18
+ * @return The version number of libvips.
19
+ */
20
+ function version(flag?: number): string | number;
21
+
22
+ /**
23
+ * Returns a string identifying the Emscripten version used for compiling wasm-vips.
24
+ * @return The version number of Emscripten.
25
+ */
26
+ function emscriptenVersion(): string;
27
+
28
+ /**
29
+ * Get detailed information about the installation of libvips.
30
+ * @return Information about how libvips is configured.
31
+ */
32
+ function config(): string;
33
+
34
+ /**
35
+ * Gets or, when a parameter is provided, sets the number of worker threads libvips' should create to
36
+ * process each image.
37
+ * @param concurrency The number of worker threads.
38
+ * @return The number of worker threads libvips uses for image evaluation.
39
+ */
40
+ function concurrency(concurrency?: number): void | number;
41
+
42
+ /**
43
+ * Call this to shutdown libvips and the runtime of Emscripten.
44
+ * This is only needed on Node.js, as the thread pool of
45
+ * Emscripten prevents the event loop from exiting.
46
+ */
47
+ function shutdown(): void;
48
+
49
+ //#endregion
50
+
51
+ //#region APIs
52
+
12
53
  /**
13
54
  * A sequence container representing an array that can change in size.
14
55
  */
15
56
  export interface Vector<T> {
16
-
17
57
  /**
18
58
  * Adds a new element at the end of the vector, after its current last element.
19
59
  * @param val The value to be appended at the end of the container.
@@ -50,129 +90,99 @@ declare namespace vips {
50
90
  }
51
91
 
52
92
  /**
53
- * Utils class.
93
+ * A class around libvips' operation cache.
54
94
  */
55
- export class Utils {
56
- /**
57
- * Get the GType for a name.
58
- * Looks up the GType for a nickname. Types below basename in the type hierarchy are searched.
59
- * @param basename Name of base class.
60
- * @param nickname Search for a class with this nickname.
61
- * @return The GType of the class, or `0` if the class is not found.
62
- */
63
- static typeFind(basename: string, nickname: string): number;
64
-
65
- /**
66
- * Get the error buffer as a string.
67
- * @return The error buffer as a string.
68
- */
69
- static errorBuffer(): string;
70
-
71
- /**
72
- * Clear and reset the error buffer.
73
- * This is typically called after presenting an error to the user.
74
- */
75
- static clearError(): void;
76
-
77
- /**
78
- * Get the major, minor or patch version number of the vips library.
79
- * When the flag is omitted, the entire version number is returned as a string.
80
- * @param flag Optional flag; 0 to get the major version number, 1 to get minor, 2 to get patch.
81
- * @return The version number of vips.
82
- */
83
- static vipsVersion(flag?: number): string | number;
84
-
85
- /**
86
- * Get detailed information about the installation of vips.
87
- * @return Information about how vips is configured.
88
- */
89
- static vipsConfig(): string;
90
-
91
- /**
92
- * Is SIMD support with liborc enabled?
93
- * @return A boolean indicating if SIMD is enabled.
94
- */
95
- static isVectorEnabled(): boolean;
96
-
95
+ export class Cache {
97
96
  /**
98
- * Is our vips library built with lcms2?
99
- * @return A boolean indicating if ICC support is present.
97
+ * Gets or, when a parameter is provided, sets the maximum number of operations libvips keeps in cache.
98
+ * @param max Maximum number of operations.
99
+ * @return The maximum number of operations libvips keeps in cache.
100
100
  */
101
- static isIccPresent(): boolean;
101
+ static max(max?: number): void | number;
102
102
 
103
103
  /**
104
- * Set the size of the pools of worker threads vips uses for image evaluation.
105
- * @param concurrency The size of the pools of worker threads vips uses for image evaluation.
104
+ * Gets or, when a parameter is provided, sets the maximum amount of tracked memory allowed.
105
+ * @param mem Maximum amount of tracked memory.
106
+ * @return The maximum amount of tracked memory libvips allows.
106
107
  */
107
- static setConcurrency(concurrency: number): void;
108
+ static maxMem(mem?: number): void | number;
108
109
 
109
110
  /**
110
- * Get the number of worker threads that vips uses for image evaluation.
111
- * @return The number of worker threads.
111
+ * Gets or, when a parameter is provided, sets the maximum amount of tracked files allowed.
112
+ * @param maxFiles Maximum amount of tracked files.
113
+ * @return The maximum amount of tracked files libvips allows.
112
114
  */
113
- static getConcurrency(): number;
115
+ static maxFiles(maxFiles?: number): void | number;
114
116
 
115
117
  /**
116
118
  * Get the current number of operations in cache.
117
119
  * @return The current number of operations in cache.
118
120
  */
119
- static getCacheSize(): number;
121
+ static size(): number;
122
+ }
120
123
 
124
+ /**
125
+ * A class that provides the statistics of memory usage and opened files.
126
+ * libvips watches the total amount of live tracked memory and
127
+ * uses this information to decide when to trim caches.
128
+ */
129
+ export class Stats {
121
130
  /**
122
131
  * Get the number of active allocations.
123
132
  * @return The number of active allocations.
124
133
  */
125
- static getAllocations(): number;
134
+ static allocations(): number;
126
135
 
127
136
  /**
128
137
  * Get the number of bytes currently allocated `vips_malloc()` and friends.
129
- * vips uses this figure to decide when to start dropping cache.
138
+ * libvips uses this figure to decide when to start dropping cache.
130
139
  * @return The number of bytes currently allocated.
131
140
  */
132
- static getMem(): number;
141
+ static mem(): number;
133
142
 
134
143
  /**
135
144
  * Get the largest number of bytes simultaneously allocated via `vips_tracked_malloc()`.
136
145
  * Handy for estimating max memory requirements for a program.
137
146
  * @return The largest number of currently allocated bytes.
138
147
  */
139
- static getMemHighwater(): number;
140
-
141
- /**
142
- * Set the maximum number of operations vips will cache.
143
- * @param max Maximum number of operations.
144
- */
145
- static setCacheMax(max: number): void;
148
+ static memHighwater(): number;
146
149
 
147
150
  /**
148
- * Get the maximum number of operations vips keeps in cache.
149
- * @return The maximum number of operations vips keeps in cache.
151
+ * Get the number of open files.
152
+ * @return The number of open files.
150
153
  */
151
- static getCacheMax(): number;
152
-
153
- /**
154
- * Set the maximum amount of tracked memory allowed.
155
- * @param mem Maximum amount of tracked memory vips allows.
156
- */
157
- static setCacheMaxMem(mem: number): void;
154
+ static files(): number;
155
+ }
158
156
 
157
+ /**
158
+ * A class for error messages and error handling.
159
+ */
160
+ export class Error {
159
161
  /**
160
- * Get the maximum amount of tracked memory allowed.
161
- * @return The maximum amount of tracked memory vips allows.
162
+ * Get the error buffer as a string.
163
+ * @return The error buffer as a string.
162
164
  */
163
- static getCacheMaxMem(): number;
165
+ static buffer(): string;
164
166
 
165
167
  /**
166
- * Set the maximum amount of tracked files allowed.
167
- * @param maxFiles Maximum amount of open files vips allows.
168
+ * Clear and reset the error buffer.
169
+ * This is typically called after presenting an error to the user.
168
170
  */
169
- static setCacheMaxFiles(maxFiles: number): void;
171
+ static clear(): void;
172
+ }
170
173
 
174
+ /**
175
+ * Handy utilities.
176
+ */
177
+ export class Utils {
171
178
  /**
172
- * Get the maximum number of tracked files allowed.
173
- * @return The maximum amount of tracked files vips allows.
179
+ * Get the GType for a name.
180
+ * Looks up the GType for a nickname. Types below basename in the type hierarchy are searched.
181
+ * @param basename Name of base class.
182
+ * @param nickname Search for a class with this nickname.
183
+ * @return The GType of the class, or `0` if the class is not found.
174
184
  */
175
- static getCacheMaxFiles(): number;
185
+ static typeFind(basename: string, nickname: string): number;
176
186
 
177
187
  /**
178
188
  * Make a temporary file name. The format parameter is something like `"%s.jpg"`
@@ -319,14 +329,14 @@ declare namespace vips {
319
329
  export class Interpolate {
320
330
  /**
321
331
  * Look up an interpolator from a nickname and make one.
322
- * @param nickname Nickname for interpolator
332
+ * @param nickname Nickname for interpolator.
323
333
  * @return An interpolator.
324
334
  */
325
- static newFromName(nickname: string);
335
+ static newFromName(nickname: string): Interpolate;
326
336
  }
327
337
 
328
338
  /**
329
- * The VipsImage class.
339
+ * An image class.
330
340
  */
331
341
  export class Image extends ImageAutoGen {
332
342
  /**
@@ -384,7 +394,7 @@ declare namespace vips {
384
394
  */
385
395
  readonly filename: string;
386
396
 
387
- // constructors
397
+ //#region Constructor functions
388
398
 
389
399
  /**
390
400
  * Creates a new image which, when written to, will create a memory image.
@@ -404,7 +414,7 @@ declare namespace vips {
404
414
  * the environment variable `TMPDIR`. If this is not set, vips will
405
415
  * default to `/tmp`.
406
416
  *
407
- * vips uses `g_mkstemp()` to make the temporary filename. They
417
+ * libvips uses `g_mkstemp()` to make the temporary filename. They
408
418
  * generally look something like `"vips-12-EJKJFGH.v"`.
409
419
  * @param format The format for the temp file, defaults to a vips
410
420
  * format file (`"%s.v"`). The `%s` is substituted by the file path.
@@ -415,7 +425,7 @@ declare namespace vips {
415
425
  /**
416
426
  * Load an image from a file.
417
427
  *
418
- * This method can load images in any format supported by vips. The
428
+ * This method can load images in any format supported by libvips. The
419
429
  * filename can include load options, for example:
420
430
  * ```js
421
431
  * const image = vips.Image.newFromFile('fred.jpg[shrink=2]');
@@ -589,7 +599,9 @@ declare namespace vips {
589
599
  */
590
600
  copyMemory(): Image;
591
601
 
592
- // writers
602
+ //#endregion
603
+
604
+ //#region Writer functions
593
605
 
594
606
  /**
595
607
  * Write an image to another image.
@@ -604,7 +616,7 @@ declare namespace vips {
604
616
  /**
605
617
  * Write an image to a file.
606
618
  *
607
- * This method can save images in any format supported by vips. The format
619
+ * This method can save images in any format supported by libvips. The format
608
620
  * is selected from the filename suffix. The filename can include embedded
609
621
  * save options, see [[newFromFile]].
610
622
  *
@@ -633,7 +645,7 @@ declare namespace vips {
633
645
  /**
634
646
  * Write an image to a typed array of 8-bit unsigned integer values.
635
647
  *
636
- * This method can save images in any format supported by vips. The format
648
+ * This method can save images in any format supported by libvips. The format
637
649
  * is selected from the suffix in the format string. This can include
638
650
  * embedded save options, see [[newFromFile]].
639
651
  *
@@ -689,7 +701,9 @@ declare namespace vips {
689
701
  */
690
702
  writeToMemory(): Uint8Array;
691
703
 
692
- // get/set metadata
704
+ //#endregion
705
+
706
+ //#region get/set metadata
693
707
 
694
708
  /**
695
709
  * Set an integer on an image as metadata.
@@ -705,6 +719,13 @@ declare namespace vips {
705
719
  */
706
720
  setArrayInt(name: string, value: ArrayConstant): void;
707
721
 
722
+ /**
723
+ * Set an double array on an image as metadata.
724
+ * @param name The name of the piece of metadata to set the value of.
725
+ * @param value The metadata value.
726
+ */
727
+ setArrayDouble(name: string, value: ArrayConstant): void;
728
+
708
729
  /**
709
730
  * Set an double on an image as metadata.
710
731
  * @param name The name of the piece of metadata to set the value of.
@@ -757,6 +778,13 @@ declare namespace vips {
757
778
  */
758
779
  getArrayInt(name: string): number[];
759
780
 
781
+ /**
782
+ * Get an double array from an image.
783
+ * @param name The name of the piece of metadata to get.
784
+ * @return The metadata item as an double array.
785
+ */
786
+ getArrayDouble(name: string): number[];
787
+
760
788
  /**
761
789
  * Get an double from an image.
762
790
  * @param name The name of the piece of metadata to get.
@@ -791,7 +819,9 @@ declare namespace vips {
791
819
  */
792
820
  remove(name: string): string;
793
821
 
794
- // handwritten functions
822
+ //#endregion
823
+
824
+ //#region Handwritten functions
795
825
 
796
826
  /**
797
827
  * Does this image have an alpha channel?
@@ -881,6 +911,10 @@ declare namespace vips {
881
911
  */
882
912
  bandsplit(): Vector<Image>;
883
913
 
914
+ //#endregion
915
+
916
+ //#region Instance overloads
917
+
884
918
  /**
885
919
  * Append a set of images or constants bandwise
886
920
  * @param _in Array of input images.
@@ -953,6 +987,10 @@ declare namespace vips {
953
987
  premultiplied?: boolean
954
988
  }): Image;
955
989
 
990
+ //#endregion
991
+
992
+ //#region Extra utility functions
993
+
956
994
  /**
957
995
  * Return the coordinates of the image maximum.
958
996
  * @return Array of output values.
@@ -965,6 +1003,10 @@ declare namespace vips {
965
1003
  */
966
1004
  minPos(): number[];
967
1005
 
1006
+ //#endregion
1007
+
1008
+ //#region Enum overloads
1009
+
968
1010
  /**
969
1011
  * Flip an image horizontally.
970
1012
  * @return Output image.
@@ -1104,6 +1146,42 @@ declare namespace vips {
1104
1146
  */
1105
1147
  atan(): Image;
1106
1148
 
1149
+ /**
1150
+ * Return the hyperbolic sine of an image in radians.
1151
+ * @return Output image.
1152
+ */
1153
+ sinh(): Image;
1154
+
1155
+ /**
1156
+ * Return the hyperbolic cosine of an image in radians.
1157
+ * @return Output image.
1158
+ */
1159
+ cosh(): Image;
1160
+
1161
+ /**
1162
+ * Return the hyperbolic tangent of an image in radians.
1163
+ * @return Output image.
1164
+ */
1165
+ tanh(): Image;
1166
+
1167
+ /**
1168
+ * Return the inverse hyperbolic sine of an image in radians.
1169
+ * @return Output image.
1170
+ */
1171
+ asinh(): Image;
1172
+
1173
+ /**
1174
+ * Return the inverse hyperbolic cosine of an image in radians.
1175
+ * @return Output image.
1176
+ */
1177
+ acosh(): Image;
1178
+
1179
+ /**
1180
+ * Return the inverse hyperbolic tangent of an image in radians.
1181
+ * @return Output image.
1182
+ */
1183
+ atanh(): Image;
1184
+
1107
1185
  /**
1108
1186
  * Return the natural log of an image.
1109
1187
  * @return Output image.
@@ -1128,6 +1206,10 @@ declare namespace vips {
1128
1206
  */
1129
1207
  exp10(): Image;
1130
1208
 
1209
+ //#endregion
1210
+
1211
+ //#region Constant/image overloads
1212
+
1131
1213
  /**
1132
1214
  * Erode with a structuring element.
1133
1215
  * @param mask Input matrix image.
@@ -1156,6 +1238,13 @@ declare namespace vips {
1156
1238
  */
1157
1239
  wop(right: Image | ArrayConstant): Image;
1158
1240
 
1241
+ /**
1242
+ * Arc tangent of an image or constant.
1243
+ * @param right Divisor parameter.
1244
+ * @return Output image.
1245
+ */
1246
+ atan2(right: Image | ArrayConstant): Image;
1247
+
1159
1248
  /**
1160
1249
  * Performs a bitwise left shift operation (<<).
1161
1250
  * @param right Right operand.
@@ -1232,8 +1321,12 @@ declare namespace vips {
1232
1321
  * @return Output image.
1233
1322
  */
1234
1323
  notEq(right: Image | ArrayConstant): Image;
1324
+
1325
+ //#endregion
1235
1326
  }
1236
1327
 
1328
+ //#endregion
1329
+
1237
1330
  /**
1238
1331
  * The format used for each band element.
1239
1332
  *
@@ -1625,7 +1718,11 @@ declare namespace vips {
1625
1718
  /**
1626
1719
  * Pow( right, left )
1627
1720
  */
1628
- wop = 'wop'
1721
+ wop = 'wop',
1722
+ /**
1723
+ * Atan2( left, right )
1724
+ */
1725
+ atan2 = 'atan2'
1629
1726
  }
1630
1727
 
1631
1728
  /**
@@ -1681,7 +1778,31 @@ declare namespace vips {
1681
1778
  /**
1682
1779
  * 10 to the something
1683
1780
  */
1684
- exp10 = 'exp10'
1781
+ exp10 = 'exp10',
1782
+ /**
1783
+ * Sinh(), angles in radians
1784
+ */
1785
+ sinh = 'sinh',
1786
+ /**
1787
+ * Cosh(), angles in radians
1788
+ */
1789
+ cosh = 'cosh',
1790
+ /**
1791
+ * Tanh(), angles in radians
1792
+ */
1793
+ tanh = 'tanh',
1794
+ /**
1795
+ * Asinh(), angles in radians
1796
+ */
1797
+ asinh = 'asinh',
1798
+ /**
1799
+ * Acosh(), angles in radians
1800
+ */
1801
+ acosh = 'acosh',
1802
+ /**
1803
+ * Atanh(), angles in radians
1804
+ */
1805
+ atanh = 'atanh'
1685
1806
  }
1686
1807
 
1687
1808
  /**
@@ -2037,6 +2158,80 @@ declare namespace vips {
2037
2158
  approximate = 'approximate'
2038
2159
  }
2039
2160
 
2161
+ /**
2162
+ * How sensitive loaders are to errors, from never stop (very insensitive), to
2163
+ * stop on the smallest warning (very sensitive).
2164
+ *
2165
+ * Each one implies the ones before it, so #VIPS_FAIL_ON_ERROR implies
2166
+ * #VIPS_FAIL_ON_TRUNCATED.
2167
+ */
2168
+ export enum FailOn {
2169
+ /**
2170
+ * Never stop
2171
+ */
2172
+ none = 'none',
2173
+ /**
2174
+ * Stop on image truncated, nothing else
2175
+ */
2176
+ truncated = 'truncated',
2177
+ /**
2178
+ * Stop on serious error or truncation
2179
+ */
2180
+ error = 'error',
2181
+ /**
2182
+ * Stop on anything, even warnings
2183
+ */
2184
+ warning = 'warning'
2185
+ }
2186
+
2187
+ /**
2188
+ * The netpbm file format to save as.
2189
+ *
2190
+ * #VIPS_FOREIGN_PPM_FORMAT_PBM images are single bit.
2191
+ *
2192
+ * #VIPS_FOREIGN_PPM_FORMAT_PGM images are 8, 16, or 32-bits, one band.
2193
+ *
2194
+ * #VIPS_FOREIGN_PPM_FORMAT_PPM images are 8, 16, or 32-bits, three bands.
2195
+ *
2196
+ * #VIPS_FOREIGN_PPM_FORMAT_PFM images are 32-bit float pixels.
2197
+ */
2198
+ export enum ForeignPpmFormat {
2199
+ /**
2200
+ * Portable bitmap
2201
+ */
2202
+ pbm = 'pbm',
2203
+ /**
2204
+ * Portable greymap
2205
+ */
2206
+ pgm = 'pgm',
2207
+ /**
2208
+ * Portable pixmap
2209
+ */
2210
+ ppm = 'ppm',
2211
+ /**
2212
+ * Portable float map
2213
+ */
2214
+ pfm = 'pfm'
2215
+ }
2216
+
2217
+ /**
2218
+ * Set subsampling mode.
2219
+ */
2220
+ export enum ForeignSubsample {
2221
+ /**
2222
+ * Prevent subsampling when quality >= 90
2223
+ */
2224
+ auto = 'auto',
2225
+ /**
2226
+ * Always perform subsampling
2227
+ */
2228
+ on = 'on',
2229
+ /**
2230
+ * Never perform subsampling
2231
+ */
2232
+ off = 'off'
2233
+ }
2234
+
2040
2235
  /**
2041
2236
  * What directory layout and metadata standard to use.
2042
2237
  */
@@ -2054,9 +2249,13 @@ declare namespace vips {
2054
2249
  */
2055
2250
  google = 'google',
2056
2251
  /**
2057
- * Use IIIF directory layout
2252
+ * Use IIIF v2 directory layout
2253
+ */
2254
+ iiif = 'iiif',
2255
+ /**
2256
+ * Use IIIF v3 directory layout
2058
2257
  */
2059
- iiif = 'iiif'
2258
+ iiif3 = 'iiif3'
2060
2259
  }
2061
2260
 
2062
2261
  /**
@@ -2125,24 +2324,6 @@ declare namespace vips {
2125
2324
  nearest = 'nearest'
2126
2325
  }
2127
2326
 
2128
- /**
2129
- * Set jpeg subsampling mode.
2130
- */
2131
- export enum ForeignJpegSubsample {
2132
- /**
2133
- * Default preset
2134
- */
2135
- auto = 'auto',
2136
- /**
2137
- * Always perform subsampling
2138
- */
2139
- on = 'on',
2140
- /**
2141
- * Never perform subsampling
2142
- */
2143
- off = 'off'
2144
- }
2145
-
2146
2327
  /**
2147
2328
  * Tune lossy encoder settings for different image types.
2148
2329
  */
@@ -2216,12 +2397,29 @@ declare namespace vips {
2216
2397
  /**
2217
2398
  * ZSTD compression
2218
2399
  */
2219
- zstd = 'zstd'
2400
+ zstd = 'zstd',
2401
+ /**
2402
+ * JP2K compression
2403
+ */
2404
+ jp2k = 'jp2k'
2220
2405
  }
2221
2406
 
2407
+ /**
2408
+ * The predictor can help deflate and lzw compression. The values are fixed by
2409
+ * the tiff library.
2410
+ */
2222
2411
  export enum ForeignTiffPredictor {
2412
+ /**
2413
+ * No prediction
2414
+ */
2223
2415
  none = 'none',
2416
+ /**
2417
+ * Horizontal differencing
2418
+ */
2224
2419
  horizontal = 'horizontal',
2420
+ /**
2421
+ * Float predictor
2422
+ */
2225
2423
  float = 'float'
2226
2424
  }
2227
2425
 
@@ -2328,6 +2526,9 @@ declare namespace vips {
2328
2526
  * Convolve with a cubic filter.
2329
2527
  */
2330
2528
  cubic = 'cubic',
2529
+ /**
2530
+ * Convolve with a Mitchell kernel.
2531
+ */
2331
2532
  mitchell = 'mitchell',
2332
2533
  /**
2333
2534
  * Convolve with a two-lobe Lanczos kernel.
@@ -2390,53 +2591,6 @@ declare namespace vips {
2390
2591
  add = 'add'
2391
2592
  }
2392
2593
 
2393
- export enum Token {
2394
- left = 'left',
2395
- right = 'right',
2396
- string = 'string',
2397
- equals = 'equals'
2398
- }
2399
-
2400
- /**
2401
- * See also: #VipsForeignSave.
2402
- */
2403
- export enum Saveable {
2404
- /**
2405
- * 1 band (eg. CSV)
2406
- */
2407
- mono = 'mono',
2408
- /**
2409
- * 1 or 3 bands (eg. PPM)
2410
- */
2411
- rgb = 'rgb',
2412
- /**
2413
- * 1, 2, 3 or 4 bands (eg. PNG)
2414
- */
2415
- rgba = 'rgba',
2416
- /**
2417
- * 3 or 4 bands (eg. WEBP)
2418
- */
2419
- rgba_only = 'rgba-only',
2420
- /**
2421
- * 1, 3 or 4 bands (eg. JPEG)
2422
- */
2423
- rgb_cmyk = 'rgb-cmyk',
2424
- /**
2425
- * Any number of bands (eg. TIFF)
2426
- */
2427
- any = 'any'
2428
- }
2429
-
2430
- export enum ImageType {
2431
- none = 'none',
2432
- setbuf = 'setbuf',
2433
- setbuf_foreign = 'setbuf-foreign',
2434
- openin = 'openin',
2435
- mmapin = 'mmapin',
2436
- mmapinrw = 'mmapinrw',
2437
- openout = 'openout'
2438
- }
2439
-
2440
2594
  /**
2441
2595
  * http://www.w3.org/TR/PNG-Filters.html
2442
2596
  * The values mirror those of png.h in libpng.
@@ -2487,17 +2641,9 @@ declare namespace vips {
2487
2641
  */
2488
2642
  access?: Access | Enum
2489
2643
  /**
2490
- * Sequential read only.
2491
- */
2492
- sequential?: boolean
2493
- /**
2494
- * Fail on first error.
2495
- */
2496
- fail?: boolean
2497
- /**
2498
- * Open to disc.
2644
+ * Error level to fail on.
2499
2645
  */
2500
- disc?: boolean
2646
+ fail_on?: FailOn | Enum
2501
2647
  /**
2502
2648
  * Flags for this file (output).
2503
2649
  */
@@ -2607,17 +2753,9 @@ declare namespace vips {
2607
2753
  */
2608
2754
  access?: Access | Enum
2609
2755
  /**
2610
- * Sequential read only.
2611
- */
2612
- sequential?: boolean
2613
- /**
2614
- * Fail on first error.
2615
- */
2616
- fail?: boolean
2617
- /**
2618
- * Open to disc.
2756
+ * Error level to fail on.
2619
2757
  */
2620
- disc?: boolean
2758
+ fail_on?: FailOn | Enum
2621
2759
  /**
2622
2760
  * Flags for this file (output).
2623
2761
  */
@@ -2656,17 +2794,9 @@ declare namespace vips {
2656
2794
  */
2657
2795
  access?: Access | Enum
2658
2796
  /**
2659
- * Sequential read only.
2660
- */
2661
- sequential?: boolean
2662
- /**
2663
- * Fail on first error.
2664
- */
2665
- fail?: boolean
2666
- /**
2667
- * Open to disc.
2797
+ * Error level to fail on.
2668
2798
  */
2669
- disc?: boolean
2799
+ fail_on?: FailOn | Enum
2670
2800
  /**
2671
2801
  * Flags for this file (output).
2672
2802
  */
@@ -2707,17 +2837,34 @@ declare namespace vips {
2707
2837
  */
2708
2838
  access?: Access | Enum
2709
2839
  /**
2710
- * Sequential read only.
2840
+ * Error level to fail on.
2711
2841
  */
2712
- sequential?: boolean
2842
+ fail_on?: FailOn | Enum
2713
2843
  /**
2714
- * Fail on first error.
2844
+ * Flags for this file (output).
2715
2845
  */
2716
- fail?: boolean
2846
+ flags?: number | undefined
2847
+ }): Image;
2848
+
2849
+ /**
2850
+ * Load fits from a source.
2851
+ * @param source Source to load from.
2852
+ * @param options Optional options.
2853
+ * @return Output image.
2854
+ */
2855
+ static fitsloadSource(source: Source, options?: {
2856
+ /**
2857
+ * Force open via memory.
2858
+ */
2859
+ memory?: boolean
2717
2860
  /**
2718
- * Open to disc.
2861
+ * Required access pattern for this file.
2719
2862
  */
2720
- disc?: boolean
2863
+ access?: Access | Enum
2864
+ /**
2865
+ * Error level to fail on.
2866
+ */
2867
+ fail_on?: FailOn | Enum
2721
2868
  /**
2722
2869
  * Flags for this file (output).
2723
2870
  */
@@ -2745,10 +2892,6 @@ declare namespace vips {
2745
2892
  * Generate separable gaussian.
2746
2893
  */
2747
2894
  separable?: boolean
2748
- /**
2749
- * Generate integer gaussian.
2750
- */
2751
- integer?: boolean
2752
2895
  /**
2753
2896
  * Generate with this precision.
2754
2897
  */
@@ -2771,23 +2914,27 @@ declare namespace vips {
2771
2914
  * Mean of pixels in generated image.
2772
2915
  */
2773
2916
  mean?: number
2917
+ /**
2918
+ * Random number seed.
2919
+ */
2920
+ seed?: number
2774
2921
  }): Image;
2775
2922
 
2776
2923
  /**
2777
- * Load gif with giflib.
2924
+ * Load gif with libnsgif.
2778
2925
  * @param filename Filename to load from.
2779
2926
  * @param options Optional options.
2780
2927
  * @return Output image.
2781
2928
  */
2782
2929
  static gifload(filename: string, options?: {
2783
- /**
2784
- * Load this page from the file.
2785
- */
2786
- page?: number
2787
2930
  /**
2788
2931
  * Load this many pages.
2789
2932
  */
2790
2933
  n?: number
2934
+ /**
2935
+ * Load this page from the file.
2936
+ */
2937
+ page?: number
2791
2938
  /**
2792
2939
  * Force open via memory.
2793
2940
  */
@@ -2797,17 +2944,9 @@ declare namespace vips {
2797
2944
  */
2798
2945
  access?: Access | Enum
2799
2946
  /**
2800
- * Sequential read only.
2801
- */
2802
- sequential?: boolean
2803
- /**
2804
- * Fail on first error.
2805
- */
2806
- fail?: boolean
2807
- /**
2808
- * Open to disc.
2947
+ * Error level to fail on.
2809
2948
  */
2810
- disc?: boolean
2949
+ fail_on?: FailOn | Enum
2811
2950
  /**
2812
2951
  * Flags for this file (output).
2813
2952
  */
@@ -2815,20 +2954,20 @@ declare namespace vips {
2815
2954
  }): Image;
2816
2955
 
2817
2956
  /**
2818
- * Load gif with giflib.
2957
+ * Load gif with libnsgif.
2819
2958
  * @param buffer Buffer to load from.
2820
2959
  * @param options Optional options.
2821
2960
  * @return Output image.
2822
2961
  */
2823
2962
  static gifloadBuffer(buffer: Blob, options?: {
2824
- /**
2825
- * Load this page from the file.
2826
- */
2827
- page?: number
2828
2963
  /**
2829
2964
  * Load this many pages.
2830
2965
  */
2831
2966
  n?: number
2967
+ /**
2968
+ * Load this page from the file.
2969
+ */
2970
+ page?: number
2832
2971
  /**
2833
2972
  * Force open via memory.
2834
2973
  */
@@ -2838,17 +2977,9 @@ declare namespace vips {
2838
2977
  */
2839
2978
  access?: Access | Enum
2840
2979
  /**
2841
- * Sequential read only.
2980
+ * Error level to fail on.
2842
2981
  */
2843
- sequential?: boolean
2844
- /**
2845
- * Fail on first error.
2846
- */
2847
- fail?: boolean
2848
- /**
2849
- * Open to disc.
2850
- */
2851
- disc?: boolean
2982
+ fail_on?: FailOn | Enum
2852
2983
  /**
2853
2984
  * Flags for this file (output).
2854
2985
  */
@@ -2856,20 +2987,20 @@ declare namespace vips {
2856
2987
  }): Image;
2857
2988
 
2858
2989
  /**
2859
- * Load gif with giflib.
2990
+ * Load gif from source.
2860
2991
  * @param source Source to load from.
2861
2992
  * @param options Optional options.
2862
2993
  * @return Output image.
2863
2994
  */
2864
2995
  static gifloadSource(source: Source, options?: {
2865
- /**
2866
- * Load this page from the file.
2867
- */
2868
- page?: number
2869
2996
  /**
2870
2997
  * Load this many pages.
2871
2998
  */
2872
2999
  n?: number
3000
+ /**
3001
+ * Load this page from the file.
3002
+ */
3003
+ page?: number
2873
3004
  /**
2874
3005
  * Force open via memory.
2875
3006
  */
@@ -2879,17 +3010,9 @@ declare namespace vips {
2879
3010
  */
2880
3011
  access?: Access | Enum
2881
3012
  /**
2882
- * Sequential read only.
3013
+ * Error level to fail on.
2883
3014
  */
2884
- sequential?: boolean
2885
- /**
2886
- * Fail on first error.
2887
- */
2888
- fail?: boolean
2889
- /**
2890
- * Open to disc.
2891
- */
2892
- disc?: boolean
3015
+ fail_on?: FailOn | Enum
2893
3016
  /**
2894
3017
  * Flags for this file (output).
2895
3018
  */
@@ -2929,10 +3052,6 @@ declare namespace vips {
2929
3052
  * Fetch thumbnail image.
2930
3053
  */
2931
3054
  thumbnail?: boolean
2932
- /**
2933
- * Rotate image using exif orientation.
2934
- */
2935
- autorotate?: boolean
2936
3055
  /**
2937
3056
  * Force open via memory.
2938
3057
  */
@@ -2942,17 +3061,9 @@ declare namespace vips {
2942
3061
  */
2943
3062
  access?: Access | Enum
2944
3063
  /**
2945
- * Sequential read only.
2946
- */
2947
- sequential?: boolean
2948
- /**
2949
- * Fail on first error.
2950
- */
2951
- fail?: boolean
2952
- /**
2953
- * Open to disc.
3064
+ * Error level to fail on.
2954
3065
  */
2955
- disc?: boolean
3066
+ fail_on?: FailOn | Enum
2956
3067
  /**
2957
3068
  * Flags for this file (output).
2958
3069
  */
@@ -2978,10 +3089,6 @@ declare namespace vips {
2978
3089
  * Fetch thumbnail image.
2979
3090
  */
2980
3091
  thumbnail?: boolean
2981
- /**
2982
- * Rotate image using exif orientation.
2983
- */
2984
- autorotate?: boolean
2985
3092
  /**
2986
3093
  * Force open via memory.
2987
3094
  */
@@ -2991,17 +3098,9 @@ declare namespace vips {
2991
3098
  */
2992
3099
  access?: Access | Enum
2993
3100
  /**
2994
- * Sequential read only.
3101
+ * Error level to fail on.
2995
3102
  */
2996
- sequential?: boolean
2997
- /**
2998
- * Fail on first error.
2999
- */
3000
- fail?: boolean
3001
- /**
3002
- * Open to disc.
3003
- */
3004
- disc?: boolean
3103
+ fail_on?: FailOn | Enum
3005
3104
  /**
3006
3105
  * Flags for this file (output).
3007
3106
  */
@@ -3027,10 +3126,6 @@ declare namespace vips {
3027
3126
  * Fetch thumbnail image.
3028
3127
  */
3029
3128
  thumbnail?: boolean
3030
- /**
3031
- * Rotate image using exif orientation.
3032
- */
3033
- autorotate?: boolean
3034
3129
  /**
3035
3130
  * Force open via memory.
3036
3131
  */
@@ -3040,17 +3135,9 @@ declare namespace vips {
3040
3135
  */
3041
3136
  access?: Access | Enum
3042
3137
  /**
3043
- * Sequential read only.
3138
+ * Error level to fail on.
3044
3139
  */
3045
- sequential?: boolean
3046
- /**
3047
- * Fail on first error.
3048
- */
3049
- fail?: boolean
3050
- /**
3051
- * Open to disc.
3052
- */
3053
- disc?: boolean
3140
+ fail_on?: FailOn | Enum
3054
3141
  /**
3055
3142
  * Flags for this file (output).
3056
3143
  */
@@ -3077,6 +3164,93 @@ declare namespace vips {
3077
3164
  size?: number
3078
3165
  }): Image;
3079
3166
 
3167
+ /**
3168
+ * Load jpeg2000 image.
3169
+ * @param filename Filename to load from.
3170
+ * @param options Optional options.
3171
+ * @return Output image.
3172
+ */
3173
+ static jp2kload(filename: string, options?: {
3174
+ /**
3175
+ * Load this page from the image.
3176
+ */
3177
+ page?: number
3178
+ /**
3179
+ * Force open via memory.
3180
+ */
3181
+ memory?: boolean
3182
+ /**
3183
+ * Required access pattern for this file.
3184
+ */
3185
+ access?: Access | Enum
3186
+ /**
3187
+ * Error level to fail on.
3188
+ */
3189
+ fail_on?: FailOn | Enum
3190
+ /**
3191
+ * Flags for this file (output).
3192
+ */
3193
+ flags?: number | undefined
3194
+ }): Image;
3195
+
3196
+ /**
3197
+ * Load jpeg2000 image.
3198
+ * @param buffer Buffer to load from.
3199
+ * @param options Optional options.
3200
+ * @return Output image.
3201
+ */
3202
+ static jp2kloadBuffer(buffer: Blob, options?: {
3203
+ /**
3204
+ * Load this page from the image.
3205
+ */
3206
+ page?: number
3207
+ /**
3208
+ * Force open via memory.
3209
+ */
3210
+ memory?: boolean
3211
+ /**
3212
+ * Required access pattern for this file.
3213
+ */
3214
+ access?: Access | Enum
3215
+ /**
3216
+ * Error level to fail on.
3217
+ */
3218
+ fail_on?: FailOn | Enum
3219
+ /**
3220
+ * Flags for this file (output).
3221
+ */
3222
+ flags?: number | undefined
3223
+ }): Image;
3224
+
3225
+ /**
3226
+ * Load jpeg2000 image.
3227
+ * @param source Source to load from.
3228
+ * @param options Optional options.
3229
+ * @return Output image.
3230
+ */
3231
+ static jp2kloadSource(source: Source, options?: {
3232
+ /**
3233
+ * Load this page from the image.
3234
+ */
3235
+ page?: number
3236
+ /**
3237
+ * Force open via memory.
3238
+ */
3239
+ memory?: boolean
3240
+ /**
3241
+ * Required access pattern for this file.
3242
+ */
3243
+ access?: Access | Enum
3244
+ /**
3245
+ * Error level to fail on.
3246
+ */
3247
+ fail_on?: FailOn | Enum
3248
+ /**
3249
+ * Flags for this file (output).
3250
+ */
3251
+ flags?: number | undefined
3252
+ }): Image;
3253
+
3080
3254
  /**
3081
3255
  * Load jpeg from file.
3082
3256
  * @param filename Filename to load from.
@@ -3101,17 +3275,9 @@ declare namespace vips {
3101
3275
  */
3102
3276
  access?: Access | Enum
3103
3277
  /**
3104
- * Sequential read only.
3278
+ * Error level to fail on.
3105
3279
  */
3106
- sequential?: boolean
3107
- /**
3108
- * Fail on first error.
3109
- */
3110
- fail?: boolean
3111
- /**
3112
- * Open to disc.
3113
- */
3114
- disc?: boolean
3280
+ fail_on?: FailOn | Enum
3115
3281
  /**
3116
3282
  * Flags for this file (output).
3117
3283
  */
@@ -3142,17 +3308,9 @@ declare namespace vips {
3142
3308
  */
3143
3309
  access?: Access | Enum
3144
3310
  /**
3145
- * Sequential read only.
3311
+ * Error level to fail on.
3146
3312
  */
3147
- sequential?: boolean
3148
- /**
3149
- * Fail on first error.
3150
- */
3151
- fail?: boolean
3152
- /**
3153
- * Open to disc.
3154
- */
3155
- disc?: boolean
3313
+ fail_on?: FailOn | Enum
3156
3314
  /**
3157
3315
  * Flags for this file (output).
3158
3316
  */
@@ -3183,17 +3341,84 @@ declare namespace vips {
3183
3341
  */
3184
3342
  access?: Access | Enum
3185
3343
  /**
3186
- * Sequential read only.
3344
+ * Error level to fail on.
3187
3345
  */
3188
- sequential?: boolean
3346
+ fail_on?: FailOn | Enum
3189
3347
  /**
3190
- * Fail on first error.
3348
+ * Flags for this file (output).
3191
3349
  */
3192
- fail?: boolean
3350
+ flags?: number | undefined
3351
+ }): Image;
3352
+
3353
+ /**
3354
+ * Load jpeg-xl image.
3355
+ * @param filename Filename to load from.
3356
+ * @param options Optional options.
3357
+ * @return Output image.
3358
+ */
3359
+ static jxlload(filename: string, options?: {
3360
+ /**
3361
+ * Force open via memory.
3362
+ */
3363
+ memory?: boolean
3364
+ /**
3365
+ * Required access pattern for this file.
3366
+ */
3367
+ access?: Access | Enum
3193
3368
  /**
3194
- * Open to disc.
3369
+ * Error level to fail on.
3195
3370
  */
3196
- disc?: boolean
3371
+ fail_on?: FailOn | Enum
3372
+ /**
3373
+ * Flags for this file (output).
3374
+ */
3375
+ flags?: number | undefined
3376
+ }): Image;
3377
+
3378
+ /**
3379
+ * Load jpeg-xl image.
3380
+ * @param buffer Buffer to load from.
3381
+ * @param options Optional options.
3382
+ * @return Output image.
3383
+ */
3384
+ static jxlloadBuffer(buffer: Blob, options?: {
3385
+ /**
3386
+ * Force open via memory.
3387
+ */
3388
+ memory?: boolean
3389
+ /**
3390
+ * Required access pattern for this file.
3391
+ */
3392
+ access?: Access | Enum
3393
+ /**
3394
+ * Error level to fail on.
3395
+ */
3396
+ fail_on?: FailOn | Enum
3397
+ /**
3398
+ * Flags for this file (output).
3399
+ */
3400
+ flags?: number | undefined
3401
+ }): Image;
3402
+
3403
+ /**
3404
+ * Load jpeg-xl image.
3405
+ * @param source Source to load from.
3406
+ * @param options Optional options.
3407
+ * @return Output image.
3408
+ */
3409
+ static jxlloadSource(source: Source, options?: {
3410
+ /**
3411
+ * Force open via memory.
3412
+ */
3413
+ memory?: boolean
3414
+ /**
3415
+ * Required access pattern for this file.
3416
+ */
3417
+ access?: Access | Enum
3418
+ /**
3419
+ * Error level to fail on.
3420
+ */
3421
+ fail_on?: FailOn | Enum
3197
3422
  /**
3198
3423
  * Flags for this file (output).
3199
3424
  */
@@ -3202,20 +3427,16 @@ declare namespace vips {
3202
3427
 
3203
3428
  /**
3204
3429
  * Make a laplacian of gaussian image.
3205
- * @param sigma Radius of Logmatian.
3206
- * @param min_ampl Minimum amplitude of Logmatian.
3430
+ * @param sigma Radius of Gaussian.
3431
+ * @param min_ampl Minimum amplitude of Gaussian.
3207
3432
  * @param options Optional options.
3208
3433
  * @return Output image.
3209
3434
  */
3210
3435
  static logmat(sigma: number, min_ampl: number, options?: {
3211
3436
  /**
3212
- * Generate separable logmatian.
3437
+ * Generate separable gaussian.
3213
3438
  */
3214
3439
  separable?: boolean
3215
- /**
3216
- * Generate integer logmatian.
3217
- */
3218
- integer?: boolean
3219
3440
  /**
3220
3441
  * Generate with this precision.
3221
3442
  */
@@ -3229,10 +3450,6 @@ declare namespace vips {
3229
3450
  * @return Output image.
3230
3451
  */
3231
3452
  static magickload(filename: string, options?: {
3232
- /**
3233
- * Read all frames from an image.
3234
- */
3235
- all_frames?: boolean
3236
3453
  /**
3237
3454
  * Canvas resolution for rendering vector formats like svg.
3238
3455
  */
@@ -3254,17 +3471,9 @@ declare namespace vips {
3254
3471
  */
3255
3472
  access?: Access | Enum
3256
3473
  /**
3257
- * Sequential read only.
3258
- */
3259
- sequential?: boolean
3260
- /**
3261
- * Fail on first error.
3262
- */
3263
- fail?: boolean
3264
- /**
3265
- * Open to disc.
3474
+ * Error level to fail on.
3266
3475
  */
3267
- disc?: boolean
3476
+ fail_on?: FailOn | Enum
3268
3477
  /**
3269
3478
  * Flags for this file (output).
3270
3479
  */
@@ -3278,10 +3487,6 @@ declare namespace vips {
3278
3487
  * @return Output image.
3279
3488
  */
3280
3489
  static magickloadBuffer(buffer: Blob, options?: {
3281
- /**
3282
- * Read all frames from an image.
3283
- */
3284
- all_frames?: boolean
3285
3490
  /**
3286
3491
  * Canvas resolution for rendering vector formats like svg.
3287
3492
  */
@@ -3303,17 +3508,9 @@ declare namespace vips {
3303
3508
  */
3304
3509
  access?: Access | Enum
3305
3510
  /**
3306
- * Sequential read only.
3307
- */
3308
- sequential?: boolean
3309
- /**
3310
- * Fail on first error.
3511
+ * Error level to fail on.
3311
3512
  */
3312
- fail?: boolean
3313
- /**
3314
- * Open to disc.
3315
- */
3316
- disc?: boolean
3513
+ fail_on?: FailOn | Enum
3317
3514
  /**
3318
3515
  * Flags for this file (output).
3319
3516
  */
@@ -3624,17 +3821,9 @@ declare namespace vips {
3624
3821
  */
3625
3822
  access?: Access | Enum
3626
3823
  /**
3627
- * Sequential read only.
3628
- */
3629
- sequential?: boolean
3630
- /**
3631
- * Fail on first error.
3632
- */
3633
- fail?: boolean
3634
- /**
3635
- * Open to disc.
3824
+ * Error level to fail on.
3636
3825
  */
3637
- disc?: boolean
3826
+ fail_on?: FailOn | Enum
3638
3827
  /**
3639
3828
  * Flags for this file (output).
3640
3829
  */
@@ -3657,17 +3846,9 @@ declare namespace vips {
3657
3846
  */
3658
3847
  access?: Access | Enum
3659
3848
  /**
3660
- * Sequential read only.
3849
+ * Error level to fail on.
3661
3850
  */
3662
- sequential?: boolean
3663
- /**
3664
- * Fail on first error.
3665
- */
3666
- fail?: boolean
3667
- /**
3668
- * Open to disc.
3669
- */
3670
- disc?: boolean
3851
+ fail_on?: FailOn | Enum
3671
3852
  /**
3672
3853
  * Flags for this file (output).
3673
3854
  */
@@ -3690,17 +3871,9 @@ declare namespace vips {
3690
3871
  */
3691
3872
  access?: Access | Enum
3692
3873
  /**
3693
- * Sequential read only.
3694
- */
3695
- sequential?: boolean
3696
- /**
3697
- * Fail on first error.
3698
- */
3699
- fail?: boolean
3700
- /**
3701
- * Open to disc.
3874
+ * Error level to fail on.
3702
3875
  */
3703
- disc?: boolean
3876
+ fail_on?: FailOn | Enum
3704
3877
  /**
3705
3878
  * Flags for this file (output).
3706
3879
  */
@@ -3708,7 +3881,7 @@ declare namespace vips {
3708
3881
  }): Image;
3709
3882
 
3710
3883
  /**
3711
- * Load a nifti image.
3884
+ * Load nifti volume.
3712
3885
  * @param filename Filename to load from.
3713
3886
  * @param options Optional options.
3714
3887
  * @return Output image.
@@ -3723,17 +3896,34 @@ declare namespace vips {
3723
3896
  */
3724
3897
  access?: Access | Enum
3725
3898
  /**
3726
- * Sequential read only.
3899
+ * Error level to fail on.
3727
3900
  */
3728
- sequential?: boolean
3901
+ fail_on?: FailOn | Enum
3729
3902
  /**
3730
- * Fail on first error.
3903
+ * Flags for this file (output).
3731
3904
  */
3732
- fail?: boolean
3905
+ flags?: number | undefined
3906
+ }): Image;
3907
+
3908
+ /**
3909
+ * Load nifti volumes.
3910
+ * @param source Source to load from.
3911
+ * @param options Optional options.
3912
+ * @return Output image.
3913
+ */
3914
+ static niftiloadSource(source: Source, options?: {
3733
3915
  /**
3734
- * Open to disc.
3916
+ * Force open via memory.
3735
3917
  */
3736
- disc?: boolean
3918
+ memory?: boolean
3919
+ /**
3920
+ * Required access pattern for this file.
3921
+ */
3922
+ access?: Access | Enum
3923
+ /**
3924
+ * Error level to fail on.
3925
+ */
3926
+ fail_on?: FailOn | Enum
3737
3927
  /**
3738
3928
  * Flags for this file (output).
3739
3929
  */
@@ -3756,17 +3946,9 @@ declare namespace vips {
3756
3946
  */
3757
3947
  access?: Access | Enum
3758
3948
  /**
3759
- * Sequential read only.
3949
+ * Error level to fail on.
3760
3950
  */
3761
- sequential?: boolean
3762
- /**
3763
- * Fail on first error.
3764
- */
3765
- fail?: boolean
3766
- /**
3767
- * Open to disc.
3768
- */
3769
- disc?: boolean
3951
+ fail_on?: FailOn | Enum
3770
3952
  /**
3771
3953
  * Flags for this file (output).
3772
3954
  */
@@ -3781,7 +3963,7 @@ declare namespace vips {
3781
3963
  */
3782
3964
  static openslideload(filename: string, options?: {
3783
3965
  /**
3784
- * Attach all asssociated images.
3966
+ * Attach all associated images.
3785
3967
  */
3786
3968
  attach_associated?: boolean
3787
3969
  /**
@@ -3805,17 +3987,50 @@ declare namespace vips {
3805
3987
  */
3806
3988
  access?: Access | Enum
3807
3989
  /**
3808
- * Sequential read only.
3990
+ * Error level to fail on.
3809
3991
  */
3810
- sequential?: boolean
3992
+ fail_on?: FailOn | Enum
3811
3993
  /**
3812
- * Fail on first error.
3994
+ * Flags for this file (output).
3813
3995
  */
3814
- fail?: boolean
3996
+ flags?: number | undefined
3997
+ }): Image;
3998
+
3999
+ /**
4000
+ * Load source with openslide.
4001
+ * @param source Source to load from.
4002
+ * @param options Optional options.
4003
+ * @return Output image.
4004
+ */
4005
+ static openslideloadSource(source: Source, options?: {
4006
+ /**
4007
+ * Attach all associated images.
4008
+ */
4009
+ attach_associated?: boolean
3815
4010
  /**
3816
- * Open to disc.
4011
+ * Load this level from the file.
3817
4012
  */
3818
- disc?: boolean
4013
+ level?: number
4014
+ /**
4015
+ * Crop to image bounds.
4016
+ */
4017
+ autocrop?: boolean
4018
+ /**
4019
+ * Load this associated image.
4020
+ */
4021
+ associated?: string
4022
+ /**
4023
+ * Force open via memory.
4024
+ */
4025
+ memory?: boolean
4026
+ /**
4027
+ * Required access pattern for this file.
4028
+ */
4029
+ access?: Access | Enum
4030
+ /**
4031
+ * Error level to fail on.
4032
+ */
4033
+ fail_on?: FailOn | Enum
3819
4034
  /**
3820
4035
  * Flags for this file (output).
3821
4036
  */
@@ -3858,17 +4073,9 @@ declare namespace vips {
3858
4073
  */
3859
4074
  access?: Access | Enum
3860
4075
  /**
3861
- * Sequential read only.
3862
- */
3863
- sequential?: boolean
3864
- /**
3865
- * Fail on first error.
3866
- */
3867
- fail?: boolean
3868
- /**
3869
- * Open to disc.
4076
+ * Error level to fail on.
3870
4077
  */
3871
- disc?: boolean
4078
+ fail_on?: FailOn | Enum
3872
4079
  /**
3873
4080
  * Flags for this file (output).
3874
4081
  */
@@ -3911,17 +4118,9 @@ declare namespace vips {
3911
4118
  */
3912
4119
  access?: Access | Enum
3913
4120
  /**
3914
- * Sequential read only.
4121
+ * Error level to fail on.
3915
4122
  */
3916
- sequential?: boolean
3917
- /**
3918
- * Fail on first error.
3919
- */
3920
- fail?: boolean
3921
- /**
3922
- * Open to disc.
3923
- */
3924
- disc?: boolean
4123
+ fail_on?: FailOn | Enum
3925
4124
  /**
3926
4125
  * Flags for this file (output).
3927
4126
  */
@@ -3964,17 +4163,9 @@ declare namespace vips {
3964
4163
  */
3965
4164
  access?: Access | Enum
3966
4165
  /**
3967
- * Sequential read only.
3968
- */
3969
- sequential?: boolean
3970
- /**
3971
- * Fail on first error.
3972
- */
3973
- fail?: boolean
3974
- /**
3975
- * Open to disc.
4166
+ * Error level to fail on.
3976
4167
  */
3977
- disc?: boolean
4168
+ fail_on?: FailOn | Enum
3978
4169
  /**
3979
4170
  * Flags for this file (output).
3980
4171
  */
@@ -3997,6 +4188,10 @@ declare namespace vips {
3997
4188
  * Output an unsigned char image.
3998
4189
  */
3999
4190
  uchar?: boolean
4191
+ /**
4192
+ * Random number seed.
4193
+ */
4194
+ seed?: number
4000
4195
  }): Image;
4001
4196
 
4002
4197
  /**
@@ -4006,6 +4201,10 @@ declare namespace vips {
4006
4201
  * @return Output image.
4007
4202
  */
4008
4203
  static pngload(filename: string, options?: {
4204
+ /**
4205
+ * Remove all denial of service limits.
4206
+ */
4207
+ unlimited?: boolean
4009
4208
  /**
4010
4209
  * Force open via memory.
4011
4210
  */
@@ -4015,17 +4214,9 @@ declare namespace vips {
4015
4214
  */
4016
4215
  access?: Access | Enum
4017
4216
  /**
4018
- * Sequential read only.
4019
- */
4020
- sequential?: boolean
4021
- /**
4022
- * Fail on first error.
4023
- */
4024
- fail?: boolean
4025
- /**
4026
- * Open to disc.
4217
+ * Error level to fail on.
4027
4218
  */
4028
- disc?: boolean
4219
+ fail_on?: FailOn | Enum
4029
4220
  /**
4030
4221
  * Flags for this file (output).
4031
4222
  */
@@ -4039,6 +4230,10 @@ declare namespace vips {
4039
4230
  * @return Output image.
4040
4231
  */
4041
4232
  static pngloadBuffer(buffer: Blob, options?: {
4233
+ /**
4234
+ * Remove all denial of service limits.
4235
+ */
4236
+ unlimited?: boolean
4042
4237
  /**
4043
4238
  * Force open via memory.
4044
4239
  */
@@ -4048,17 +4243,9 @@ declare namespace vips {
4048
4243
  */
4049
4244
  access?: Access | Enum
4050
4245
  /**
4051
- * Sequential read only.
4052
- */
4053
- sequential?: boolean
4054
- /**
4055
- * Fail on first error.
4056
- */
4057
- fail?: boolean
4058
- /**
4059
- * Open to disc.
4246
+ * Error level to fail on.
4060
4247
  */
4061
- disc?: boolean
4248
+ fail_on?: FailOn | Enum
4062
4249
  /**
4063
4250
  * Flags for this file (output).
4064
4251
  */
@@ -4072,6 +4259,10 @@ declare namespace vips {
4072
4259
  * @return Output image.
4073
4260
  */
4074
4261
  static pngloadSource(source: Source, options?: {
4262
+ /**
4263
+ * Remove all denial of service limits.
4264
+ */
4265
+ unlimited?: boolean
4075
4266
  /**
4076
4267
  * Force open via memory.
4077
4268
  */
@@ -4081,17 +4272,9 @@ declare namespace vips {
4081
4272
  */
4082
4273
  access?: Access | Enum
4083
4274
  /**
4084
- * Sequential read only.
4275
+ * Error level to fail on.
4085
4276
  */
4086
- sequential?: boolean
4087
- /**
4088
- * Fail on first error.
4089
- */
4090
- fail?: boolean
4091
- /**
4092
- * Open to disc.
4093
- */
4094
- disc?: boolean
4277
+ fail_on?: FailOn | Enum
4095
4278
  /**
4096
4279
  * Flags for this file (output).
4097
4280
  */
@@ -4114,17 +4297,9 @@ declare namespace vips {
4114
4297
  */
4115
4298
  access?: Access | Enum
4116
4299
  /**
4117
- * Sequential read only.
4118
- */
4119
- sequential?: boolean
4120
- /**
4121
- * Fail on first error.
4122
- */
4123
- fail?: boolean
4124
- /**
4125
- * Open to disc.
4300
+ * Error level to fail on.
4126
4301
  */
4127
- disc?: boolean
4302
+ fail_on?: FailOn | Enum
4128
4303
  /**
4129
4304
  * Flags for this file (output).
4130
4305
  */
@@ -4147,17 +4322,9 @@ declare namespace vips {
4147
4322
  */
4148
4323
  access?: Access | Enum
4149
4324
  /**
4150
- * Sequential read only.
4325
+ * Error level to fail on.
4151
4326
  */
4152
- sequential?: boolean
4153
- /**
4154
- * Fail on first error.
4155
- */
4156
- fail?: boolean
4157
- /**
4158
- * Open to disc.
4159
- */
4160
- disc?: boolean
4327
+ fail_on?: FailOn | Enum
4161
4328
  /**
4162
4329
  * Flags for this file (output).
4163
4330
  */
@@ -4187,17 +4354,9 @@ declare namespace vips {
4187
4354
  */
4188
4355
  access?: Access | Enum
4189
4356
  /**
4190
- * Sequential read only.
4357
+ * Error level to fail on.
4191
4358
  */
4192
- sequential?: boolean
4193
- /**
4194
- * Fail on first error.
4195
- */
4196
- fail?: boolean
4197
- /**
4198
- * Open to disc.
4199
- */
4200
- disc?: boolean
4359
+ fail_on?: FailOn | Enum
4201
4360
  /**
4202
4361
  * Flags for this file (output).
4203
4362
  */
@@ -4220,17 +4379,9 @@ declare namespace vips {
4220
4379
  */
4221
4380
  access?: Access | Enum
4222
4381
  /**
4223
- * Sequential read only.
4382
+ * Error level to fail on.
4224
4383
  */
4225
- sequential?: boolean
4226
- /**
4227
- * Fail on first error.
4228
- */
4229
- fail?: boolean
4230
- /**
4231
- * Open to disc.
4232
- */
4233
- disc?: boolean
4384
+ fail_on?: FailOn | Enum
4234
4385
  /**
4235
4386
  * Flags for this file (output).
4236
4387
  */
@@ -4253,17 +4404,9 @@ declare namespace vips {
4253
4404
  */
4254
4405
  access?: Access | Enum
4255
4406
  /**
4256
- * Sequential read only.
4257
- */
4258
- sequential?: boolean
4259
- /**
4260
- * Fail on first error.
4261
- */
4262
- fail?: boolean
4263
- /**
4264
- * Open to disc.
4407
+ * Error level to fail on.
4265
4408
  */
4266
- disc?: boolean
4409
+ fail_on?: FailOn | Enum
4267
4410
  /**
4268
4411
  * Flags for this file (output).
4269
4412
  */
@@ -4301,17 +4444,9 @@ declare namespace vips {
4301
4444
  */
4302
4445
  access?: Access | Enum
4303
4446
  /**
4304
- * Sequential read only.
4305
- */
4306
- sequential?: boolean
4307
- /**
4308
- * Fail on first error.
4309
- */
4310
- fail?: boolean
4311
- /**
4312
- * Open to disc.
4447
+ * Error level to fail on.
4313
4448
  */
4314
- disc?: boolean
4449
+ fail_on?: FailOn | Enum
4315
4450
  /**
4316
4451
  * Flags for this file (output).
4317
4452
  */
@@ -4375,17 +4510,9 @@ declare namespace vips {
4375
4510
  */
4376
4511
  access?: Access | Enum
4377
4512
  /**
4378
- * Sequential read only.
4513
+ * Error level to fail on.
4379
4514
  */
4380
- sequential?: boolean
4381
- /**
4382
- * Fail on first error.
4383
- */
4384
- fail?: boolean
4385
- /**
4386
- * Open to disc.
4387
- */
4388
- disc?: boolean
4515
+ fail_on?: FailOn | Enum
4389
4516
  /**
4390
4517
  * Flags for this file (output).
4391
4518
  */
@@ -4420,17 +4547,9 @@ declare namespace vips {
4420
4547
  */
4421
4548
  access?: Access | Enum
4422
4549
  /**
4423
- * Sequential read only.
4424
- */
4425
- sequential?: boolean
4426
- /**
4427
- * Fail on first error.
4428
- */
4429
- fail?: boolean
4430
- /**
4431
- * Open to disc.
4550
+ * Error level to fail on.
4432
4551
  */
4433
- disc?: boolean
4552
+ fail_on?: FailOn | Enum
4434
4553
  /**
4435
4554
  * Flags for this file (output).
4436
4555
  */
@@ -4465,17 +4584,9 @@ declare namespace vips {
4465
4584
  */
4466
4585
  access?: Access | Enum
4467
4586
  /**
4468
- * Sequential read only.
4469
- */
4470
- sequential?: boolean
4471
- /**
4472
- * Fail on first error.
4473
- */
4474
- fail?: boolean
4475
- /**
4476
- * Open to disc.
4587
+ * Error level to fail on.
4477
4588
  */
4478
- disc?: boolean
4589
+ fail_on?: FailOn | Enum
4479
4590
  /**
4480
4591
  * Flags for this file (output).
4481
4592
  */
@@ -4540,6 +4651,10 @@ declare namespace vips {
4540
4651
  * Align on the low, centre or high edge.
4541
4652
  */
4542
4653
  align?: Align | Enum
4654
+ /**
4655
+ * Enable rgba output.
4656
+ */
4657
+ rgba?: boolean
4543
4658
  /**
4544
4659
  * Dpi to render at.
4545
4660
  */
@@ -4602,10 +4717,6 @@ declare namespace vips {
4602
4717
  * Rendering intent.
4603
4718
  */
4604
4719
  intent?: Intent | Enum
4605
- /**
4606
- * Use orientation tags to rotate image upright.
4607
- */
4608
- auto_rotate?: boolean
4609
4720
  }): Image;
4610
4721
 
4611
4722
  /**
@@ -4652,10 +4763,6 @@ declare namespace vips {
4652
4763
  * Rendering intent.
4653
4764
  */
4654
4765
  intent?: Intent | Enum
4655
- /**
4656
- * Use orientation tags to rotate image upright.
4657
- */
4658
- auto_rotate?: boolean
4659
4766
  }): Image;
4660
4767
 
4661
4768
  /**
@@ -4702,10 +4809,6 @@ declare namespace vips {
4702
4809
  * Rendering intent.
4703
4810
  */
4704
4811
  intent?: Intent | Enum
4705
- /**
4706
- * Use orientation tags to rotate image upright.
4707
- */
4708
- auto_rotate?: boolean
4709
4812
  }): Image;
4710
4813
 
4711
4814
  /**
@@ -4740,17 +4843,9 @@ declare namespace vips {
4740
4843
  */
4741
4844
  access?: Access | Enum
4742
4845
  /**
4743
- * Sequential read only.
4744
- */
4745
- sequential?: boolean
4746
- /**
4747
- * Fail on first error.
4846
+ * Error level to fail on.
4748
4847
  */
4749
- fail?: boolean
4750
- /**
4751
- * Open to disc.
4752
- */
4753
- disc?: boolean
4848
+ fail_on?: FailOn | Enum
4754
4849
  /**
4755
4850
  * Flags for this file (output).
4756
4851
  */
@@ -4789,17 +4884,9 @@ declare namespace vips {
4789
4884
  */
4790
4885
  access?: Access | Enum
4791
4886
  /**
4792
- * Sequential read only.
4793
- */
4794
- sequential?: boolean
4795
- /**
4796
- * Fail on first error.
4797
- */
4798
- fail?: boolean
4799
- /**
4800
- * Open to disc.
4887
+ * Error level to fail on.
4801
4888
  */
4802
- disc?: boolean
4889
+ fail_on?: FailOn | Enum
4803
4890
  /**
4804
4891
  * Flags for this file (output).
4805
4892
  */
@@ -4838,17 +4925,9 @@ declare namespace vips {
4838
4925
  */
4839
4926
  access?: Access | Enum
4840
4927
  /**
4841
- * Sequential read only.
4928
+ * Error level to fail on.
4842
4929
  */
4843
- sequential?: boolean
4844
- /**
4845
- * Fail on first error.
4846
- */
4847
- fail?: boolean
4848
- /**
4849
- * Open to disc.
4850
- */
4851
- disc?: boolean
4930
+ fail_on?: FailOn | Enum
4852
4931
  /**
4853
4932
  * Flags for this file (output).
4854
4933
  */
@@ -4919,17 +4998,34 @@ declare namespace vips {
4919
4998
  */
4920
4999
  access?: Access | Enum
4921
5000
  /**
4922
- * Sequential read only.
5001
+ * Error level to fail on.
4923
5002
  */
4924
- sequential?: boolean
5003
+ fail_on?: FailOn | Enum
4925
5004
  /**
4926
- * Fail on first error.
5005
+ * Flags for this file (output).
4927
5006
  */
4928
- fail?: boolean
5007
+ flags?: number | undefined
5008
+ }): Image;
5009
+
5010
+ /**
5011
+ * Load vips from source.
5012
+ * @param source Source to load from.
5013
+ * @param options Optional options.
5014
+ * @return Output image.
5015
+ */
5016
+ static vipsloadSource(source: Source, options?: {
5017
+ /**
5018
+ * Force open via memory.
5019
+ */
5020
+ memory?: boolean
4929
5021
  /**
4930
- * Open to disc.
5022
+ * Required access pattern for this file.
4931
5023
  */
4932
- disc?: boolean
5024
+ access?: Access | Enum
5025
+ /**
5026
+ * Error level to fail on.
5027
+ */
5028
+ fail_on?: FailOn | Enum
4933
5029
  /**
4934
5030
  * Flags for this file (output).
4935
5031
  */
@@ -4952,13 +5048,9 @@ declare namespace vips {
4952
5048
  */
4953
5049
  n?: number
4954
5050
  /**
4955
- * Scale factor on load.
4956
- */
4957
- scale?: number
4958
- /**
4959
- * Shrink factor on load.
5051
+ * Scale factor on load.
4960
5052
  */
4961
- shrink?: number
5053
+ scale?: number
4962
5054
  /**
4963
5055
  * Force open via memory.
4964
5056
  */
@@ -4968,17 +5060,9 @@ declare namespace vips {
4968
5060
  */
4969
5061
  access?: Access | Enum
4970
5062
  /**
4971
- * Sequential read only.
4972
- */
4973
- sequential?: boolean
4974
- /**
4975
- * Fail on first error.
4976
- */
4977
- fail?: boolean
4978
- /**
4979
- * Open to disc.
5063
+ * Error level to fail on.
4980
5064
  */
4981
- disc?: boolean
5065
+ fail_on?: FailOn | Enum
4982
5066
  /**
4983
5067
  * Flags for this file (output).
4984
5068
  */
@@ -5004,10 +5088,6 @@ declare namespace vips {
5004
5088
  * Scale factor on load.
5005
5089
  */
5006
5090
  scale?: number
5007
- /**
5008
- * Shrink factor on load.
5009
- */
5010
- shrink?: number
5011
5091
  /**
5012
5092
  * Force open via memory.
5013
5093
  */
@@ -5017,17 +5097,9 @@ declare namespace vips {
5017
5097
  */
5018
5098
  access?: Access | Enum
5019
5099
  /**
5020
- * Sequential read only.
5021
- */
5022
- sequential?: boolean
5023
- /**
5024
- * Fail on first error.
5025
- */
5026
- fail?: boolean
5027
- /**
5028
- * Open to disc.
5100
+ * Error level to fail on.
5029
5101
  */
5030
- disc?: boolean
5102
+ fail_on?: FailOn | Enum
5031
5103
  /**
5032
5104
  * Flags for this file (output).
5033
5105
  */
@@ -5053,10 +5125,6 @@ declare namespace vips {
5053
5125
  * Scale factor on load.
5054
5126
  */
5055
5127
  scale?: number
5056
- /**
5057
- * Shrink factor on load.
5058
- */
5059
- shrink?: number
5060
5128
  /**
5061
5129
  * Force open via memory.
5062
5130
  */
@@ -5066,17 +5134,9 @@ declare namespace vips {
5066
5134
  */
5067
5135
  access?: Access | Enum
5068
5136
  /**
5069
- * Sequential read only.
5070
- */
5071
- sequential?: boolean
5072
- /**
5073
- * Fail on first error.
5074
- */
5075
- fail?: boolean
5076
- /**
5077
- * Open to disc.
5137
+ * Error level to fail on.
5078
5138
  */
5079
- disc?: boolean
5139
+ fail_on?: FailOn | Enum
5080
5140
  /**
5081
5141
  * Flags for this file (output).
5082
5142
  */
@@ -5095,6 +5155,10 @@ declare namespace vips {
5095
5155
  * Size of worley cells.
5096
5156
  */
5097
5157
  cell_size?: number
5158
+ /**
5159
+ * Random number seed.
5160
+ */
5161
+ seed?: number
5098
5162
  }): Image;
5099
5163
 
5100
5164
  /**
@@ -5645,10 +5709,6 @@ declare namespace vips {
5645
5709
  * @return Output image.
5646
5710
  */
5647
5711
  copy(options?: {
5648
- /**
5649
- * Swap bytes in image between little and big-endian.
5650
- */
5651
- swap?: boolean
5652
5712
  /**
5653
5713
  * Image width in pixels.
5654
5714
  */
@@ -5903,10 +5963,6 @@ declare namespace vips {
5903
5963
  * @param options Optional options.
5904
5964
  */
5905
5965
  dzsave(filename: string, options?: {
5906
- /**
5907
- * Directory name to save to.
5908
- */
5909
- dirname?: string
5910
5966
  /**
5911
5967
  * Base name to save to.
5912
5968
  */
@@ -5927,14 +5983,6 @@ declare namespace vips {
5927
5983
  * Tile size in pixels.
5928
5984
  */
5929
5985
  tile_size?: number
5930
- /**
5931
- * Tile height in pixels.
5932
- */
5933
- tile_height?: number
5934
- /**
5935
- * Tile width in pixels.
5936
- */
5937
- tile_width?: number
5938
5986
  /**
5939
5987
  * Center image in tile.
5940
5988
  */
@@ -5995,10 +6043,6 @@ declare namespace vips {
5995
6043
  * @return Buffer to save to.
5996
6044
  */
5997
6045
  dzsaveBuffer(options?: {
5998
- /**
5999
- * Directory name to save to.
6000
- */
6001
- dirname?: string
6002
6046
  /**
6003
6047
  * Base name to save to.
6004
6048
  */
@@ -6019,14 +6063,6 @@ declare namespace vips {
6019
6063
  * Tile size in pixels.
6020
6064
  */
6021
6065
  tile_size?: number
6022
- /**
6023
- * Tile height in pixels.
6024
- */
6025
- tile_height?: number
6026
- /**
6027
- * Tile width in pixels.
6028
- */
6029
- tile_width?: number
6030
6066
  /**
6031
6067
  * Center image in tile.
6032
6068
  */
@@ -6248,6 +6284,102 @@ declare namespace vips {
6248
6284
  */
6249
6285
  getpoint(x: number, y: number): number[];
6250
6286
 
6287
+ /**
6288
+ * Save as gif.
6289
+ * @param filename Filename to save to.
6290
+ * @param options Optional options.
6291
+ */
6292
+ gifsave(filename: string, options?: {
6293
+ /**
6294
+ * Amount of dithering.
6295
+ */
6296
+ dither?: number
6297
+ /**
6298
+ * Quantisation effort.
6299
+ */
6300
+ effort?: number
6301
+ /**
6302
+ * Number of bits per pixel.
6303
+ */
6304
+ bitdepth?: number
6305
+ /**
6306
+ * Strip all metadata from image.
6307
+ */
6308
+ strip?: boolean
6309
+ /**
6310
+ * Background value.
6311
+ */
6312
+ background?: ArrayConstant
6313
+ /**
6314
+ * Set page height for multipage save.
6315
+ */
6316
+ page_height?: number
6317
+ }): void;
6318
+
6319
+ /**
6320
+ * Save as gif.
6321
+ * @param options Optional options.
6322
+ * @return Buffer to save to.
6323
+ */
6324
+ gifsaveBuffer(options?: {
6325
+ /**
6326
+ * Amount of dithering.
6327
+ */
6328
+ dither?: number
6329
+ /**
6330
+ * Quantisation effort.
6331
+ */
6332
+ effort?: number
6333
+ /**
6334
+ * Number of bits per pixel.
6335
+ */
6336
+ bitdepth?: number
6337
+ /**
6338
+ * Strip all metadata from image.
6339
+ */
6340
+ strip?: boolean
6341
+ /**
6342
+ * Background value.
6343
+ */
6344
+ background?: ArrayConstant
6345
+ /**
6346
+ * Set page height for multipage save.
6347
+ */
6348
+ page_height?: number
6349
+ }): Uint8Array;
6350
+
6351
+ /**
6352
+ * Save as gif.
6353
+ * @param target Target to save to.
6354
+ * @param options Optional options.
6355
+ */
6356
+ gifsaveTarget(target: Target, options?: {
6357
+ /**
6358
+ * Amount of dithering.
6359
+ */
6360
+ dither?: number
6361
+ /**
6362
+ * Quantisation effort.
6363
+ */
6364
+ effort?: number
6365
+ /**
6366
+ * Number of bits per pixel.
6367
+ */
6368
+ bitdepth?: number
6369
+ /**
6370
+ * Strip all metadata from image.
6371
+ */
6372
+ strip?: boolean
6373
+ /**
6374
+ * Background value.
6375
+ */
6376
+ background?: ArrayConstant
6377
+ /**
6378
+ * Set page height for multipage save.
6379
+ */
6380
+ page_height?: number
6381
+ }): void;
6382
+
6251
6383
  /**
6252
6384
  * Global balance an image mosaic.
6253
6385
  * @param options Optional options.
@@ -6294,7 +6426,7 @@ declare namespace vips {
6294
6426
 
6295
6427
  /**
6296
6428
  * Save image in heif format.
6297
- * @param filename Filename to load from.
6429
+ * @param filename Filename to save to.
6298
6430
  * @param options Optional options.
6299
6431
  */
6300
6432
  heifsave(filename: string, options?: {
@@ -6310,6 +6442,14 @@ declare namespace vips {
6310
6442
  * Compression format.
6311
6443
  */
6312
6444
  compression?: ForeignHeifCompression | Enum
6445
+ /**
6446
+ * Cpu effort.
6447
+ */
6448
+ effort?: number
6449
+ /**
6450
+ * Select chroma subsample operation mode.
6451
+ */
6452
+ subsample_mode?: ForeignSubsample | Enum
6313
6453
  /**
6314
6454
  * Strip all metadata from image.
6315
6455
  */
@@ -6342,6 +6482,14 @@ declare namespace vips {
6342
6482
  * Compression format.
6343
6483
  */
6344
6484
  compression?: ForeignHeifCompression | Enum
6485
+ /**
6486
+ * Cpu effort.
6487
+ */
6488
+ effort?: number
6489
+ /**
6490
+ * Select chroma subsample operation mode.
6491
+ */
6492
+ subsample_mode?: ForeignSubsample | Enum
6345
6493
  /**
6346
6494
  * Strip all metadata from image.
6347
6495
  */
@@ -6374,6 +6522,14 @@ declare namespace vips {
6374
6522
  * Compression format.
6375
6523
  */
6376
6524
  compression?: ForeignHeifCompression | Enum
6525
+ /**
6526
+ * Cpu effort.
6527
+ */
6528
+ effort?: number
6529
+ /**
6530
+ * Select chroma subsample operation mode.
6531
+ */
6532
+ subsample_mode?: ForeignSubsample | Enum
6377
6533
  /**
6378
6534
  * Strip all metadata from image.
6379
6535
  */
@@ -6538,6 +6694,10 @@ declare namespace vips {
6538
6694
  * Rendering intent.
6539
6695
  */
6540
6696
  intent?: Intent | Enum
6697
+ /**
6698
+ * Enable black point compensation.
6699
+ */
6700
+ black_point_compensation?: boolean
6541
6701
  /**
6542
6702
  * Filename to load output profile from.
6543
6703
  */
@@ -6562,6 +6722,10 @@ declare namespace vips {
6562
6722
  * Rendering intent.
6563
6723
  */
6564
6724
  intent?: Intent | Enum
6725
+ /**
6726
+ * Enable black point compensation.
6727
+ */
6728
+ black_point_compensation?: boolean
6565
6729
  /**
6566
6730
  * Use embedded input profile, if available.
6567
6731
  */
@@ -6587,6 +6751,10 @@ declare namespace vips {
6587
6751
  * Rendering intent.
6588
6752
  */
6589
6753
  intent?: Intent | Enum
6754
+ /**
6755
+ * Enable black point compensation.
6756
+ */
6757
+ black_point_compensation?: boolean
6590
6758
  /**
6591
6759
  * Use embedded input profile, if available.
6592
6760
  */
@@ -6661,34 +6829,154 @@ declare namespace vips {
6661
6829
  /**
6662
6830
  * Output only the real part of the transform.
6663
6831
  */
6664
- real?: boolean
6665
- }): Image;
6832
+ real?: boolean
6833
+ }): Image;
6834
+
6835
+ /**
6836
+ * Join a pair of images.
6837
+ * @param in2 Second input image.
6838
+ * @param direction Join left-right or up-down.
6839
+ * @param options Optional options.
6840
+ * @return Output image.
6841
+ */
6842
+ join(in2: Image | ArrayConstant, direction: Direction | Enum, options?: {
6843
+ /**
6844
+ * Expand output to hold all of both inputs.
6845
+ */
6846
+ expand?: boolean
6847
+ /**
6848
+ * Pixels between images.
6849
+ */
6850
+ shim?: number
6851
+ /**
6852
+ * Colour for new pixels.
6853
+ */
6854
+ background?: ArrayConstant
6855
+ /**
6856
+ * Align on the low, centre or high coordinate edge.
6857
+ */
6858
+ align?: Align | Enum
6859
+ }): Image;
6860
+
6861
+ /**
6862
+ * Save image in jpeg2000 format.
6863
+ * @param filename Filename to load from.
6864
+ * @param options Optional options.
6865
+ */
6866
+ jp2ksave(filename: string, options?: {
6867
+ /**
6868
+ * Tile width in pixels.
6869
+ */
6870
+ tile_width?: number
6871
+ /**
6872
+ * Tile height in pixels.
6873
+ */
6874
+ tile_height?: number
6875
+ /**
6876
+ * Enable lossless compression.
6877
+ */
6878
+ lossless?: boolean
6879
+ /**
6880
+ * Q factor.
6881
+ */
6882
+ Q?: number
6883
+ /**
6884
+ * Select chroma subsample operation mode.
6885
+ */
6886
+ subsample_mode?: ForeignSubsample | Enum
6887
+ /**
6888
+ * Strip all metadata from image.
6889
+ */
6890
+ strip?: boolean
6891
+ /**
6892
+ * Background value.
6893
+ */
6894
+ background?: ArrayConstant
6895
+ /**
6896
+ * Set page height for multipage save.
6897
+ */
6898
+ page_height?: number
6899
+ }): void;
6900
+
6901
+ /**
6902
+ * Save image in jpeg2000 format.
6903
+ * @param options Optional options.
6904
+ * @return Buffer to save to.
6905
+ */
6906
+ jp2ksaveBuffer(options?: {
6907
+ /**
6908
+ * Tile width in pixels.
6909
+ */
6910
+ tile_width?: number
6911
+ /**
6912
+ * Tile height in pixels.
6913
+ */
6914
+ tile_height?: number
6915
+ /**
6916
+ * Enable lossless compression.
6917
+ */
6918
+ lossless?: boolean
6919
+ /**
6920
+ * Q factor.
6921
+ */
6922
+ Q?: number
6923
+ /**
6924
+ * Select chroma subsample operation mode.
6925
+ */
6926
+ subsample_mode?: ForeignSubsample | Enum
6927
+ /**
6928
+ * Strip all metadata from image.
6929
+ */
6930
+ strip?: boolean
6931
+ /**
6932
+ * Background value.
6933
+ */
6934
+ background?: ArrayConstant
6935
+ /**
6936
+ * Set page height for multipage save.
6937
+ */
6938
+ page_height?: number
6939
+ }): Uint8Array;
6666
6940
 
6667
6941
  /**
6668
- * Join a pair of images.
6669
- * @param in2 Second input image.
6670
- * @param direction Join left-right or up-down.
6942
+ * Save image in jpeg2000 format.
6943
+ * @param target Target to save to.
6671
6944
  * @param options Optional options.
6672
- * @return Output image.
6673
6945
  */
6674
- join(in2: Image | ArrayConstant, direction: Direction | Enum, options?: {
6946
+ jp2ksaveTarget(target: Target, options?: {
6675
6947
  /**
6676
- * Expand output to hold all of both inputs.
6948
+ * Tile width in pixels.
6677
6949
  */
6678
- expand?: boolean
6950
+ tile_width?: number
6679
6951
  /**
6680
- * Pixels between images.
6952
+ * Tile height in pixels.
6681
6953
  */
6682
- shim?: number
6954
+ tile_height?: number
6683
6955
  /**
6684
- * Colour for new pixels.
6956
+ * Enable lossless compression.
6957
+ */
6958
+ lossless?: boolean
6959
+ /**
6960
+ * Q factor.
6961
+ */
6962
+ Q?: number
6963
+ /**
6964
+ * Select chroma subsample operation mode.
6965
+ */
6966
+ subsample_mode?: ForeignSubsample | Enum
6967
+ /**
6968
+ * Strip all metadata from image.
6969
+ */
6970
+ strip?: boolean
6971
+ /**
6972
+ * Background value.
6685
6973
  */
6686
6974
  background?: ArrayConstant
6687
6975
  /**
6688
- * Align on the low, centre or high coordinate edge.
6976
+ * Set page height for multipage save.
6689
6977
  */
6690
- align?: Align | Enum
6691
- }): Image;
6978
+ page_height?: number
6979
+ }): void;
6692
6980
 
6693
6981
  /**
6694
6982
  * Save image to jpeg file.
@@ -6712,10 +7000,6 @@ declare namespace vips {
6712
7000
  * Generate an interlaced (progressive) jpeg.
6713
7001
  */
6714
7002
  interlace?: boolean
6715
- /**
6716
- * Disable chroma subsample.
6717
- */
6718
- no_subsample?: boolean
6719
7003
  /**
6720
7004
  * Apply trellis quantisation to each 8x8 block.
6721
7005
  */
@@ -6735,7 +7019,11 @@ declare namespace vips {
6735
7019
  /**
6736
7020
  * Select chroma subsample operation mode.
6737
7021
  */
6738
- subsample_mode?: ForeignJpegSubsample | Enum
7022
+ subsample_mode?: ForeignSubsample | Enum
7023
+ /**
7024
+ * Add restart markers every specified number of mcu.
7025
+ */
7026
+ restart_interval?: number
6739
7027
  /**
6740
7028
  * Strip all metadata from image.
6741
7029
  */
@@ -6772,10 +7060,6 @@ declare namespace vips {
6772
7060
  * Generate an interlaced (progressive) jpeg.
6773
7061
  */
6774
7062
  interlace?: boolean
6775
- /**
6776
- * Disable chroma subsample.
6777
- */
6778
- no_subsample?: boolean
6779
7063
  /**
6780
7064
  * Apply trellis quantisation to each 8x8 block.
6781
7065
  */
@@ -6795,7 +7079,11 @@ declare namespace vips {
6795
7079
  /**
6796
7080
  * Select chroma subsample operation mode.
6797
7081
  */
6798
- subsample_mode?: ForeignJpegSubsample | Enum
7082
+ subsample_mode?: ForeignSubsample | Enum
7083
+ /**
7084
+ * Add restart markers every specified number of mcu.
7085
+ */
7086
+ restart_interval?: number
6799
7087
  /**
6800
7088
  * Strip all metadata from image.
6801
7089
  */
@@ -6831,10 +7119,6 @@ declare namespace vips {
6831
7119
  * Generate an interlaced (progressive) jpeg.
6832
7120
  */
6833
7121
  interlace?: boolean
6834
- /**
6835
- * Disable chroma subsample.
6836
- */
6837
- no_subsample?: boolean
6838
7122
  /**
6839
7123
  * Apply trellis quantisation to each 8x8 block.
6840
7124
  */
@@ -6854,7 +7138,11 @@ declare namespace vips {
6854
7138
  /**
6855
7139
  * Select chroma subsample operation mode.
6856
7140
  */
6857
- subsample_mode?: ForeignJpegSubsample | Enum
7141
+ subsample_mode?: ForeignSubsample | Enum
7142
+ /**
7143
+ * Add restart markers every specified number of mcu.
7144
+ */
7145
+ restart_interval?: number
6858
7146
  /**
6859
7147
  * Strip all metadata from image.
6860
7148
  */
@@ -6891,10 +7179,6 @@ declare namespace vips {
6891
7179
  * Generate an interlaced (progressive) jpeg.
6892
7180
  */
6893
7181
  interlace?: boolean
6894
- /**
6895
- * Disable chroma subsample.
6896
- */
6897
- no_subsample?: boolean
6898
7182
  /**
6899
7183
  * Apply trellis quantisation to each 8x8 block.
6900
7184
  */
@@ -6914,7 +7198,131 @@ declare namespace vips {
6914
7198
  /**
6915
7199
  * Select chroma subsample operation mode.
6916
7200
  */
6917
- subsample_mode?: ForeignJpegSubsample | Enum
7201
+ subsample_mode?: ForeignSubsample | Enum
7202
+ /**
7203
+ * Add restart markers every specified number of mcu.
7204
+ */
7205
+ restart_interval?: number
7206
+ /**
7207
+ * Strip all metadata from image.
7208
+ */
7209
+ strip?: boolean
7210
+ /**
7211
+ * Background value.
7212
+ */
7213
+ background?: ArrayConstant
7214
+ /**
7215
+ * Set page height for multipage save.
7216
+ */
7217
+ page_height?: number
7218
+ }): void;
7219
+
7220
+ /**
7221
+ * Save image in jpeg-xl format.
7222
+ * @param filename Filename to load from.
7223
+ * @param options Optional options.
7224
+ */
7225
+ jxlsave(filename: string, options?: {
7226
+ /**
7227
+ * Decode speed tier.
7228
+ */
7229
+ tier?: number
7230
+ /**
7231
+ * Target butteraugli distance.
7232
+ */
7233
+ distance?: number
7234
+ /**
7235
+ * Encoding effort.
7236
+ */
7237
+ effort?: number
7238
+ /**
7239
+ * Enable lossless compression.
7240
+ */
7241
+ lossless?: boolean
7242
+ /**
7243
+ * Quality factor.
7244
+ */
7245
+ Q?: number
7246
+ /**
7247
+ * Strip all metadata from image.
7248
+ */
7249
+ strip?: boolean
7250
+ /**
7251
+ * Background value.
7252
+ */
7253
+ background?: ArrayConstant
7254
+ /**
7255
+ * Set page height for multipage save.
7256
+ */
7257
+ page_height?: number
7258
+ }): void;
7259
+
7260
+ /**
7261
+ * Save image in jpeg-xl format.
7262
+ * @param options Optional options.
7263
+ * @return Buffer to save to.
7264
+ */
7265
+ jxlsaveBuffer(options?: {
7266
+ /**
7267
+ * Decode speed tier.
7268
+ */
7269
+ tier?: number
7270
+ /**
7271
+ * Target butteraugli distance.
7272
+ */
7273
+ distance?: number
7274
+ /**
7275
+ * Encoding effort.
7276
+ */
7277
+ effort?: number
7278
+ /**
7279
+ * Enable lossless compression.
7280
+ */
7281
+ lossless?: boolean
7282
+ /**
7283
+ * Quality factor.
7284
+ */
7285
+ Q?: number
7286
+ /**
7287
+ * Strip all metadata from image.
7288
+ */
7289
+ strip?: boolean
7290
+ /**
7291
+ * Background value.
7292
+ */
7293
+ background?: ArrayConstant
7294
+ /**
7295
+ * Set page height for multipage save.
7296
+ */
7297
+ page_height?: number
7298
+ }): Uint8Array;
7299
+
7300
+ /**
7301
+ * Save image in jpeg-xl format.
7302
+ * @param target Target to save to.
7303
+ * @param options Optional options.
7304
+ */
7305
+ jxlsaveTarget(target: Target, options?: {
7306
+ /**
7307
+ * Decode speed tier.
7308
+ */
7309
+ tier?: number
7310
+ /**
7311
+ * Target butteraugli distance.
7312
+ */
7313
+ distance?: number
7314
+ /**
7315
+ * Encoding effort.
7316
+ */
7317
+ effort?: number
7318
+ /**
7319
+ * Enable lossless compression.
7320
+ */
7321
+ lossless?: boolean
7322
+ /**
7323
+ * Quality factor.
7324
+ */
7325
+ Q?: number
6918
7326
  /**
6919
7327
  * Strip all metadata from image.
6920
7328
  */
@@ -7479,10 +7887,6 @@ declare namespace vips {
7479
7887
  * Quantise to 8bpp palette.
7480
7888
  */
7481
7889
  palette?: boolean
7482
- /**
7483
- * Max number of palette colours.
7484
- */
7485
- colours?: number
7486
7890
  /**
7487
7891
  * Quantisation quality.
7488
7892
  */
@@ -7492,9 +7896,13 @@ declare namespace vips {
7492
7896
  */
7493
7897
  dither?: number
7494
7898
  /**
7495
- * Write as a 1, 2, 4 or 8 bit image.
7899
+ * Write as a 1, 2, 4, 8 or 16 bit image.
7496
7900
  */
7497
7901
  bitdepth?: number
7902
+ /**
7903
+ * Quantisation cpu effort.
7904
+ */
7905
+ effort?: number
7498
7906
  /**
7499
7907
  * Strip all metadata from image.
7500
7908
  */
@@ -7535,10 +7943,6 @@ declare namespace vips {
7535
7943
  * Quantise to 8bpp palette.
7536
7944
  */
7537
7945
  palette?: boolean
7538
- /**
7539
- * Max number of palette colours.
7540
- */
7541
- colours?: number
7542
7946
  /**
7543
7947
  * Quantisation quality.
7544
7948
  */
@@ -7548,9 +7952,13 @@ declare namespace vips {
7548
7952
  */
7549
7953
  dither?: number
7550
7954
  /**
7551
- * Write as a 1, 2, 4 or 8 bit image.
7955
+ * Write as a 1, 2, 4, 8 or 16 bit image.
7552
7956
  */
7553
7957
  bitdepth?: number
7958
+ /**
7959
+ * Quantisation cpu effort.
7960
+ */
7961
+ effort?: number
7554
7962
  /**
7555
7963
  * Strip all metadata from image.
7556
7964
  */
@@ -7591,10 +7999,6 @@ declare namespace vips {
7591
7999
  * Quantise to 8bpp palette.
7592
8000
  */
7593
8001
  palette?: boolean
7594
- /**
7595
- * Max number of palette colours.
7596
- */
7597
- colours?: number
7598
8002
  /**
7599
8003
  * Quantisation quality.
7600
8004
  */
@@ -7604,9 +8008,13 @@ declare namespace vips {
7604
8008
  */
7605
8009
  dither?: number
7606
8010
  /**
7607
- * Write as a 1, 2, 4 or 8 bit image.
8011
+ * Write as a 1, 2, 4, 8 or 16 bit image.
7608
8012
  */
7609
8013
  bitdepth?: number
8014
+ /**
8015
+ * Quantisation cpu effort.
8016
+ */
8017
+ effort?: number
7610
8018
  /**
7611
8019
  * Strip all metadata from image.
7612
8020
  */
@@ -7628,15 +8036,15 @@ declare namespace vips {
7628
8036
  */
7629
8037
  ppmsave(filename: string, options?: {
7630
8038
  /**
7631
- * Save as ascii.
8039
+ * Format to save in.
7632
8040
  */
7633
- ascii?: boolean
8041
+ format?: ForeignPpmFormat | Enum
7634
8042
  /**
7635
- * Save as one bit.
8043
+ * Save as ascii.
7636
8044
  */
7637
- squash?: boolean
8045
+ ascii?: boolean
7638
8046
  /**
7639
- * Write as a 1 bit image.
8047
+ * Set to 1 to write as a 1 bit image.
7640
8048
  */
7641
8049
  bitdepth?: number
7642
8050
  /**
@@ -7660,15 +8068,15 @@ declare namespace vips {
7660
8068
  */
7661
8069
  ppmsaveTarget(target: Target, options?: {
7662
8070
  /**
7663
- * Save as ascii.
8071
+ * Format to save in.
7664
8072
  */
7665
- ascii?: boolean
8073
+ format?: ForeignPpmFormat | Enum
7666
8074
  /**
7667
- * Save as one bit.
8075
+ * Save as ascii.
7668
8076
  */
7669
- squash?: boolean
8077
+ ascii?: boolean
7670
8078
  /**
7671
- * Write as a 1 bit image.
8079
+ * Set to 1 to write as a 1 bit image.
7672
8080
  */
7673
8081
  bitdepth?: number
7674
8082
  /**
@@ -7844,10 +8252,6 @@ declare namespace vips {
7844
8252
  * Resampling kernel.
7845
8253
  */
7846
8254
  kernel?: Kernel | Enum
7847
- /**
7848
- * Use centre sampling convention.
7849
- */
7850
- centre?: boolean
7851
8255
  }): Image;
7852
8256
 
7853
8257
  /**
@@ -7861,10 +8265,6 @@ declare namespace vips {
7861
8265
  * Resampling kernel.
7862
8266
  */
7863
8267
  kernel?: Kernel | Enum
7864
- /**
7865
- * Use centre sampling convention.
7866
- */
7867
- centre?: boolean
7868
8268
  }): Image;
7869
8269
 
7870
8270
  /**
@@ -7878,10 +8278,6 @@ declare namespace vips {
7878
8278
  * Resampling kernel.
7879
8279
  */
7880
8280
  kernel?: Kernel | Enum
7881
- /**
7882
- * Use centre sampling convention.
7883
- */
7884
- centre?: boolean
7885
8281
  }): Image;
7886
8282
 
7887
8283
  /**
@@ -7914,30 +8310,14 @@ declare namespace vips {
7914
8310
  * @return Output image.
7915
8311
  */
7916
8312
  resize(scale: number, options?: {
7917
- /**
7918
- * Interpolate pixels with this.
7919
- */
7920
- interpolate?: Interpolate
7921
8313
  /**
7922
8314
  * Resampling kernel.
7923
8315
  */
7924
8316
  kernel?: Kernel | Enum
7925
- /**
7926
- * Use centre sampling convention.
7927
- */
7928
- centre?: boolean
7929
8317
  /**
7930
8318
  * Vertical scale image by this factor.
7931
8319
  */
7932
8320
  vscale?: number
7933
- /**
7934
- * Horizontal input displacement.
7935
- */
7936
- idx?: number
7937
- /**
7938
- * Vertical input displacement.
7939
- */
7940
- idy?: number
7941
8321
  }): Image;
7942
8322
 
7943
8323
  /**
@@ -8063,18 +8443,10 @@ declare namespace vips {
8063
8443
  * @return Output image.
8064
8444
  */
8065
8445
  sequential(options?: {
8066
- /**
8067
- * Trace pixel requests.
8068
- */
8069
- trace?: boolean
8070
8446
  /**
8071
8447
  * Tile height in pixels.
8072
8448
  */
8073
8449
  tile_height?: number
8074
- /**
8075
- * Expected access pattern.
8076
- */
8077
- access?: Access | Enum
8078
8450
  }): Image;
8079
8451
 
8080
8452
  /**
@@ -8083,10 +8455,6 @@ declare namespace vips {
8083
8455
  * @return Output image.
8084
8456
  */
8085
8457
  sharpen(options?: {
8086
- /**
8087
- * Radius of gaussian.
8088
- */
8089
- radius?: number
8090
8458
  /**
8091
8459
  * Sigma of gaussian.
8092
8460
  */
@@ -8306,10 +8674,6 @@ declare namespace vips {
8306
8674
  * Rendering intent.
8307
8675
  */
8308
8676
  intent?: Intent | Enum
8309
- /**
8310
- * Use orientation tags to rotate image upright.
8311
- */
8312
- auto_rotate?: boolean
8313
8677
  }): Image;
8314
8678
 
8315
8679
  /**
@@ -8350,10 +8714,6 @@ declare namespace vips {
8350
8714
  * Write a pyramidal tiff.
8351
8715
  */
8352
8716
  pyramid?: boolean
8353
- /**
8354
- * Squash images down to 1 bit.
8355
- */
8356
- squash?: boolean
8357
8717
  /**
8358
8718
  * Use 0 for white in 1-bit images.
8359
8719
  */
@@ -8378,10 +8738,6 @@ declare namespace vips {
8378
8738
  * Write a bigtiff image.
8379
8739
  */
8380
8740
  bigtiff?: boolean
8381
- /**
8382
- * Output rgb jpeg rather than ycbcr.
8383
- */
8384
- rgbjpeg?: boolean
8385
8741
  /**
8386
8742
  * Write a properties document to imagedescription.
8387
8743
  */
@@ -8394,10 +8750,6 @@ declare namespace vips {
8394
8750
  * Zstd compression level.
8395
8751
  */
8396
8752
  level?: number
8397
- /**
8398
- * Save pyr layers as sub-ifds.
8399
- */
8400
- subifd?: boolean
8401
8753
  /**
8402
8754
  * Enable webp lossless mode.
8403
8755
  */
@@ -8406,6 +8758,14 @@ declare namespace vips {
8406
8758
  * Pyramid depth.
8407
8759
  */
8408
8760
  depth?: ForeignDzDepth | Enum
8761
+ /**
8762
+ * Save pyr layers as sub-ifds.
8763
+ */
8764
+ subifd?: boolean
8765
+ /**
8766
+ * Save with premultiplied alpha.
8767
+ */
8768
+ premultiply?: boolean
8409
8769
  /**
8410
8770
  * Strip all metadata from image.
8411
8771
  */
@@ -8458,10 +8818,6 @@ declare namespace vips {
8458
8818
  * Write a pyramidal tiff.
8459
8819
  */
8460
8820
  pyramid?: boolean
8461
- /**
8462
- * Squash images down to 1 bit.
8463
- */
8464
- squash?: boolean
8465
8821
  /**
8466
8822
  * Use 0 for white in 1-bit images.
8467
8823
  */
@@ -8486,10 +8842,6 @@ declare namespace vips {
8486
8842
  * Write a bigtiff image.
8487
8843
  */
8488
8844
  bigtiff?: boolean
8489
- /**
8490
- * Output rgb jpeg rather than ycbcr.
8491
- */
8492
- rgbjpeg?: boolean
8493
8845
  /**
8494
8846
  * Write a properties document to imagedescription.
8495
8847
  */
@@ -8502,10 +8854,6 @@ declare namespace vips {
8502
8854
  * Zstd compression level.
8503
8855
  */
8504
8856
  level?: number
8505
- /**
8506
- * Save pyr layers as sub-ifds.
8507
- */
8508
- subifd?: boolean
8509
8857
  /**
8510
8858
  * Enable webp lossless mode.
8511
8859
  */
@@ -8514,6 +8862,14 @@ declare namespace vips {
8514
8862
  * Pyramid depth.
8515
8863
  */
8516
8864
  depth?: ForeignDzDepth | Enum
8865
+ /**
8866
+ * Save pyr layers as sub-ifds.
8867
+ */
8868
+ subifd?: boolean
8869
+ /**
8870
+ * Save with premultiplied alpha.
8871
+ */
8872
+ premultiply?: boolean
8517
8873
  /**
8518
8874
  * Strip all metadata from image.
8519
8875
  */
@@ -8589,7 +8945,7 @@ declare namespace vips {
8589
8945
  }): Image;
8590
8946
 
8591
8947
  /**
8592
- * Save image to vips file.
8948
+ * Save image to file in vips format.
8593
8949
  * @param filename Filename to save to.
8594
8950
  * @param options Optional options.
8595
8951
  */
@@ -8608,6 +8964,26 @@ declare namespace vips {
8608
8964
  page_height?: number
8609
8965
  }): void;
8610
8966
 
8967
+ /**
8968
+ * Save image to target in vips format.
8969
+ * @param target Target to save to.
8970
+ * @param options Optional options.
8971
+ */
8972
+ vipssaveTarget(target: Target, options?: {
8973
+ /**
8974
+ * Strip all metadata from image.
8975
+ */
8976
+ strip?: boolean
8977
+ /**
8978
+ * Background value.
8979
+ */
8980
+ background?: ArrayConstant
8981
+ /**
8982
+ * Set page height for multipage save.
8983
+ */
8984
+ page_height?: number
8985
+ }): void;
8986
+
8611
8987
  /**
8612
8988
  * Save image to webp file.
8613
8989
  * @param filename Filename to save to.
@@ -8653,7 +9029,7 @@ declare namespace vips {
8653
9029
  /**
8654
9030
  * Level of cpu effort to reduce file size.
8655
9031
  */
8656
- reduction_effort?: number
9032
+ effort?: number
8657
9033
  /**
8658
9034
  * Icc profile to embed.
8659
9035
  */
@@ -8717,7 +9093,7 @@ declare namespace vips {
8717
9093
  /**
8718
9094
  * Level of cpu effort to reduce file size.
8719
9095
  */
8720
- reduction_effort?: number
9096
+ effort?: number
8721
9097
  /**
8722
9098
  * Icc profile to embed.
8723
9099
  */
@@ -8781,7 +9157,7 @@ declare namespace vips {
8781
9157
  /**
8782
9158
  * Level of cpu effort to reduce file size.
8783
9159
  */
8784
- reduction_effort?: number
9160
+ effort?: number
8785
9161
  /**
8786
9162
  * Icc profile to embed.
8787
9163
  */