wasm-vips 0.0.4 → 0.0.6

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/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 shutdown libvips and the runtime of Emscripten.
107
- * This is only needed on Node.js, as the thread pool of
108
- * Emscripten prevents the event loop from exiting.
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
  */
@@ -590,6 +576,10 @@ declare module Vips {
590
576
  * loaders are permissive, that is, [[FailOn.none]].
591
577
  */
592
578
  fail_on?: FailOn | Enum
579
+ /**
580
+ * Don't use a cached result for this operation.
581
+ */
582
+ revalidate?: boolean
593
583
  }): Image;
594
584
 
595
585
  /**
@@ -655,6 +645,10 @@ declare module Vips {
655
645
  * loaders are permissive, that is, [[FailOn.none]].
656
646
  */
657
647
  fail_on?: FailOn | Enum
648
+ /**
649
+ * Don't use a cached result for this operation.
650
+ */
651
+ revalidate?: boolean
658
652
  }): Image;
659
653
 
660
654
  /**
@@ -677,6 +671,10 @@ declare module Vips {
677
671
  * loaders are permissive, that is, [[FailOn.none]].
678
672
  */
679
673
  fail_on?: FailOn | Enum
674
+ /**
675
+ * Don't use a cached result for this operation.
676
+ */
677
+ revalidate?: boolean
680
678
  }): Image;
681
679
 
682
680
  /**
@@ -980,6 +978,10 @@ declare module Vips {
980
978
  * Color for background pixels.
981
979
  */
982
980
  background?: ArrayConstant
981
+ /**
982
+ * Enable line art mode.
983
+ */
984
+ line_art?: boolean
983
985
  }): {
984
986
  /**
985
987
  * Output left edge.
@@ -1460,7 +1462,7 @@ declare module Vips {
1460
1462
 
1461
1463
  /**
1462
1464
  * The format used for each band element.
1463
- *
1465
+ *
1464
1466
  * Each corresponds to a native C type for the current machine. For example,
1465
1467
  * #VIPS_FORMAT_USHORT is <type>unsigned short</type>.
1466
1468
  */
@@ -1510,11 +1512,11 @@ declare module Vips {
1510
1512
  /**
1511
1513
  * The various Porter-Duff and PDF blend modes. See vips_composite(),
1512
1514
  * for example.
1513
- *
1515
+ *
1514
1516
  * The Cairo docs have a nice explanation of all the blend modes:
1515
- *
1517
+ *
1516
1518
  * https://www.cairographics.org/operators
1517
- *
1519
+ *
1518
1520
  * The non-separable modes are not implemented.
1519
1521
  */
1520
1522
  enum BlendMode {
@@ -1622,11 +1624,11 @@ declare module Vips {
1622
1624
 
1623
1625
  /**
1624
1626
  * How pixels are coded.
1625
- *
1627
+ *
1626
1628
  * Normally, pixels are uncoded and can be manipulated as you would expect.
1627
1629
  * However some file formats code pixels for compression, and sometimes it's
1628
1630
  * useful to be able to manipulate images in the coded format.
1629
- *
1631
+ *
1630
1632
  * The gaps in the numbering are historical and must be maintained. Allocate
1631
1633
  * new numbers from the end.
1632
1634
  */
@@ -1649,10 +1651,10 @@ declare module Vips {
1649
1651
  * How the values in an image should be interpreted. For example, a
1650
1652
  * three-band float image of type #VIPS_INTERPRETATION_LAB should have its
1651
1653
  * pixels interpreted as coordinates in CIE Lab space.
1652
- *
1654
+ *
1653
1655
  * RGB and sRGB are treated in the same way. Use the colourspace functions if
1654
1656
  * you want some other behaviour.
1655
- *
1657
+ *
1656
1658
  * The gaps in numbering are historical and must be maintained. Allocate
1657
1659
  * new numbers from the end.
1658
1660
  */
@@ -1736,44 +1738,42 @@ declare module Vips {
1736
1738
  }
1737
1739
 
1738
1740
  /**
1739
- * See vips_image_pipelinev(). Operations can hint to the VIPS image IO
1740
- * system about the kind of demand geometry they prefer.
1741
- *
1741
+ * See vips_image_pipelinev(). Operations can hint
1742
+ * the kind of demand geometry they prefer
1743
+ * to the VIPS image IO system.
1744
+ *
1742
1745
  * These demand styles are given below in order of increasing
1743
- * restrictiveness. When demanding output from a pipeline,
1746
+ * specialisation. When demanding output from a pipeline,
1744
1747
  * vips_image_generate()
1745
- * will use the most restrictive of the styles requested by the operations
1748
+ * will use the most general style requested by the operations
1746
1749
  * in the pipeline.
1747
- *
1748
- * #VIPS_DEMAND_STYLE_THINSTRIP --- This operation would like to output strips
1749
- * the width of the image and a few pels high. This is option suitable for
1750
- * point-to-point operations, such as those in the arithmetic package.
1751
- *
1752
- * This option is only efficient for cases where each output pel depends
1753
- * upon the pel in the corresponding position in the input image.
1754
- *
1750
+ *
1751
+ * #VIPS_DEMAND_STYLE_SMALLTILE --- This is the most general demand format.
1752
+ * Output is demanded in small (around 100x100 pel) sections. This style works
1753
+ * reasonably efficiently, even for bizarre operations like 45 degree rotate.
1754
+ *
1755
1755
  * #VIPS_DEMAND_STYLE_FATSTRIP --- This operation would like to output strips
1756
1756
  * the width of the image and as high as possible. This option is suitable
1757
1757
  * for area operations which do not violently transform coordinates, such
1758
1758
  * as vips_conv().
1759
- *
1760
- * #VIPS_DEMAND_STYLE_SMALLTILE --- This is the most general demand format.
1761
- * Output is demanded in small (around 100x100 pel) sections. This style works
1762
- * reasonably efficiently, even for bizzare operations like 45 degree rotate.
1763
- *
1759
+ *
1760
+ * #VIPS_DEMAND_STYLE_THINSTRIP --- This operation would like to output strips
1761
+ * the width of the image and a few pels high. This option is suitable for
1762
+ * point-to-point operations, such as those in the arithmetic package.
1763
+ *
1764
1764
  * #VIPS_DEMAND_STYLE_ANY --- This image is not being demand-read from a disc
1765
1765
  * file (even indirectly) so any demand style is OK. It's used for things like
1766
1766
  * vips_black() where the pixels are calculated.
1767
- *
1767
+ *
1768
1768
  * See also: vips_image_pipelinev().
1769
1769
  */
1770
1770
  enum DemandStyle {
1771
1771
  /**
1772
- * Demand in small (typically 64x64 pixel) tiles
1772
+ * Demand in small (typically 128x128 pixel) tiles
1773
1773
  */
1774
1774
  smalltile = 'smalltile',
1775
1775
  /**
1776
- * Demand in fat (typically 10 pixel high) strips
1776
+ * Demand in fat (typically 16 pixel high) strips
1777
1777
  */
1778
1778
  fatstrip = 'fatstrip',
1779
1779
  /**
@@ -1843,15 +1843,15 @@ declare module Vips {
1843
1843
  */
1844
1844
  enum OperationMath2 {
1845
1845
  /**
1846
- * Pow( left, right )
1846
+ * Pow(left, right)
1847
1847
  */
1848
1848
  pow = 'pow',
1849
1849
  /**
1850
- * Pow( right, left )
1850
+ * Pow(right, left)
1851
1851
  */
1852
1852
  wop = 'wop',
1853
1853
  /**
1854
- * Atan2( left, right )
1854
+ * Atan2(left, right)
1855
1855
  */
1856
1856
  atan2 = 'atan2'
1857
1857
  }
@@ -2007,9 +2007,9 @@ declare module Vips {
2007
2007
  /**
2008
2008
  * The type of access an operation has to supply. See vips_tilecache()
2009
2009
  * and #VipsForeign.
2010
- *
2010
+ *
2011
2011
  * @VIPS_ACCESS_RANDOM means requests can come in any order.
2012
- *
2012
+ *
2013
2013
  * @VIPS_ACCESS_SEQUENTIAL means requests will be top-to-bottom, but with some
2014
2014
  * amount of buffering behind the read point for small non-local accesses.
2015
2015
  */
@@ -2027,27 +2027,27 @@ declare module Vips {
2027
2027
 
2028
2028
  /**
2029
2029
  * See vips_embed(), vips_conv(), vips_affine() and so on.
2030
- *
2030
+ *
2031
2031
  * When the edges of an image are extended, you can specify
2032
2032
  * how you want the extension done.
2033
- *
2033
+ *
2034
2034
  * #VIPS_EXTEND_BLACK --- new pixels are black, ie. all bits are zero.
2035
- *
2035
+ *
2036
2036
  * #VIPS_EXTEND_COPY --- each new pixel takes the value of the nearest edge
2037
2037
  * pixel
2038
- *
2038
+ *
2039
2039
  * #VIPS_EXTEND_REPEAT --- the image is tiled to fill the new area
2040
- *
2040
+ *
2041
2041
  * #VIPS_EXTEND_MIRROR --- the image is reflected and tiled to reduce hash
2042
2042
  * edges
2043
- *
2043
+ *
2044
2044
  * #VIPS_EXTEND_WHITE --- new pixels are white, ie. all bits are set
2045
- *
2045
+ *
2046
2046
  * #VIPS_EXTEND_BACKGROUND --- colour set from the @background property
2047
- *
2047
+ *
2048
2048
  * We have to specify the exact value of each enum member since we have to
2049
2049
  * keep these frozen for back compat with vips7.
2050
- *
2050
+ *
2051
2051
  * See also: vips_embed().
2052
2052
  */
2053
2053
  enum Extend {
@@ -2121,10 +2121,10 @@ declare module Vips {
2121
2121
 
2122
2122
  /**
2123
2123
  * See vips_flip(), vips_join() and so on.
2124
- *
2124
+ *
2125
2125
  * Operations like vips_flip() need to be told whether to flip left-right or
2126
2126
  * top-bottom.
2127
- *
2127
+ *
2128
2128
  * See also: vips_flip(), vips_join().
2129
2129
  */
2130
2130
  enum Direction {
@@ -2140,10 +2140,10 @@ declare module Vips {
2140
2140
 
2141
2141
  /**
2142
2142
  * See vips_join() and so on.
2143
- *
2143
+ *
2144
2144
  * Operations like vips_join() need to be told whether to align images on the
2145
2145
  * low or high coordinate edge, or centre.
2146
- *
2146
+ *
2147
2147
  * See also: vips_join().
2148
2148
  */
2149
2149
  enum Align {
@@ -2165,11 +2165,11 @@ declare module Vips {
2165
2165
  * Pick the algorithm vips uses to decide image "interestingness". This is used
2166
2166
  * by vips_smartcrop(), for example, to decide what parts of the image to
2167
2167
  * keep.
2168
- *
2168
+ *
2169
2169
  * #VIPS_INTERESTING_NONE and #VIPS_INTERESTING_LOW mean the same -- the
2170
2170
  * crop is positioned at the top or left. #VIPS_INTERESTING_HIGH positions at
2171
2171
  * the bottom or right.
2172
- *
2172
+ *
2173
2173
  * See also: vips_smartcrop().
2174
2174
  */
2175
2175
  enum Interesting {
@@ -2205,9 +2205,9 @@ declare module Vips {
2205
2205
 
2206
2206
  /**
2207
2207
  * See vips_rot() and so on.
2208
- *
2208
+ *
2209
2209
  * Fixed rotate angles.
2210
- *
2210
+ *
2211
2211
  * See also: vips_rot().
2212
2212
  */
2213
2213
  enum Angle {
@@ -2231,9 +2231,9 @@ declare module Vips {
2231
2231
 
2232
2232
  /**
2233
2233
  * See vips_rot45() and so on.
2234
- *
2234
+ *
2235
2235
  * Fixed rotate angles.
2236
- *
2236
+ *
2237
2237
  * See also: vips_rot45().
2238
2238
  */
2239
2239
  enum Angle45 {
@@ -2289,10 +2289,35 @@ declare module Vips {
2289
2289
  approximate = 'approximate'
2290
2290
  }
2291
2291
 
2292
+ /**
2293
+ * Sets the word wrapping style for vips_text() when used with a maximum
2294
+ * width.
2295
+ *
2296
+ * See also: vips_text().
2297
+ */
2298
+ enum TextWrap {
2299
+ /**
2300
+ * Wrap at word boundaries
2301
+ */
2302
+ word = 'word',
2303
+ /**
2304
+ * Wrap at character boundaries
2305
+ */
2306
+ char = 'char',
2307
+ /**
2308
+ * Wrap at word boundaries, but fall back to character boundaries if there is not enough space for a full word
2309
+ */
2310
+ word_char = 'word-char',
2311
+ /**
2312
+ * No wrapping
2313
+ */
2314
+ none = 'none'
2315
+ }
2316
+
2292
2317
  /**
2293
2318
  * How sensitive loaders are to errors, from never stop (very insensitive), to
2294
2319
  * stop on the smallest warning (very sensitive).
2295
- *
2320
+ *
2296
2321
  * Each one implies the ones before it, so #VIPS_FAIL_ON_ERROR implies
2297
2322
  * #VIPS_FAIL_ON_TRUNCATED.
2298
2323
  */
@@ -2317,14 +2342,17 @@ declare module Vips {
2317
2342
 
2318
2343
  /**
2319
2344
  * The netpbm file format to save as.
2320
- *
2345
+ *
2321
2346
  * #VIPS_FOREIGN_PPM_FORMAT_PBM images are single bit.
2322
- *
2347
+ *
2323
2348
  * #VIPS_FOREIGN_PPM_FORMAT_PGM images are 8, 16, or 32-bits, one band.
2324
- *
2349
+ *
2325
2350
  * #VIPS_FOREIGN_PPM_FORMAT_PPM images are 8, 16, or 32-bits, three bands.
2326
- *
2351
+ *
2327
2352
  * #VIPS_FOREIGN_PPM_FORMAT_PFM images are 32-bit float pixels.
2353
+ *
2354
+ * #VIPS_FOREIGN_PPM_FORMAT_PNM images are anymap images -- the image format
2355
+ * is used to pick the saver.
2328
2356
  */
2329
2357
  enum ForeignPpmFormat {
2330
2358
  /**
@@ -2342,7 +2370,11 @@ declare module Vips {
2342
2370
  /**
2343
2371
  * Portable float map
2344
2372
  */
2345
- pfm = 'pfm'
2373
+ pfm = 'pfm',
2374
+ /**
2375
+ * Portable anymap
2376
+ */
2377
+ pnm = 'pnm'
2346
2378
  }
2347
2379
 
2348
2380
  /**
@@ -2487,13 +2519,13 @@ declare module Vips {
2487
2519
 
2488
2520
  /**
2489
2521
  * The compression types supported by the tiff writer.
2490
- *
2522
+ *
2491
2523
  * Use @Q to set the jpeg compression level, default 75.
2492
- *
2524
+ *
2493
2525
  * Use @predictor to set the lzw or deflate prediction, default horizontal.
2494
- *
2526
+ *
2495
2527
  * Use @lossless to set WEBP lossless compression.
2496
- *
2528
+ *
2497
2529
  * Use @level to set webp and zstd compression level.
2498
2530
  */
2499
2531
  enum ForeignTiffCompression {
@@ -2570,7 +2602,7 @@ declare module Vips {
2570
2602
 
2571
2603
  /**
2572
2604
  * The compression format to use inside a HEIF container.
2573
- *
2605
+ *
2574
2606
  * This is assumed to use the same numbering as %heif_compression_format.
2575
2607
  */
2576
2608
  enum ForeignHeifCompression {
@@ -2592,10 +2624,38 @@ declare module Vips {
2592
2624
  av1 = 'av1'
2593
2625
  }
2594
2626
 
2627
+ /**
2628
+ * The selected encoder to use.
2629
+ * If libheif hasn't been compiled with the selected encoder,
2630
+ * we will fallback to the default encoder for the compression format.
2631
+ */
2632
+ enum ForeignHeifEncoder {
2633
+ /**
2634
+ * Auto
2635
+ */
2636
+ auto = 'auto',
2637
+ /**
2638
+ * Aom
2639
+ */
2640
+ aom = 'aom',
2641
+ /**
2642
+ * RAV1E
2643
+ */
2644
+ rav1e = 'rav1e',
2645
+ /**
2646
+ * SVT-AV1
2647
+ */
2648
+ svt = 'svt',
2649
+ /**
2650
+ * X265
2651
+ */
2652
+ x265 = 'x265'
2653
+ }
2654
+
2595
2655
  /**
2596
2656
  * Controls whether an operation should upsize, downsize, both up and
2597
2657
  * downsize, or force a size.
2598
- *
2658
+ *
2599
2659
  * See also: vips_thumbnail().
2600
2660
  */
2601
2661
  enum Size {
@@ -2689,7 +2749,7 @@ declare module Vips {
2689
2749
 
2690
2750
  /**
2691
2751
  * More like hit-miss, really.
2692
- *
2752
+ *
2693
2753
  * See also: vips_morph().
2694
2754
  */
2695
2755
  enum OperationMorphology {
@@ -2705,10 +2765,10 @@ declare module Vips {
2705
2765
 
2706
2766
  /**
2707
2767
  * See vips_draw_image() and so on.
2708
- *
2768
+ *
2709
2769
  * Operations like vips_draw_image() need to be told how to combine images
2710
2770
  * from two sources.
2711
- *
2771
+ *
2712
2772
  * See also: vips_join().
2713
2773
  */
2714
2774
  enum CombineMode {
@@ -2722,6 +2782,40 @@ declare module Vips {
2722
2782
  add = 'add'
2723
2783
  }
2724
2784
 
2785
+ /**
2786
+ * Which metadata to retain.
2787
+ */
2788
+ enum ForeignKeep {
2789
+ /**
2790
+ * Don't attach metadata
2791
+ */
2792
+ none = 'none',
2793
+ /**
2794
+ * Keep Exif metadata
2795
+ */
2796
+ exif = 'exif',
2797
+ /**
2798
+ * Keep XMP metadata
2799
+ */
2800
+ xmp = 'xmp',
2801
+ /**
2802
+ * Keep IPTC metadata
2803
+ */
2804
+ iptc = 'iptc',
2805
+ /**
2806
+ * Keep ICC metadata
2807
+ */
2808
+ icc = 'icc',
2809
+ /**
2810
+ * Keep other metadata (e.g. PNG comments and some TIFF tags)
2811
+ */
2812
+ other = 'other',
2813
+ /**
2814
+ * Keep all metadata
2815
+ */
2816
+ all = 'all'
2817
+ }
2818
+
2725
2819
  /**
2726
2820
  * http://www.w3.org/TR/PNG-Filters.html
2727
2821
  * The values mirror those of png.h in libpng.
@@ -2779,6 +2873,10 @@ declare module Vips {
2779
2873
  * Error level to fail on.
2780
2874
  */
2781
2875
  fail_on?: FailOn | Enum
2876
+ /**
2877
+ * Don't use a cached result for this operation.
2878
+ */
2879
+ revalidate?: boolean
2782
2880
  /**
2783
2881
  * Flags for this file (output).
2784
2882
  */
@@ -2891,6 +2989,10 @@ declare module Vips {
2891
2989
  * Error level to fail on.
2892
2990
  */
2893
2991
  fail_on?: FailOn | Enum
2992
+ /**
2993
+ * Don't use a cached result for this operation.
2994
+ */
2995
+ revalidate?: boolean
2894
2996
  /**
2895
2997
  * Flags for this file (output).
2896
2998
  */
@@ -2932,6 +3034,10 @@ declare module Vips {
2932
3034
  * Error level to fail on.
2933
3035
  */
2934
3036
  fail_on?: FailOn | Enum
3037
+ /**
3038
+ * Don't use a cached result for this operation.
3039
+ */
3040
+ revalidate?: boolean
2935
3041
  /**
2936
3042
  * Flags for this file (output).
2937
3043
  */
@@ -2975,6 +3081,10 @@ declare module Vips {
2975
3081
  * Error level to fail on.
2976
3082
  */
2977
3083
  fail_on?: FailOn | Enum
3084
+ /**
3085
+ * Don't use a cached result for this operation.
3086
+ */
3087
+ revalidate?: boolean
2978
3088
  /**
2979
3089
  * Flags for this file (output).
2980
3090
  */
@@ -3000,6 +3110,10 @@ declare module Vips {
3000
3110
  * Error level to fail on.
3001
3111
  */
3002
3112
  fail_on?: FailOn | Enum
3113
+ /**
3114
+ * Don't use a cached result for this operation.
3115
+ */
3116
+ revalidate?: boolean
3003
3117
  /**
3004
3118
  * Flags for this file (output).
3005
3119
  */
@@ -3063,11 +3177,11 @@ declare module Vips {
3063
3177
  */
3064
3178
  static gifload(filename: string, options?: {
3065
3179
  /**
3066
- * Load this many pages.
3180
+ * Number of pages to load, -1 for all.
3067
3181
  */
3068
3182
  n?: number
3069
3183
  /**
3070
- * Load this page from the file.
3184
+ * First page to load.
3071
3185
  */
3072
3186
  page?: number
3073
3187
  /**
@@ -3082,6 +3196,10 @@ declare module Vips {
3082
3196
  * Error level to fail on.
3083
3197
  */
3084
3198
  fail_on?: FailOn | Enum
3199
+ /**
3200
+ * Don't use a cached result for this operation.
3201
+ */
3202
+ revalidate?: boolean
3085
3203
  /**
3086
3204
  * Flags for this file (output).
3087
3205
  */
@@ -3096,11 +3214,11 @@ declare module Vips {
3096
3214
  */
3097
3215
  static gifloadBuffer(buffer: Blob, options?: {
3098
3216
  /**
3099
- * Load this many pages.
3217
+ * Number of pages to load, -1 for all.
3100
3218
  */
3101
3219
  n?: number
3102
3220
  /**
3103
- * Load this page from the file.
3221
+ * First page to load.
3104
3222
  */
3105
3223
  page?: number
3106
3224
  /**
@@ -3115,6 +3233,10 @@ declare module Vips {
3115
3233
  * Error level to fail on.
3116
3234
  */
3117
3235
  fail_on?: FailOn | Enum
3236
+ /**
3237
+ * Don't use a cached result for this operation.
3238
+ */
3239
+ revalidate?: boolean
3118
3240
  /**
3119
3241
  * Flags for this file (output).
3120
3242
  */
@@ -3129,11 +3251,11 @@ declare module Vips {
3129
3251
  */
3130
3252
  static gifloadSource(source: Source, options?: {
3131
3253
  /**
3132
- * Load this many pages.
3254
+ * Number of pages to load, -1 for all.
3133
3255
  */
3134
3256
  n?: number
3135
3257
  /**
3136
- * Load this page from the file.
3258
+ * First page to load.
3137
3259
  */
3138
3260
  page?: number
3139
3261
  /**
@@ -3148,6 +3270,10 @@ declare module Vips {
3148
3270
  * Error level to fail on.
3149
3271
  */
3150
3272
  fail_on?: FailOn | Enum
3273
+ /**
3274
+ * Don't use a cached result for this operation.
3275
+ */
3276
+ revalidate?: boolean
3151
3277
  /**
3152
3278
  * Flags for this file (output).
3153
3279
  */
@@ -3176,11 +3302,11 @@ declare module Vips {
3176
3302
  */
3177
3303
  static heifload(filename: string, options?: {
3178
3304
  /**
3179
- * Load this page from the file.
3305
+ * First page to load.
3180
3306
  */
3181
3307
  page?: number
3182
3308
  /**
3183
- * Load this many pages.
3309
+ * Number of pages to load, -1 for all.
3184
3310
  */
3185
3311
  n?: number
3186
3312
  /**
@@ -3203,6 +3329,10 @@ declare module Vips {
3203
3329
  * Error level to fail on.
3204
3330
  */
3205
3331
  fail_on?: FailOn | Enum
3332
+ /**
3333
+ * Don't use a cached result for this operation.
3334
+ */
3335
+ revalidate?: boolean
3206
3336
  /**
3207
3337
  * Flags for this file (output).
3208
3338
  */
@@ -3217,11 +3347,11 @@ declare module Vips {
3217
3347
  */
3218
3348
  static heifloadBuffer(buffer: Blob, options?: {
3219
3349
  /**
3220
- * Load this page from the file.
3350
+ * First page to load.
3221
3351
  */
3222
3352
  page?: number
3223
3353
  /**
3224
- * Load this many pages.
3354
+ * Number of pages to load, -1 for all.
3225
3355
  */
3226
3356
  n?: number
3227
3357
  /**
@@ -3244,6 +3374,10 @@ declare module Vips {
3244
3374
  * Error level to fail on.
3245
3375
  */
3246
3376
  fail_on?: FailOn | Enum
3377
+ /**
3378
+ * Don't use a cached result for this operation.
3379
+ */
3380
+ revalidate?: boolean
3247
3381
  /**
3248
3382
  * Flags for this file (output).
3249
3383
  */
@@ -3258,11 +3392,11 @@ declare module Vips {
3258
3392
  */
3259
3393
  static heifloadSource(source: Source, options?: {
3260
3394
  /**
3261
- * Load this page from the file.
3395
+ * First page to load.
3262
3396
  */
3263
3397
  page?: number
3264
3398
  /**
3265
- * Load this many pages.
3399
+ * Number of pages to load, -1 for all.
3266
3400
  */
3267
3401
  n?: number
3268
3402
  /**
@@ -3285,6 +3419,10 @@ declare module Vips {
3285
3419
  * Error level to fail on.
3286
3420
  */
3287
3421
  fail_on?: FailOn | Enum
3422
+ /**
3423
+ * Don't use a cached result for this operation.
3424
+ */
3425
+ revalidate?: boolean
3288
3426
  /**
3289
3427
  * Flags for this file (output).
3290
3428
  */
@@ -3334,6 +3472,10 @@ declare module Vips {
3334
3472
  * Error level to fail on.
3335
3473
  */
3336
3474
  fail_on?: FailOn | Enum
3475
+ /**
3476
+ * Don't use a cached result for this operation.
3477
+ */
3478
+ revalidate?: boolean
3337
3479
  /**
3338
3480
  * Flags for this file (output).
3339
3481
  */
@@ -3363,6 +3505,10 @@ declare module Vips {
3363
3505
  * Error level to fail on.
3364
3506
  */
3365
3507
  fail_on?: FailOn | Enum
3508
+ /**
3509
+ * Don't use a cached result for this operation.
3510
+ */
3511
+ revalidate?: boolean
3366
3512
  /**
3367
3513
  * Flags for this file (output).
3368
3514
  */
@@ -3392,6 +3538,10 @@ declare module Vips {
3392
3538
  * Error level to fail on.
3393
3539
  */
3394
3540
  fail_on?: FailOn | Enum
3541
+ /**
3542
+ * Don't use a cached result for this operation.
3543
+ */
3544
+ revalidate?: boolean
3395
3545
  /**
3396
3546
  * Flags for this file (output).
3397
3547
  */
@@ -3429,6 +3579,10 @@ declare module Vips {
3429
3579
  * Error level to fail on.
3430
3580
  */
3431
3581
  fail_on?: FailOn | Enum
3582
+ /**
3583
+ * Don't use a cached result for this operation.
3584
+ */
3585
+ revalidate?: boolean
3432
3586
  /**
3433
3587
  * Flags for this file (output).
3434
3588
  */
@@ -3466,6 +3620,10 @@ declare module Vips {
3466
3620
  * Error level to fail on.
3467
3621
  */
3468
3622
  fail_on?: FailOn | Enum
3623
+ /**
3624
+ * Don't use a cached result for this operation.
3625
+ */
3626
+ revalidate?: boolean
3469
3627
  /**
3470
3628
  * Flags for this file (output).
3471
3629
  */
@@ -3503,6 +3661,10 @@ declare module Vips {
3503
3661
  * Error level to fail on.
3504
3662
  */
3505
3663
  fail_on?: FailOn | Enum
3664
+ /**
3665
+ * Don't use a cached result for this operation.
3666
+ */
3667
+ revalidate?: boolean
3506
3668
  /**
3507
3669
  * Flags for this file (output).
3508
3670
  */
@@ -3528,6 +3690,10 @@ declare module Vips {
3528
3690
  * Error level to fail on.
3529
3691
  */
3530
3692
  fail_on?: FailOn | Enum
3693
+ /**
3694
+ * Don't use a cached result for this operation.
3695
+ */
3696
+ revalidate?: boolean
3531
3697
  /**
3532
3698
  * Flags for this file (output).
3533
3699
  */
@@ -3553,6 +3719,10 @@ declare module Vips {
3553
3719
  * Error level to fail on.
3554
3720
  */
3555
3721
  fail_on?: FailOn | Enum
3722
+ /**
3723
+ * Don't use a cached result for this operation.
3724
+ */
3725
+ revalidate?: boolean
3556
3726
  /**
3557
3727
  * Flags for this file (output).
3558
3728
  */
@@ -3578,6 +3748,10 @@ declare module Vips {
3578
3748
  * Error level to fail on.
3579
3749
  */
3580
3750
  fail_on?: FailOn | Enum
3751
+ /**
3752
+ * Don't use a cached result for this operation.
3753
+ */
3754
+ revalidate?: boolean
3581
3755
  /**
3582
3756
  * Flags for this file (output).
3583
3757
  */
@@ -3614,11 +3788,11 @@ declare module Vips {
3614
3788
  */
3615
3789
  density?: string
3616
3790
  /**
3617
- * Load this page from the file.
3791
+ * First page to load.
3618
3792
  */
3619
3793
  page?: number
3620
3794
  /**
3621
- * Load this many pages.
3795
+ * Number of pages to load, -1 for all.
3622
3796
  */
3623
3797
  n?: number
3624
3798
  /**
@@ -3633,6 +3807,10 @@ declare module Vips {
3633
3807
  * Error level to fail on.
3634
3808
  */
3635
3809
  fail_on?: FailOn | Enum
3810
+ /**
3811
+ * Don't use a cached result for this operation.
3812
+ */
3813
+ revalidate?: boolean
3636
3814
  /**
3637
3815
  * Flags for this file (output).
3638
3816
  */
@@ -3651,11 +3829,11 @@ declare module Vips {
3651
3829
  */
3652
3830
  density?: string
3653
3831
  /**
3654
- * Load this page from the file.
3832
+ * First page to load.
3655
3833
  */
3656
3834
  page?: number
3657
3835
  /**
3658
- * Load this many pages.
3836
+ * Number of pages to load, -1 for all.
3659
3837
  */
3660
3838
  n?: number
3661
3839
  /**
@@ -3670,6 +3848,10 @@ declare module Vips {
3670
3848
  * Error level to fail on.
3671
3849
  */
3672
3850
  fail_on?: FailOn | Enum
3851
+ /**
3852
+ * Don't use a cached result for this operation.
3853
+ */
3854
+ revalidate?: boolean
3673
3855
  /**
3674
3856
  * Flags for this file (output).
3675
3857
  */
@@ -3983,6 +4165,10 @@ declare module Vips {
3983
4165
  * Error level to fail on.
3984
4166
  */
3985
4167
  fail_on?: FailOn | Enum
4168
+ /**
4169
+ * Don't use a cached result for this operation.
4170
+ */
4171
+ revalidate?: boolean
3986
4172
  /**
3987
4173
  * Flags for this file (output).
3988
4174
  */
@@ -4008,6 +4194,10 @@ declare module Vips {
4008
4194
  * Error level to fail on.
4009
4195
  */
4010
4196
  fail_on?: FailOn | Enum
4197
+ /**
4198
+ * Don't use a cached result for this operation.
4199
+ */
4200
+ revalidate?: boolean
4011
4201
  /**
4012
4202
  * Flags for this file (output).
4013
4203
  */
@@ -4033,6 +4223,10 @@ declare module Vips {
4033
4223
  * Error level to fail on.
4034
4224
  */
4035
4225
  fail_on?: FailOn | Enum
4226
+ /**
4227
+ * Don't use a cached result for this operation.
4228
+ */
4229
+ revalidate?: boolean
4036
4230
  /**
4037
4231
  * Flags for this file (output).
4038
4232
  */
@@ -4058,6 +4252,10 @@ declare module Vips {
4058
4252
  * Error level to fail on.
4059
4253
  */
4060
4254
  fail_on?: FailOn | Enum
4255
+ /**
4256
+ * Don't use a cached result for this operation.
4257
+ */
4258
+ revalidate?: boolean
4061
4259
  /**
4062
4260
  * Flags for this file (output).
4063
4261
  */
@@ -4083,6 +4281,10 @@ declare module Vips {
4083
4281
  * Error level to fail on.
4084
4282
  */
4085
4283
  fail_on?: FailOn | Enum
4284
+ /**
4285
+ * Don't use a cached result for this operation.
4286
+ */
4287
+ revalidate?: boolean
4086
4288
  /**
4087
4289
  * Flags for this file (output).
4088
4290
  */
@@ -4108,6 +4310,10 @@ declare module Vips {
4108
4310
  * Error level to fail on.
4109
4311
  */
4110
4312
  fail_on?: FailOn | Enum
4313
+ /**
4314
+ * Don't use a cached result for this operation.
4315
+ */
4316
+ revalidate?: boolean
4111
4317
  /**
4112
4318
  * Flags for this file (output).
4113
4319
  */
@@ -4121,10 +4327,6 @@ declare module Vips {
4121
4327
  * @return Output image.
4122
4328
  */
4123
4329
  static openslideload(filename: string, options?: {
4124
- /**
4125
- * Attach all associated images.
4126
- */
4127
- attach_associated?: boolean
4128
4330
  /**
4129
4331
  * Load this level from the file.
4130
4332
  */
@@ -4137,6 +4339,14 @@ declare module Vips {
4137
4339
  * Load this associated image.
4138
4340
  */
4139
4341
  associated?: string
4342
+ /**
4343
+ * Attach all associated images.
4344
+ */
4345
+ attach_associated?: boolean
4346
+ /**
4347
+ * Output rgb (not rgba).
4348
+ */
4349
+ rgb?: boolean
4140
4350
  /**
4141
4351
  * Force open via memory.
4142
4352
  */
@@ -4149,6 +4359,10 @@ declare module Vips {
4149
4359
  * Error level to fail on.
4150
4360
  */
4151
4361
  fail_on?: FailOn | Enum
4362
+ /**
4363
+ * Don't use a cached result for this operation.
4364
+ */
4365
+ revalidate?: boolean
4152
4366
  /**
4153
4367
  * Flags for this file (output).
4154
4368
  */
@@ -4162,10 +4376,6 @@ declare module Vips {
4162
4376
  * @return Output image.
4163
4377
  */
4164
4378
  static openslideloadSource(source: Source, options?: {
4165
- /**
4166
- * Attach all associated images.
4167
- */
4168
- attach_associated?: boolean
4169
4379
  /**
4170
4380
  * Load this level from the file.
4171
4381
  */
@@ -4178,6 +4388,14 @@ declare module Vips {
4178
4388
  * Load this associated image.
4179
4389
  */
4180
4390
  associated?: string
4391
+ /**
4392
+ * Attach all associated images.
4393
+ */
4394
+ attach_associated?: boolean
4395
+ /**
4396
+ * Output rgb (not rgba).
4397
+ */
4398
+ rgb?: boolean
4181
4399
  /**
4182
4400
  * Force open via memory.
4183
4401
  */
@@ -4190,6 +4408,10 @@ declare module Vips {
4190
4408
  * Error level to fail on.
4191
4409
  */
4192
4410
  fail_on?: FailOn | Enum
4411
+ /**
4412
+ * Don't use a cached result for this operation.
4413
+ */
4414
+ revalidate?: boolean
4193
4415
  /**
4194
4416
  * Flags for this file (output).
4195
4417
  */
@@ -4204,27 +4426,27 @@ declare module Vips {
4204
4426
  */
4205
4427
  static pdfload(filename: string, options?: {
4206
4428
  /**
4207
- * Load this page from the file.
4429
+ * First page to load.
4208
4430
  */
4209
4431
  page?: number
4210
4432
  /**
4211
- * Load this many pages.
4433
+ * Number of pages to load, -1 for all.
4212
4434
  */
4213
4435
  n?: number
4214
4436
  /**
4215
- * Render at this dpi.
4437
+ * Dpi to render at.
4216
4438
  */
4217
4439
  dpi?: number
4218
4440
  /**
4219
- * Scale output by this factor.
4441
+ * Factor to scale by.
4220
4442
  */
4221
4443
  scale?: number
4222
4444
  /**
4223
- * Background value.
4445
+ * Background colour.
4224
4446
  */
4225
4447
  background?: ArrayConstant
4226
4448
  /**
4227
- * Decrypt with this password.
4449
+ * Password to decrypt with.
4228
4450
  */
4229
4451
  password?: string
4230
4452
  /**
@@ -4239,6 +4461,10 @@ declare module Vips {
4239
4461
  * Error level to fail on.
4240
4462
  */
4241
4463
  fail_on?: FailOn | Enum
4464
+ /**
4465
+ * Don't use a cached result for this operation.
4466
+ */
4467
+ revalidate?: boolean
4242
4468
  /**
4243
4469
  * Flags for this file (output).
4244
4470
  */
@@ -4253,27 +4479,27 @@ declare module Vips {
4253
4479
  */
4254
4480
  static pdfloadBuffer(buffer: Blob, options?: {
4255
4481
  /**
4256
- * Load this page from the file.
4482
+ * First page to load.
4257
4483
  */
4258
4484
  page?: number
4259
4485
  /**
4260
- * Load this many pages.
4486
+ * Number of pages to load, -1 for all.
4261
4487
  */
4262
4488
  n?: number
4263
4489
  /**
4264
- * Render at this dpi.
4490
+ * Dpi to render at.
4265
4491
  */
4266
4492
  dpi?: number
4267
4493
  /**
4268
- * Scale output by this factor.
4494
+ * Factor to scale by.
4269
4495
  */
4270
4496
  scale?: number
4271
4497
  /**
4272
- * Background value.
4498
+ * Background colour.
4273
4499
  */
4274
4500
  background?: ArrayConstant
4275
4501
  /**
4276
- * Decrypt with this password.
4502
+ * Password to decrypt with.
4277
4503
  */
4278
4504
  password?: string
4279
4505
  /**
@@ -4288,6 +4514,10 @@ declare module Vips {
4288
4514
  * Error level to fail on.
4289
4515
  */
4290
4516
  fail_on?: FailOn | Enum
4517
+ /**
4518
+ * Don't use a cached result for this operation.
4519
+ */
4520
+ revalidate?: boolean
4291
4521
  /**
4292
4522
  * Flags for this file (output).
4293
4523
  */
@@ -4302,27 +4532,27 @@ declare module Vips {
4302
4532
  */
4303
4533
  static pdfloadSource(source: Source, options?: {
4304
4534
  /**
4305
- * Load this page from the file.
4535
+ * First page to load.
4306
4536
  */
4307
4537
  page?: number
4308
4538
  /**
4309
- * Load this many pages.
4539
+ * Number of pages to load, -1 for all.
4310
4540
  */
4311
4541
  n?: number
4312
4542
  /**
4313
- * Render at this dpi.
4543
+ * Dpi to render at.
4314
4544
  */
4315
4545
  dpi?: number
4316
4546
  /**
4317
- * Scale output by this factor.
4547
+ * Factor to scale by.
4318
4548
  */
4319
4549
  scale?: number
4320
4550
  /**
4321
- * Background value.
4551
+ * Background colour.
4322
4552
  */
4323
4553
  background?: ArrayConstant
4324
4554
  /**
4325
- * Decrypt with this password.
4555
+ * Password to decrypt with.
4326
4556
  */
4327
4557
  password?: string
4328
4558
  /**
@@ -4337,6 +4567,10 @@ declare module Vips {
4337
4567
  * Error level to fail on.
4338
4568
  */
4339
4569
  fail_on?: FailOn | Enum
4570
+ /**
4571
+ * Don't use a cached result for this operation.
4572
+ */
4573
+ revalidate?: boolean
4340
4574
  /**
4341
4575
  * Flags for this file (output).
4342
4576
  */
@@ -4388,6 +4622,10 @@ declare module Vips {
4388
4622
  * Error level to fail on.
4389
4623
  */
4390
4624
  fail_on?: FailOn | Enum
4625
+ /**
4626
+ * Don't use a cached result for this operation.
4627
+ */
4628
+ revalidate?: boolean
4391
4629
  /**
4392
4630
  * Flags for this file (output).
4393
4631
  */
@@ -4417,6 +4655,10 @@ declare module Vips {
4417
4655
  * Error level to fail on.
4418
4656
  */
4419
4657
  fail_on?: FailOn | Enum
4658
+ /**
4659
+ * Don't use a cached result for this operation.
4660
+ */
4661
+ revalidate?: boolean
4420
4662
  /**
4421
4663
  * Flags for this file (output).
4422
4664
  */
@@ -4446,6 +4688,10 @@ declare module Vips {
4446
4688
  * Error level to fail on.
4447
4689
  */
4448
4690
  fail_on?: FailOn | Enum
4691
+ /**
4692
+ * Don't use a cached result for this operation.
4693
+ */
4694
+ revalidate?: boolean
4449
4695
  /**
4450
4696
  * Flags for this file (output).
4451
4697
  */
@@ -4471,6 +4717,10 @@ declare module Vips {
4471
4717
  * Error level to fail on.
4472
4718
  */
4473
4719
  fail_on?: FailOn | Enum
4720
+ /**
4721
+ * Don't use a cached result for this operation.
4722
+ */
4723
+ revalidate?: boolean
4474
4724
  /**
4475
4725
  * Flags for this file (output).
4476
4726
  */
@@ -4496,6 +4746,10 @@ declare module Vips {
4496
4746
  * Error level to fail on.
4497
4747
  */
4498
4748
  fail_on?: FailOn | Enum
4749
+ /**
4750
+ * Don't use a cached result for this operation.
4751
+ */
4752
+ revalidate?: boolean
4499
4753
  /**
4500
4754
  * Flags for this file (output).
4501
4755
  */
@@ -4528,6 +4782,10 @@ declare module Vips {
4528
4782
  * Error level to fail on.
4529
4783
  */
4530
4784
  fail_on?: FailOn | Enum
4785
+ /**
4786
+ * Don't use a cached result for this operation.
4787
+ */
4788
+ revalidate?: boolean
4531
4789
  /**
4532
4790
  * Flags for this file (output).
4533
4791
  */
@@ -4553,6 +4811,10 @@ declare module Vips {
4553
4811
  * Error level to fail on.
4554
4812
  */
4555
4813
  fail_on?: FailOn | Enum
4814
+ /**
4815
+ * Don't use a cached result for this operation.
4816
+ */
4817
+ revalidate?: boolean
4556
4818
  /**
4557
4819
  * Flags for this file (output).
4558
4820
  */
@@ -4578,6 +4840,10 @@ declare module Vips {
4578
4840
  * Error level to fail on.
4579
4841
  */
4580
4842
  fail_on?: FailOn | Enum
4843
+ /**
4844
+ * Don't use a cached result for this operation.
4845
+ */
4846
+ revalidate?: boolean
4581
4847
  /**
4582
4848
  * Flags for this file (output).
4583
4849
  */
@@ -4618,6 +4884,10 @@ declare module Vips {
4618
4884
  * Error level to fail on.
4619
4885
  */
4620
4886
  fail_on?: FailOn | Enum
4887
+ /**
4888
+ * Don't use a cached result for this operation.
4889
+ */
4890
+ revalidate?: boolean
4621
4891
  /**
4622
4892
  * Flags for this file (output).
4623
4893
  */
@@ -4684,6 +4954,10 @@ declare module Vips {
4684
4954
  * Error level to fail on.
4685
4955
  */
4686
4956
  fail_on?: FailOn | Enum
4957
+ /**
4958
+ * Don't use a cached result for this operation.
4959
+ */
4960
+ revalidate?: boolean
4687
4961
  /**
4688
4962
  * Flags for this file (output).
4689
4963
  */
@@ -4721,6 +4995,10 @@ declare module Vips {
4721
4995
  * Error level to fail on.
4722
4996
  */
4723
4997
  fail_on?: FailOn | Enum
4998
+ /**
4999
+ * Don't use a cached result for this operation.
5000
+ */
5001
+ revalidate?: boolean
4724
5002
  /**
4725
5003
  * Flags for this file (output).
4726
5004
  */
@@ -4758,6 +5036,10 @@ declare module Vips {
4758
5036
  * Error level to fail on.
4759
5037
  */
4760
5038
  fail_on?: FailOn | Enum
5039
+ /**
5040
+ * Don't use a cached result for this operation.
5041
+ */
5042
+ revalidate?: boolean
4761
5043
  /**
4762
5044
  * Flags for this file (output).
4763
5045
  */
@@ -4823,17 +5105,13 @@ declare module Vips {
4823
5105
  */
4824
5106
  align?: Align | Enum
4825
5107
  /**
4826
- * Enable rgba output.
5108
+ * Justify lines.
4827
5109
  */
4828
- rgba?: boolean
5110
+ justify?: boolean
4829
5111
  /**
4830
5112
  * Dpi to render at.
4831
5113
  */
4832
5114
  dpi?: number
4833
- /**
4834
- * Justify lines.
4835
- */
4836
- justify?: boolean
4837
5115
  /**
4838
5116
  * Line spacing.
4839
5117
  */
@@ -4842,6 +5120,14 @@ declare module Vips {
4842
5120
  * Load this font file.
4843
5121
  */
4844
5122
  fontfile?: string
5123
+ /**
5124
+ * Enable rgba output.
5125
+ */
5126
+ rgba?: boolean
5127
+ /**
5128
+ * Wrap lines on word or character boundaries.
5129
+ */
5130
+ wrap?: TextWrap | Enum
4845
5131
  /**
4846
5132
  * Dpi selected by autofit (output).
4847
5133
  */
@@ -5002,15 +5288,15 @@ declare module Vips {
5002
5288
  */
5003
5289
  static tiffload(filename: string, options?: {
5004
5290
  /**
5005
- * Load this page from the image.
5291
+ * First page to load.
5006
5292
  */
5007
5293
  page?: number
5008
5294
  /**
5009
- * Select subifd index.
5295
+ * Subifd index.
5010
5296
  */
5011
5297
  subifd?: number
5012
5298
  /**
5013
- * Load this many pages.
5299
+ * Number of pages to load, -1 for all.
5014
5300
  */
5015
5301
  n?: number
5016
5302
  /**
@@ -5029,6 +5315,10 @@ declare module Vips {
5029
5315
  * Error level to fail on.
5030
5316
  */
5031
5317
  fail_on?: FailOn | Enum
5318
+ /**
5319
+ * Don't use a cached result for this operation.
5320
+ */
5321
+ revalidate?: boolean
5032
5322
  /**
5033
5323
  * Flags for this file (output).
5034
5324
  */
@@ -5043,15 +5333,15 @@ declare module Vips {
5043
5333
  */
5044
5334
  static tiffloadBuffer(buffer: Blob, options?: {
5045
5335
  /**
5046
- * Load this page from the image.
5336
+ * First page to load.
5047
5337
  */
5048
5338
  page?: number
5049
5339
  /**
5050
- * Select subifd index.
5340
+ * Subifd index.
5051
5341
  */
5052
5342
  subifd?: number
5053
5343
  /**
5054
- * Load this many pages.
5344
+ * Number of pages to load, -1 for all.
5055
5345
  */
5056
5346
  n?: number
5057
5347
  /**
@@ -5070,6 +5360,10 @@ declare module Vips {
5070
5360
  * Error level to fail on.
5071
5361
  */
5072
5362
  fail_on?: FailOn | Enum
5363
+ /**
5364
+ * Don't use a cached result for this operation.
5365
+ */
5366
+ revalidate?: boolean
5073
5367
  /**
5074
5368
  * Flags for this file (output).
5075
5369
  */
@@ -5084,15 +5378,15 @@ declare module Vips {
5084
5378
  */
5085
5379
  static tiffloadSource(source: Source, options?: {
5086
5380
  /**
5087
- * Load this page from the image.
5381
+ * First page to load.
5088
5382
  */
5089
5383
  page?: number
5090
5384
  /**
5091
- * Select subifd index.
5385
+ * Subifd index.
5092
5386
  */
5093
5387
  subifd?: number
5094
5388
  /**
5095
- * Load this many pages.
5389
+ * Number of pages to load, -1 for all.
5096
5390
  */
5097
5391
  n?: number
5098
5392
  /**
@@ -5111,6 +5405,10 @@ declare module Vips {
5111
5405
  * Error level to fail on.
5112
5406
  */
5113
5407
  fail_on?: FailOn | Enum
5408
+ /**
5409
+ * Don't use a cached result for this operation.
5410
+ */
5411
+ revalidate?: boolean
5114
5412
  /**
5115
5413
  * Flags for this file (output).
5116
5414
  */
@@ -5184,6 +5482,10 @@ declare module Vips {
5184
5482
  * Error level to fail on.
5185
5483
  */
5186
5484
  fail_on?: FailOn | Enum
5485
+ /**
5486
+ * Don't use a cached result for this operation.
5487
+ */
5488
+ revalidate?: boolean
5187
5489
  /**
5188
5490
  * Flags for this file (output).
5189
5491
  */
@@ -5209,6 +5511,10 @@ declare module Vips {
5209
5511
  * Error level to fail on.
5210
5512
  */
5211
5513
  fail_on?: FailOn | Enum
5514
+ /**
5515
+ * Don't use a cached result for this operation.
5516
+ */
5517
+ revalidate?: boolean
5212
5518
  /**
5213
5519
  * Flags for this file (output).
5214
5520
  */
@@ -5223,15 +5529,15 @@ declare module Vips {
5223
5529
  */
5224
5530
  static webpload(filename: string, options?: {
5225
5531
  /**
5226
- * Load this page from the file.
5532
+ * First page to load.
5227
5533
  */
5228
5534
  page?: number
5229
5535
  /**
5230
- * Load this many pages.
5536
+ * Number of pages to load, -1 for all.
5231
5537
  */
5232
5538
  n?: number
5233
5539
  /**
5234
- * Scale factor on load.
5540
+ * Factor to scale by.
5235
5541
  */
5236
5542
  scale?: number
5237
5543
  /**
@@ -5246,6 +5552,10 @@ declare module Vips {
5246
5552
  * Error level to fail on.
5247
5553
  */
5248
5554
  fail_on?: FailOn | Enum
5555
+ /**
5556
+ * Don't use a cached result for this operation.
5557
+ */
5558
+ revalidate?: boolean
5249
5559
  /**
5250
5560
  * Flags for this file (output).
5251
5561
  */
@@ -5260,15 +5570,15 @@ declare module Vips {
5260
5570
  */
5261
5571
  static webploadBuffer(buffer: Blob, options?: {
5262
5572
  /**
5263
- * Load this page from the file.
5573
+ * First page to load.
5264
5574
  */
5265
5575
  page?: number
5266
5576
  /**
5267
- * Load this many pages.
5577
+ * Number of pages to load, -1 for all.
5268
5578
  */
5269
5579
  n?: number
5270
5580
  /**
5271
- * Scale factor on load.
5581
+ * Factor to scale by.
5272
5582
  */
5273
5583
  scale?: number
5274
5584
  /**
@@ -5283,6 +5593,10 @@ declare module Vips {
5283
5593
  * Error level to fail on.
5284
5594
  */
5285
5595
  fail_on?: FailOn | Enum
5596
+ /**
5597
+ * Don't use a cached result for this operation.
5598
+ */
5599
+ revalidate?: boolean
5286
5600
  /**
5287
5601
  * Flags for this file (output).
5288
5602
  */
@@ -5297,15 +5611,15 @@ declare module Vips {
5297
5611
  */
5298
5612
  static webploadSource(source: Source, options?: {
5299
5613
  /**
5300
- * Load this page from the file.
5614
+ * First page to load.
5301
5615
  */
5302
5616
  page?: number
5303
5617
  /**
5304
- * Load this many pages.
5618
+ * Number of pages to load, -1 for all.
5305
5619
  */
5306
5620
  n?: number
5307
5621
  /**
5308
- * Scale factor on load.
5622
+ * Factor to scale by.
5309
5623
  */
5310
5624
  scale?: number
5311
5625
  /**
@@ -5320,6 +5634,10 @@ declare module Vips {
5320
5634
  * Error level to fail on.
5321
5635
  */
5322
5636
  fail_on?: FailOn | Enum
5637
+ /**
5638
+ * Don't use a cached result for this operation.
5639
+ */
5640
+ revalidate?: boolean
5323
5641
  /**
5324
5642
  * Flags for this file (output).
5325
5643
  */
@@ -5866,7 +6184,7 @@ declare module Vips {
5866
6184
  convi(mask: Image | ArrayConstant): Image;
5867
6185
 
5868
6186
  /**
5869
- * Seperable convolution operation.
6187
+ * Separable convolution operation.
5870
6188
  * @param mask Input matrix image.
5871
6189
  * @param options Optional options.
5872
6190
  * @return Output image.
@@ -5962,9 +6280,9 @@ declare module Vips {
5962
6280
  */
5963
6281
  separator?: string
5964
6282
  /**
5965
- * Strip all metadata from image.
6283
+ * Which metadata to retain.
5966
6284
  */
5967
- strip?: boolean
6285
+ keep?: ForeignKeep | Flag
5968
6286
  /**
5969
6287
  * Background value.
5970
6288
  */
@@ -5973,6 +6291,10 @@ declare module Vips {
5973
6291
  * Set page height for multipage save.
5974
6292
  */
5975
6293
  page_height?: number
6294
+ /**
6295
+ * Filename of icc profile to embed.
6296
+ */
6297
+ profile?: string
5976
6298
  }): void;
5977
6299
 
5978
6300
  /**
@@ -5986,9 +6308,9 @@ declare module Vips {
5986
6308
  */
5987
6309
  separator?: string
5988
6310
  /**
5989
- * Strip all metadata from image.
6311
+ * Which metadata to retain.
5990
6312
  */
5991
- strip?: boolean
6313
+ keep?: ForeignKeep | Flag
5992
6314
  /**
5993
6315
  * Background value.
5994
6316
  */
@@ -5997,6 +6319,10 @@ declare module Vips {
5997
6319
  * Set page height for multipage save.
5998
6320
  */
5999
6321
  page_height?: number
6322
+ /**
6323
+ * Filename of icc profile to embed.
6324
+ */
6325
+ profile?: string
6000
6326
  }): void;
6001
6327
 
6002
6328
  /**
@@ -6147,9 +6473,9 @@ declare module Vips {
6147
6473
  */
6148
6474
  dzsave(filename: string, options?: {
6149
6475
  /**
6150
- * Base name to save to.
6476
+ * Image name.
6151
6477
  */
6152
- basename?: string
6478
+ imagename?: string
6153
6479
  /**
6154
6480
  * Directory layout.
6155
6481
  */
@@ -6194,18 +6520,18 @@ declare module Vips {
6194
6520
  * Skip tiles which are nearly equal to the background.
6195
6521
  */
6196
6522
  skip_blanks?: number
6197
- /**
6198
- * Don't strip tile metadata.
6199
- */
6200
- no_strip?: boolean
6201
6523
  /**
6202
6524
  * Resource id.
6203
6525
  */
6204
6526
  id?: string
6205
6527
  /**
6206
- * Strip all metadata from image.
6528
+ * Q factor.
6529
+ */
6530
+ Q?: number
6531
+ /**
6532
+ * Which metadata to retain.
6207
6533
  */
6208
- strip?: boolean
6534
+ keep?: ForeignKeep | Flag
6209
6535
  /**
6210
6536
  * Background value.
6211
6537
  */
@@ -6214,6 +6540,10 @@ declare module Vips {
6214
6540
  * Set page height for multipage save.
6215
6541
  */
6216
6542
  page_height?: number
6543
+ /**
6544
+ * Filename of icc profile to embed.
6545
+ */
6546
+ profile?: string
6217
6547
  }): void;
6218
6548
 
6219
6549
  /**
@@ -6223,9 +6553,9 @@ declare module Vips {
6223
6553
  */
6224
6554
  dzsaveBuffer(options?: {
6225
6555
  /**
6226
- * Base name to save to.
6556
+ * Image name.
6227
6557
  */
6228
- basename?: string
6558
+ imagename?: string
6229
6559
  /**
6230
6560
  * Directory layout.
6231
6561
  */
@@ -6270,18 +6600,18 @@ declare module Vips {
6270
6600
  * Skip tiles which are nearly equal to the background.
6271
6601
  */
6272
6602
  skip_blanks?: number
6273
- /**
6274
- * Don't strip tile metadata.
6275
- */
6276
- no_strip?: boolean
6277
6603
  /**
6278
6604
  * Resource id.
6279
6605
  */
6280
6606
  id?: string
6281
6607
  /**
6282
- * Strip all metadata from image.
6608
+ * Q factor.
6609
+ */
6610
+ Q?: number
6611
+ /**
6612
+ * Which metadata to retain.
6283
6613
  */
6284
- strip?: boolean
6614
+ keep?: ForeignKeep | Flag
6285
6615
  /**
6286
6616
  * Background value.
6287
6617
  */
@@ -6290,8 +6620,12 @@ declare module Vips {
6290
6620
  * Set page height for multipage save.
6291
6621
  */
6292
6622
  page_height?: number
6293
- }): Uint8Array;
6294
-
6623
+ /**
6624
+ * Filename of icc profile to embed.
6625
+ */
6626
+ profile?: string
6627
+ }): Uint8Array;
6628
+
6295
6629
  /**
6296
6630
  * Save image to deepzoom target.
6297
6631
  * @param target Target to save to.
@@ -6299,9 +6633,9 @@ declare module Vips {
6299
6633
  */
6300
6634
  dzsaveTarget(target: Target, options?: {
6301
6635
  /**
6302
- * Base name to save to.
6636
+ * Image name.
6303
6637
  */
6304
- basename?: string
6638
+ imagename?: string
6305
6639
  /**
6306
6640
  * Directory layout.
6307
6641
  */
@@ -6346,18 +6680,18 @@ declare module Vips {
6346
6680
  * Skip tiles which are nearly equal to the background.
6347
6681
  */
6348
6682
  skip_blanks?: number
6349
- /**
6350
- * Don't strip tile metadata.
6351
- */
6352
- no_strip?: boolean
6353
6683
  /**
6354
6684
  * Resource id.
6355
6685
  */
6356
6686
  id?: string
6357
6687
  /**
6358
- * Strip all metadata from image.
6688
+ * Q factor.
6359
6689
  */
6360
- strip?: boolean
6690
+ Q?: number
6691
+ /**
6692
+ * Which metadata to retain.
6693
+ */
6694
+ keep?: ForeignKeep | Flag
6361
6695
  /**
6362
6696
  * Background value.
6363
6697
  */
@@ -6366,6 +6700,10 @@ declare module Vips {
6366
6700
  * Set page height for multipage save.
6367
6701
  */
6368
6702
  page_height?: number
6703
+ /**
6704
+ * Filename of icc profile to embed.
6705
+ */
6706
+ profile?: string
6369
6707
  }): void;
6370
6708
 
6371
6709
  /**
@@ -6443,9 +6781,9 @@ declare module Vips {
6443
6781
  */
6444
6782
  fitssave(filename: string, options?: {
6445
6783
  /**
6446
- * Strip all metadata from image.
6784
+ * Which metadata to retain.
6447
6785
  */
6448
- strip?: boolean
6786
+ keep?: ForeignKeep | Flag
6449
6787
  /**
6450
6788
  * Background value.
6451
6789
  */
@@ -6454,6 +6792,10 @@ declare module Vips {
6454
6792
  * Set page height for multipage save.
6455
6793
  */
6456
6794
  page_height?: number
6795
+ /**
6796
+ * Filename of icc profile to embed.
6797
+ */
6798
+ profile?: string
6457
6799
  }): void;
6458
6800
 
6459
6801
  /**
@@ -6558,17 +6900,21 @@ declare module Vips {
6558
6900
  */
6559
6901
  interframe_maxerror?: number
6560
6902
  /**
6561
- * Reoptimise colour palettes.
6903
+ * Reuse palette from input.
6562
6904
  */
6563
- reoptimise?: boolean
6905
+ reuse?: boolean
6564
6906
  /**
6565
6907
  * Maximum inter-palette error for palette reusage.
6566
6908
  */
6567
6909
  interpalette_maxerror?: number
6568
6910
  /**
6569
- * Strip all metadata from image.
6911
+ * Generate an interlaced (progressive) gif.
6570
6912
  */
6571
- strip?: boolean
6913
+ interlace?: boolean
6914
+ /**
6915
+ * Which metadata to retain.
6916
+ */
6917
+ keep?: ForeignKeep | Flag
6572
6918
  /**
6573
6919
  * Background value.
6574
6920
  */
@@ -6577,6 +6923,10 @@ declare module Vips {
6577
6923
  * Set page height for multipage save.
6578
6924
  */
6579
6925
  page_height?: number
6926
+ /**
6927
+ * Filename of icc profile to embed.
6928
+ */
6929
+ profile?: string
6580
6930
  }): void;
6581
6931
 
6582
6932
  /**
@@ -6602,17 +6952,21 @@ declare module Vips {
6602
6952
  */
6603
6953
  interframe_maxerror?: number
6604
6954
  /**
6605
- * Reoptimise colour palettes.
6955
+ * Reuse palette from input.
6606
6956
  */
6607
- reoptimise?: boolean
6957
+ reuse?: boolean
6608
6958
  /**
6609
6959
  * Maximum inter-palette error for palette reusage.
6610
6960
  */
6611
6961
  interpalette_maxerror?: number
6612
6962
  /**
6613
- * Strip all metadata from image.
6963
+ * Generate an interlaced (progressive) gif.
6964
+ */
6965
+ interlace?: boolean
6966
+ /**
6967
+ * Which metadata to retain.
6614
6968
  */
6615
- strip?: boolean
6969
+ keep?: ForeignKeep | Flag
6616
6970
  /**
6617
6971
  * Background value.
6618
6972
  */
@@ -6621,6 +6975,10 @@ declare module Vips {
6621
6975
  * Set page height for multipage save.
6622
6976
  */
6623
6977
  page_height?: number
6978
+ /**
6979
+ * Filename of icc profile to embed.
6980
+ */
6981
+ profile?: string
6624
6982
  }): Uint8Array;
6625
6983
 
6626
6984
  /**
@@ -6646,17 +7004,21 @@ declare module Vips {
6646
7004
  */
6647
7005
  interframe_maxerror?: number
6648
7006
  /**
6649
- * Reoptimise colour palettes.
7007
+ * Reuse palette from input.
6650
7008
  */
6651
- reoptimise?: boolean
7009
+ reuse?: boolean
6652
7010
  /**
6653
7011
  * Maximum inter-palette error for palette reusage.
6654
7012
  */
6655
7013
  interpalette_maxerror?: number
6656
7014
  /**
6657
- * Strip all metadata from image.
7015
+ * Generate an interlaced (progressive) gif.
6658
7016
  */
6659
- strip?: boolean
7017
+ interlace?: boolean
7018
+ /**
7019
+ * Which metadata to retain.
7020
+ */
7021
+ keep?: ForeignKeep | Flag
6660
7022
  /**
6661
7023
  * Background value.
6662
7024
  */
@@ -6665,6 +7027,10 @@ declare module Vips {
6665
7027
  * Set page height for multipage save.
6666
7028
  */
6667
7029
  page_height?: number
7030
+ /**
7031
+ * Filename of icc profile to embed.
7032
+ */
7033
+ profile?: string
6668
7034
  }): void;
6669
7035
 
6670
7036
  /**
@@ -6742,9 +7108,13 @@ declare module Vips {
6742
7108
  */
6743
7109
  subsample_mode?: ForeignSubsample | Enum
6744
7110
  /**
6745
- * Strip all metadata from image.
7111
+ * Select encoder to use.
6746
7112
  */
6747
- strip?: boolean
7113
+ encoder?: ForeignHeifEncoder | Enum
7114
+ /**
7115
+ * Which metadata to retain.
7116
+ */
7117
+ keep?: ForeignKeep | Flag
6748
7118
  /**
6749
7119
  * Background value.
6750
7120
  */
@@ -6753,6 +7123,10 @@ declare module Vips {
6753
7123
  * Set page height for multipage save.
6754
7124
  */
6755
7125
  page_height?: number
7126
+ /**
7127
+ * Filename of icc profile to embed.
7128
+ */
7129
+ profile?: string
6756
7130
  }): void;
6757
7131
 
6758
7132
  /**
@@ -6786,9 +7160,13 @@ declare module Vips {
6786
7160
  */
6787
7161
  subsample_mode?: ForeignSubsample | Enum
6788
7162
  /**
6789
- * Strip all metadata from image.
7163
+ * Select encoder to use.
7164
+ */
7165
+ encoder?: ForeignHeifEncoder | Enum
7166
+ /**
7167
+ * Which metadata to retain.
6790
7168
  */
6791
- strip?: boolean
7169
+ keep?: ForeignKeep | Flag
6792
7170
  /**
6793
7171
  * Background value.
6794
7172
  */
@@ -6797,6 +7175,10 @@ declare module Vips {
6797
7175
  * Set page height for multipage save.
6798
7176
  */
6799
7177
  page_height?: number
7178
+ /**
7179
+ * Filename of icc profile to embed.
7180
+ */
7181
+ profile?: string
6800
7182
  }): Uint8Array;
6801
7183
 
6802
7184
  /**
@@ -6830,9 +7212,13 @@ declare module Vips {
6830
7212
  */
6831
7213
  subsample_mode?: ForeignSubsample | Enum
6832
7214
  /**
6833
- * Strip all metadata from image.
7215
+ * Select encoder to use.
7216
+ */
7217
+ encoder?: ForeignHeifEncoder | Enum
7218
+ /**
7219
+ * Which metadata to retain.
6834
7220
  */
6835
- strip?: boolean
7221
+ keep?: ForeignKeep | Flag
6836
7222
  /**
6837
7223
  * Background value.
6838
7224
  */
@@ -6841,6 +7227,10 @@ declare module Vips {
6841
7227
  * Set page height for multipage save.
6842
7228
  */
6843
7229
  page_height?: number
7230
+ /**
7231
+ * Filename of icc profile to embed.
7232
+ */
7233
+ profile?: string
6844
7234
  }): void;
6845
7235
 
6846
7236
  /**
@@ -7184,9 +7574,9 @@ declare module Vips {
7184
7574
  */
7185
7575
  subsample_mode?: ForeignSubsample | Enum
7186
7576
  /**
7187
- * Strip all metadata from image.
7577
+ * Which metadata to retain.
7188
7578
  */
7189
- strip?: boolean
7579
+ keep?: ForeignKeep | Flag
7190
7580
  /**
7191
7581
  * Background value.
7192
7582
  */
@@ -7195,6 +7585,10 @@ declare module Vips {
7195
7585
  * Set page height for multipage save.
7196
7586
  */
7197
7587
  page_height?: number
7588
+ /**
7589
+ * Filename of icc profile to embed.
7590
+ */
7591
+ profile?: string
7198
7592
  }): void;
7199
7593
 
7200
7594
  /**
@@ -7224,9 +7618,9 @@ declare module Vips {
7224
7618
  */
7225
7619
  subsample_mode?: ForeignSubsample | Enum
7226
7620
  /**
7227
- * Strip all metadata from image.
7621
+ * Which metadata to retain.
7228
7622
  */
7229
- strip?: boolean
7623
+ keep?: ForeignKeep | Flag
7230
7624
  /**
7231
7625
  * Background value.
7232
7626
  */
@@ -7235,6 +7629,10 @@ declare module Vips {
7235
7629
  * Set page height for multipage save.
7236
7630
  */
7237
7631
  page_height?: number
7632
+ /**
7633
+ * Filename of icc profile to embed.
7634
+ */
7635
+ profile?: string
7238
7636
  }): Uint8Array;
7239
7637
 
7240
7638
  /**
@@ -7264,9 +7662,9 @@ declare module Vips {
7264
7662
  */
7265
7663
  subsample_mode?: ForeignSubsample | Enum
7266
7664
  /**
7267
- * Strip all metadata from image.
7665
+ * Which metadata to retain.
7268
7666
  */
7269
- strip?: boolean
7667
+ keep?: ForeignKeep | Flag
7270
7668
  /**
7271
7669
  * Background value.
7272
7670
  */
@@ -7275,6 +7673,10 @@ declare module Vips {
7275
7673
  * Set page height for multipage save.
7276
7674
  */
7277
7675
  page_height?: number
7676
+ /**
7677
+ * Filename of icc profile to embed.
7678
+ */
7679
+ profile?: string
7278
7680
  }): void;
7279
7681
 
7280
7682
  /**
@@ -7287,10 +7689,6 @@ declare module Vips {
7287
7689
  * Q factor.
7288
7690
  */
7289
7691
  Q?: number
7290
- /**
7291
- * Icc profile to embed.
7292
- */
7293
- profile?: string
7294
7692
  /**
7295
7693
  * Compute optimal huffman coding tables.
7296
7694
  */
@@ -7324,9 +7722,9 @@ declare module Vips {
7324
7722
  */
7325
7723
  restart_interval?: number
7326
7724
  /**
7327
- * Strip all metadata from image.
7725
+ * Which metadata to retain.
7328
7726
  */
7329
- strip?: boolean
7727
+ keep?: ForeignKeep | Flag
7330
7728
  /**
7331
7729
  * Background value.
7332
7730
  */
@@ -7335,6 +7733,10 @@ declare module Vips {
7335
7733
  * Set page height for multipage save.
7336
7734
  */
7337
7735
  page_height?: number
7736
+ /**
7737
+ * Filename of icc profile to embed.
7738
+ */
7739
+ profile?: string
7338
7740
  }): void;
7339
7741
 
7340
7742
  /**
@@ -7347,10 +7749,6 @@ declare module Vips {
7347
7749
  * Q factor.
7348
7750
  */
7349
7751
  Q?: number
7350
- /**
7351
- * Icc profile to embed.
7352
- */
7353
- profile?: string
7354
7752
  /**
7355
7753
  * Compute optimal huffman coding tables.
7356
7754
  */
@@ -7384,9 +7782,9 @@ declare module Vips {
7384
7782
  */
7385
7783
  restart_interval?: number
7386
7784
  /**
7387
- * Strip all metadata from image.
7785
+ * Which metadata to retain.
7388
7786
  */
7389
- strip?: boolean
7787
+ keep?: ForeignKeep | Flag
7390
7788
  /**
7391
7789
  * Background value.
7392
7790
  */
@@ -7395,6 +7793,10 @@ declare module Vips {
7395
7793
  * Set page height for multipage save.
7396
7794
  */
7397
7795
  page_height?: number
7796
+ /**
7797
+ * Filename of icc profile to embed.
7798
+ */
7799
+ profile?: string
7398
7800
  }): Uint8Array;
7399
7801
 
7400
7802
  /**
@@ -7406,10 +7808,6 @@ declare module Vips {
7406
7808
  * Q factor.
7407
7809
  */
7408
7810
  Q?: number
7409
- /**
7410
- * Icc profile to embed.
7411
- */
7412
- profile?: string
7413
7811
  /**
7414
7812
  * Compute optimal huffman coding tables.
7415
7813
  */
@@ -7443,9 +7841,9 @@ declare module Vips {
7443
7841
  */
7444
7842
  restart_interval?: number
7445
7843
  /**
7446
- * Strip all metadata from image.
7844
+ * Which metadata to retain.
7447
7845
  */
7448
- strip?: boolean
7846
+ keep?: ForeignKeep | Flag
7449
7847
  /**
7450
7848
  * Background value.
7451
7849
  */
@@ -7454,6 +7852,10 @@ declare module Vips {
7454
7852
  * Set page height for multipage save.
7455
7853
  */
7456
7854
  page_height?: number
7855
+ /**
7856
+ * Filename of icc profile to embed.
7857
+ */
7858
+ profile?: string
7457
7859
  }): void;
7458
7860
 
7459
7861
  /**
@@ -7466,10 +7868,6 @@ declare module Vips {
7466
7868
  * Q factor.
7467
7869
  */
7468
7870
  Q?: number
7469
- /**
7470
- * Icc profile to embed.
7471
- */
7472
- profile?: string
7473
7871
  /**
7474
7872
  * Compute optimal huffman coding tables.
7475
7873
  */
@@ -7503,9 +7901,9 @@ declare module Vips {
7503
7901
  */
7504
7902
  restart_interval?: number
7505
7903
  /**
7506
- * Strip all metadata from image.
7904
+ * Which metadata to retain.
7507
7905
  */
7508
- strip?: boolean
7906
+ keep?: ForeignKeep | Flag
7509
7907
  /**
7510
7908
  * Background value.
7511
7909
  */
@@ -7514,6 +7912,10 @@ declare module Vips {
7514
7912
  * Set page height for multipage save.
7515
7913
  */
7516
7914
  page_height?: number
7915
+ /**
7916
+ * Filename of icc profile to embed.
7917
+ */
7918
+ profile?: string
7517
7919
  }): void;
7518
7920
 
7519
7921
  /**
@@ -7543,9 +7945,9 @@ declare module Vips {
7543
7945
  */
7544
7946
  Q?: number
7545
7947
  /**
7546
- * Strip all metadata from image.
7948
+ * Which metadata to retain.
7547
7949
  */
7548
- strip?: boolean
7950
+ keep?: ForeignKeep | Flag
7549
7951
  /**
7550
7952
  * Background value.
7551
7953
  */
@@ -7554,6 +7956,10 @@ declare module Vips {
7554
7956
  * Set page height for multipage save.
7555
7957
  */
7556
7958
  page_height?: number
7959
+ /**
7960
+ * Filename of icc profile to embed.
7961
+ */
7962
+ profile?: string
7557
7963
  }): void;
7558
7964
 
7559
7965
  /**
@@ -7583,9 +7989,9 @@ declare module Vips {
7583
7989
  */
7584
7990
  Q?: number
7585
7991
  /**
7586
- * Strip all metadata from image.
7992
+ * Which metadata to retain.
7587
7993
  */
7588
- strip?: boolean
7994
+ keep?: ForeignKeep | Flag
7589
7995
  /**
7590
7996
  * Background value.
7591
7997
  */
@@ -7594,6 +8000,10 @@ declare module Vips {
7594
8000
  * Set page height for multipage save.
7595
8001
  */
7596
8002
  page_height?: number
8003
+ /**
8004
+ * Filename of icc profile to embed.
8005
+ */
8006
+ profile?: string
7597
8007
  }): Uint8Array;
7598
8008
 
7599
8009
  /**
@@ -7623,9 +8033,9 @@ declare module Vips {
7623
8033
  */
7624
8034
  Q?: number
7625
8035
  /**
7626
- * Strip all metadata from image.
8036
+ * Which metadata to retain.
7627
8037
  */
7628
- strip?: boolean
8038
+ keep?: ForeignKeep | Flag
7629
8039
  /**
7630
8040
  * Background value.
7631
8041
  */
@@ -7634,6 +8044,10 @@ declare module Vips {
7634
8044
  * Set page height for multipage save.
7635
8045
  */
7636
8046
  page_height?: number
8047
+ /**
8048
+ * Filename of icc profile to embed.
8049
+ */
8050
+ profile?: string
7637
8051
  }): void;
7638
8052
 
7639
8053
  /**
@@ -7713,9 +8127,9 @@ declare module Vips {
7713
8127
  */
7714
8128
  bitdepth?: number
7715
8129
  /**
7716
- * Strip all metadata from image.
8130
+ * Which metadata to retain.
7717
8131
  */
7718
- strip?: boolean
8132
+ keep?: ForeignKeep | Flag
7719
8133
  /**
7720
8134
  * Background value.
7721
8135
  */
@@ -7724,6 +8138,10 @@ declare module Vips {
7724
8138
  * Set page height for multipage save.
7725
8139
  */
7726
8140
  page_height?: number
8141
+ /**
8142
+ * Filename of icc profile to embed.
8143
+ */
8144
+ profile?: string
7727
8145
  }): void;
7728
8146
 
7729
8147
  /**
@@ -7753,9 +8171,9 @@ declare module Vips {
7753
8171
  */
7754
8172
  bitdepth?: number
7755
8173
  /**
7756
- * Strip all metadata from image.
8174
+ * Which metadata to retain.
7757
8175
  */
7758
- strip?: boolean
8176
+ keep?: ForeignKeep | Flag
7759
8177
  /**
7760
8178
  * Background value.
7761
8179
  */
@@ -7764,6 +8182,10 @@ declare module Vips {
7764
8182
  * Set page height for multipage save.
7765
8183
  */
7766
8184
  page_height?: number
8185
+ /**
8186
+ * Filename of icc profile to embed.
8187
+ */
8188
+ profile?: string
7767
8189
  }): Uint8Array;
7768
8190
 
7769
8191
  /**
@@ -7864,9 +8286,9 @@ declare module Vips {
7864
8286
  */
7865
8287
  matrixprint(options?: {
7866
8288
  /**
7867
- * Strip all metadata from image.
8289
+ * Which metadata to retain.
7868
8290
  */
7869
- strip?: boolean
8291
+ keep?: ForeignKeep | Flag
7870
8292
  /**
7871
8293
  * Background value.
7872
8294
  */
@@ -7875,6 +8297,10 @@ declare module Vips {
7875
8297
  * Set page height for multipage save.
7876
8298
  */
7877
8299
  page_height?: number
8300
+ /**
8301
+ * Filename of icc profile to embed.
8302
+ */
8303
+ profile?: string
7878
8304
  }): void;
7879
8305
 
7880
8306
  /**
@@ -7884,9 +8310,9 @@ declare module Vips {
7884
8310
  */
7885
8311
  matrixsave(filename: string, options?: {
7886
8312
  /**
7887
- * Strip all metadata from image.
8313
+ * Which metadata to retain.
7888
8314
  */
7889
- strip?: boolean
8315
+ keep?: ForeignKeep | Flag
7890
8316
  /**
7891
8317
  * Background value.
7892
8318
  */
@@ -7895,6 +8321,10 @@ declare module Vips {
7895
8321
  * Set page height for multipage save.
7896
8322
  */
7897
8323
  page_height?: number
8324
+ /**
8325
+ * Filename of icc profile to embed.
8326
+ */
8327
+ profile?: string
7898
8328
  }): void;
7899
8329
 
7900
8330
  /**
@@ -7904,9 +8334,9 @@ declare module Vips {
7904
8334
  */
7905
8335
  matrixsaveTarget(target: Target, options?: {
7906
8336
  /**
7907
- * Strip all metadata from image.
8337
+ * Which metadata to retain.
7908
8338
  */
7909
- strip?: boolean
8339
+ keep?: ForeignKeep | Flag
7910
8340
  /**
7911
8341
  * Background value.
7912
8342
  */
@@ -7915,6 +8345,10 @@ declare module Vips {
7915
8345
  * Set page height for multipage save.
7916
8346
  */
7917
8347
  page_height?: number
8348
+ /**
8349
+ * Filename of icc profile to embed.
8350
+ */
8351
+ profile?: string
7918
8352
  }): void;
7919
8353
 
7920
8354
  /**
@@ -8149,9 +8583,9 @@ declare module Vips {
8149
8583
  */
8150
8584
  niftisave(filename: string, options?: {
8151
8585
  /**
8152
- * Strip all metadata from image.
8586
+ * Which metadata to retain.
8153
8587
  */
8154
- strip?: boolean
8588
+ keep?: ForeignKeep | Flag
8155
8589
  /**
8156
8590
  * Background value.
8157
8591
  */
@@ -8160,6 +8594,10 @@ declare module Vips {
8160
8594
  * Set page height for multipage save.
8161
8595
  */
8162
8596
  page_height?: number
8597
+ /**
8598
+ * Filename of icc profile to embed.
8599
+ */
8600
+ profile?: string
8163
8601
  }): void;
8164
8602
 
8165
8603
  /**
@@ -8190,10 +8628,6 @@ declare module Vips {
8190
8628
  * Interlace image.
8191
8629
  */
8192
8630
  interlace?: boolean
8193
- /**
8194
- * Icc profile to embed.
8195
- */
8196
- profile?: string
8197
8631
  /**
8198
8632
  * Libspng row filter flag(s).
8199
8633
  */
@@ -8219,9 +8653,9 @@ declare module Vips {
8219
8653
  */
8220
8654
  effort?: number
8221
8655
  /**
8222
- * Strip all metadata from image.
8656
+ * Which metadata to retain.
8223
8657
  */
8224
- strip?: boolean
8658
+ keep?: ForeignKeep | Flag
8225
8659
  /**
8226
8660
  * Background value.
8227
8661
  */
@@ -8230,6 +8664,10 @@ declare module Vips {
8230
8664
  * Set page height for multipage save.
8231
8665
  */
8232
8666
  page_height?: number
8667
+ /**
8668
+ * Filename of icc profile to embed.
8669
+ */
8670
+ profile?: string
8233
8671
  }): void;
8234
8672
 
8235
8673
  /**
@@ -8246,10 +8684,6 @@ declare module Vips {
8246
8684
  * Interlace image.
8247
8685
  */
8248
8686
  interlace?: boolean
8249
- /**
8250
- * Icc profile to embed.
8251
- */
8252
- profile?: string
8253
8687
  /**
8254
8688
  * Libspng row filter flag(s).
8255
8689
  */
@@ -8275,9 +8709,9 @@ declare module Vips {
8275
8709
  */
8276
8710
  effort?: number
8277
8711
  /**
8278
- * Strip all metadata from image.
8712
+ * Which metadata to retain.
8279
8713
  */
8280
- strip?: boolean
8714
+ keep?: ForeignKeep | Flag
8281
8715
  /**
8282
8716
  * Background value.
8283
8717
  */
@@ -8286,6 +8720,10 @@ declare module Vips {
8286
8720
  * Set page height for multipage save.
8287
8721
  */
8288
8722
  page_height?: number
8723
+ /**
8724
+ * Filename of icc profile to embed.
8725
+ */
8726
+ profile?: string
8289
8727
  }): Uint8Array;
8290
8728
 
8291
8729
  /**
@@ -8302,10 +8740,6 @@ declare module Vips {
8302
8740
  * Interlace image.
8303
8741
  */
8304
8742
  interlace?: boolean
8305
- /**
8306
- * Icc profile to embed.
8307
- */
8308
- profile?: string
8309
8743
  /**
8310
8744
  * Libspng row filter flag(s).
8311
8745
  */
@@ -8331,9 +8765,9 @@ declare module Vips {
8331
8765
  */
8332
8766
  effort?: number
8333
8767
  /**
8334
- * Strip all metadata from image.
8768
+ * Which metadata to retain.
8335
8769
  */
8336
- strip?: boolean
8770
+ keep?: ForeignKeep | Flag
8337
8771
  /**
8338
8772
  * Background value.
8339
8773
  */
@@ -8342,6 +8776,10 @@ declare module Vips {
8342
8776
  * Set page height for multipage save.
8343
8777
  */
8344
8778
  page_height?: number
8779
+ /**
8780
+ * Filename of icc profile to embed.
8781
+ */
8782
+ profile?: string
8345
8783
  }): void;
8346
8784
 
8347
8785
  /**
@@ -8363,9 +8801,9 @@ declare module Vips {
8363
8801
  */
8364
8802
  bitdepth?: number
8365
8803
  /**
8366
- * Strip all metadata from image.
8804
+ * Which metadata to retain.
8367
8805
  */
8368
- strip?: boolean
8806
+ keep?: ForeignKeep | Flag
8369
8807
  /**
8370
8808
  * Background value.
8371
8809
  */
@@ -8374,6 +8812,10 @@ declare module Vips {
8374
8812
  * Set page height for multipage save.
8375
8813
  */
8376
8814
  page_height?: number
8815
+ /**
8816
+ * Filename of icc profile to embed.
8817
+ */
8818
+ profile?: string
8377
8819
  }): void;
8378
8820
 
8379
8821
  /**
@@ -8395,9 +8837,9 @@ declare module Vips {
8395
8837
  */
8396
8838
  bitdepth?: number
8397
8839
  /**
8398
- * Strip all metadata from image.
8840
+ * Which metadata to retain.
8399
8841
  */
8400
- strip?: boolean
8842
+ keep?: ForeignKeep | Flag
8401
8843
  /**
8402
8844
  * Background value.
8403
8845
  */
@@ -8406,6 +8848,10 @@ declare module Vips {
8406
8848
  * Set page height for multipage save.
8407
8849
  */
8408
8850
  page_height?: number
8851
+ /**
8852
+ * Filename of icc profile to embed.
8853
+ */
8854
+ profile?: string
8409
8855
  }): void;
8410
8856
 
8411
8857
  /**
@@ -8420,6 +8866,12 @@ declare module Vips {
8420
8866
  max_alpha?: number
8421
8867
  }): Image;
8422
8868
 
8869
+ /**
8870
+ * Prewitt edge detector.
8871
+ * @return Output image.
8872
+ */
8873
+ prewitt(): Image;
8874
+
8423
8875
  /**
8424
8876
  * Resample an image with a quadratic transform.
8425
8877
  * @param coeff Coefficient matrix.
@@ -8446,9 +8898,9 @@ declare module Vips {
8446
8898
  */
8447
8899
  radsave(filename: string, options?: {
8448
8900
  /**
8449
- * Strip all metadata from image.
8901
+ * Which metadata to retain.
8450
8902
  */
8451
- strip?: boolean
8903
+ keep?: ForeignKeep | Flag
8452
8904
  /**
8453
8905
  * Background value.
8454
8906
  */
@@ -8457,6 +8909,10 @@ declare module Vips {
8457
8909
  * Set page height for multipage save.
8458
8910
  */
8459
8911
  page_height?: number
8912
+ /**
8913
+ * Filename of icc profile to embed.
8914
+ */
8915
+ profile?: string
8460
8916
  }): void;
8461
8917
 
8462
8918
  /**
@@ -8466,9 +8922,9 @@ declare module Vips {
8466
8922
  */
8467
8923
  radsaveBuffer(options?: {
8468
8924
  /**
8469
- * Strip all metadata from image.
8925
+ * Which metadata to retain.
8470
8926
  */
8471
- strip?: boolean
8927
+ keep?: ForeignKeep | Flag
8472
8928
  /**
8473
8929
  * Background value.
8474
8930
  */
@@ -8477,6 +8933,10 @@ declare module Vips {
8477
8933
  * Set page height for multipage save.
8478
8934
  */
8479
8935
  page_height?: number
8936
+ /**
8937
+ * Filename of icc profile to embed.
8938
+ */
8939
+ profile?: string
8480
8940
  }): Uint8Array;
8481
8941
 
8482
8942
  /**
@@ -8486,9 +8946,9 @@ declare module Vips {
8486
8946
  */
8487
8947
  radsaveTarget(target: Target, options?: {
8488
8948
  /**
8489
- * Strip all metadata from image.
8949
+ * Which metadata to retain.
8490
8950
  */
8491
- strip?: boolean
8951
+ keep?: ForeignKeep | Flag
8492
8952
  /**
8493
8953
  * Background value.
8494
8954
  */
@@ -8497,6 +8957,10 @@ declare module Vips {
8497
8957
  * Set page height for multipage save.
8498
8958
  */
8499
8959
  page_height?: number
8960
+ /**
8961
+ * Filename of icc profile to embed.
8962
+ */
8963
+ profile?: string
8500
8964
  }): void;
8501
8965
 
8502
8966
  /**
@@ -8515,9 +8979,9 @@ declare module Vips {
8515
8979
  */
8516
8980
  rawsave(filename: string, options?: {
8517
8981
  /**
8518
- * Strip all metadata from image.
8982
+ * Which metadata to retain.
8519
8983
  */
8520
- strip?: boolean
8984
+ keep?: ForeignKeep | Flag
8521
8985
  /**
8522
8986
  * Background value.
8523
8987
  */
@@ -8526,6 +8990,10 @@ declare module Vips {
8526
8990
  * Set page height for multipage save.
8527
8991
  */
8528
8992
  page_height?: number
8993
+ /**
8994
+ * Filename of icc profile to embed.
8995
+ */
8996
+ profile?: string
8529
8997
  }): void;
8530
8998
 
8531
8999
  /**
@@ -8535,9 +9003,9 @@ declare module Vips {
8535
9003
  */
8536
9004
  rawsaveFd(fd: number, options?: {
8537
9005
  /**
8538
- * Strip all metadata from image.
9006
+ * Which metadata to retain.
8539
9007
  */
8540
- strip?: boolean
9008
+ keep?: ForeignKeep | Flag
8541
9009
  /**
8542
9010
  * Background value.
8543
9011
  */
@@ -8546,6 +9014,10 @@ declare module Vips {
8546
9014
  * Set page height for multipage save.
8547
9015
  */
8548
9016
  page_height?: number
9017
+ /**
9018
+ * Filename of icc profile to embed.
9019
+ */
9020
+ profile?: string
8549
9021
  }): void;
8550
9022
 
8551
9023
  /**
@@ -8768,6 +9240,12 @@ declare module Vips {
8768
9240
  log?: boolean
8769
9241
  }): Image;
8770
9242
 
9243
+ /**
9244
+ * Scharr edge detector.
9245
+ * @return Output image.
9246
+ */
9247
+ scharr(): Image;
9248
+
8771
9249
  /**
8772
9250
  * Check sequential access.
8773
9251
  * @param options Optional options.
@@ -8910,6 +9388,18 @@ declare module Vips {
8910
9388
  * How to measure interestingness.
8911
9389
  */
8912
9390
  interesting?: Interesting | Enum
9391
+ /**
9392
+ * Input image already has premultiplied alpha.
9393
+ */
9394
+ premultiplied?: boolean
9395
+ /**
9396
+ * Horizontal position of attention centre (output).
9397
+ */
9398
+ attention_x?: number | undefined
9399
+ /**
9400
+ * Vertical position of attention centre (output).
9401
+ */
9402
+ attention_y?: number | undefined
8913
9403
  }): Image;
8914
9404
 
8915
9405
  /**
@@ -9047,10 +9537,6 @@ declare module Vips {
9047
9537
  * Compression prediction.
9048
9538
  */
9049
9539
  predictor?: ForeignTiffPredictor | Enum
9050
- /**
9051
- * Icc profile to embed.
9052
- */
9053
- profile?: string
9054
9540
  /**
9055
9541
  * Write a tiled tiff.
9056
9542
  */
@@ -9120,9 +9606,9 @@ declare module Vips {
9120
9606
  */
9121
9607
  premultiply?: boolean
9122
9608
  /**
9123
- * Strip all metadata from image.
9609
+ * Which metadata to retain.
9124
9610
  */
9125
- strip?: boolean
9611
+ keep?: ForeignKeep | Flag
9126
9612
  /**
9127
9613
  * Background value.
9128
9614
  */
@@ -9131,6 +9617,10 @@ declare module Vips {
9131
9617
  * Set page height for multipage save.
9132
9618
  */
9133
9619
  page_height?: number
9620
+ /**
9621
+ * Filename of icc profile to embed.
9622
+ */
9623
+ profile?: string
9134
9624
  }): void;
9135
9625
 
9136
9626
  /**
@@ -9151,10 +9641,6 @@ declare module Vips {
9151
9641
  * Compression prediction.
9152
9642
  */
9153
9643
  predictor?: ForeignTiffPredictor | Enum
9154
- /**
9155
- * Icc profile to embed.
9156
- */
9157
- profile?: string
9158
9644
  /**
9159
9645
  * Write a tiled tiff.
9160
9646
  */
@@ -9224,9 +9710,9 @@ declare module Vips {
9224
9710
  */
9225
9711
  premultiply?: boolean
9226
9712
  /**
9227
- * Strip all metadata from image.
9713
+ * Which metadata to retain.
9228
9714
  */
9229
- strip?: boolean
9715
+ keep?: ForeignKeep | Flag
9230
9716
  /**
9231
9717
  * Background value.
9232
9718
  */
@@ -9235,6 +9721,10 @@ declare module Vips {
9235
9721
  * Set page height for multipage save.
9236
9722
  */
9237
9723
  page_height?: number
9724
+ /**
9725
+ * Filename of icc profile to embed.
9726
+ */
9727
+ profile?: string
9238
9728
  }): Uint8Array;
9239
9729
 
9240
9730
  /**
@@ -9255,10 +9745,6 @@ declare module Vips {
9255
9745
  * Compression prediction.
9256
9746
  */
9257
9747
  predictor?: ForeignTiffPredictor | Enum
9258
- /**
9259
- * Icc profile to embed.
9260
- */
9261
- profile?: string
9262
9748
  /**
9263
9749
  * Write a tiled tiff.
9264
9750
  */
@@ -9328,9 +9814,9 @@ declare module Vips {
9328
9814
  */
9329
9815
  premultiply?: boolean
9330
9816
  /**
9331
- * Strip all metadata from image.
9817
+ * Which metadata to retain.
9332
9818
  */
9333
- strip?: boolean
9819
+ keep?: ForeignKeep | Flag
9334
9820
  /**
9335
9821
  * Background value.
9336
9822
  */
@@ -9339,6 +9825,10 @@ declare module Vips {
9339
9825
  * Set page height for multipage save.
9340
9826
  */
9341
9827
  page_height?: number
9828
+ /**
9829
+ * Filename of icc profile to embed.
9830
+ */
9831
+ profile?: string
9342
9832
  }): void;
9343
9833
 
9344
9834
  /**
@@ -9408,9 +9898,9 @@ declare module Vips {
9408
9898
  */
9409
9899
  vipssave(filename: string, options?: {
9410
9900
  /**
9411
- * Strip all metadata from image.
9901
+ * Which metadata to retain.
9412
9902
  */
9413
- strip?: boolean
9903
+ keep?: ForeignKeep | Flag
9414
9904
  /**
9415
9905
  * Background value.
9416
9906
  */
@@ -9419,6 +9909,10 @@ declare module Vips {
9419
9909
  * Set page height for multipage save.
9420
9910
  */
9421
9911
  page_height?: number
9912
+ /**
9913
+ * Filename of icc profile to embed.
9914
+ */
9915
+ profile?: string
9422
9916
  }): void;
9423
9917
 
9424
9918
  /**
@@ -9428,9 +9922,9 @@ declare module Vips {
9428
9922
  */
9429
9923
  vipssaveTarget(target: Target, options?: {
9430
9924
  /**
9431
- * Strip all metadata from image.
9925
+ * Which metadata to retain.
9432
9926
  */
9433
- strip?: boolean
9927
+ keep?: ForeignKeep | Flag
9434
9928
  /**
9435
9929
  * Background value.
9436
9930
  */
@@ -9439,10 +9933,14 @@ declare module Vips {
9439
9933
  * Set page height for multipage save.
9440
9934
  */
9441
9935
  page_height?: number
9936
+ /**
9937
+ * Filename of icc profile to embed.
9938
+ */
9939
+ profile?: string
9442
9940
  }): void;
9443
9941
 
9444
9942
  /**
9445
- * Save image to webp file.
9943
+ * Save as webp.
9446
9944
  * @param filename Filename to save to.
9447
9945
  * @param options Optional options.
9448
9946
  */
@@ -9487,18 +9985,14 @@ declare module Vips {
9487
9985
  * Level of cpu effort to reduce file size.
9488
9986
  */
9489
9987
  effort?: number
9490
- /**
9491
- * Icc profile to embed.
9492
- */
9493
- profile?: string
9494
9988
  /**
9495
9989
  * Allow mixed encoding (might reduce file size).
9496
9990
  */
9497
9991
  mixed?: boolean
9498
9992
  /**
9499
- * Strip all metadata from image.
9993
+ * Which metadata to retain.
9500
9994
  */
9501
- strip?: boolean
9995
+ keep?: ForeignKeep | Flag
9502
9996
  /**
9503
9997
  * Background value.
9504
9998
  */
@@ -9507,10 +10001,14 @@ declare module Vips {
9507
10001
  * Set page height for multipage save.
9508
10002
  */
9509
10003
  page_height?: number
10004
+ /**
10005
+ * Filename of icc profile to embed.
10006
+ */
10007
+ profile?: string
9510
10008
  }): void;
9511
10009
 
9512
10010
  /**
9513
- * Save image to webp buffer.
10011
+ * Save as webp.
9514
10012
  * @param options Optional options.
9515
10013
  * @return Buffer to save to.
9516
10014
  */
@@ -9556,17 +10054,80 @@ declare module Vips {
9556
10054
  */
9557
10055
  effort?: number
9558
10056
  /**
9559
- * Icc profile to embed.
10057
+ * Allow mixed encoding (might reduce file size).
10058
+ */
10059
+ mixed?: boolean
10060
+ /**
10061
+ * Which metadata to retain.
10062
+ */
10063
+ keep?: ForeignKeep | Flag
10064
+ /**
10065
+ * Background value.
10066
+ */
10067
+ background?: ArrayConstant
10068
+ /**
10069
+ * Set page height for multipage save.
10070
+ */
10071
+ page_height?: number
10072
+ /**
10073
+ * Filename of icc profile to embed.
9560
10074
  */
9561
10075
  profile?: string
10076
+ }): Uint8Array;
10077
+
10078
+ /**
10079
+ * Save image to webp mime.
10080
+ * @param options Optional options.
10081
+ */
10082
+ webpsaveMime(options?: {
10083
+ /**
10084
+ * Q factor.
10085
+ */
10086
+ Q?: number
10087
+ /**
10088
+ * Enable lossless compression.
10089
+ */
10090
+ lossless?: boolean
10091
+ /**
10092
+ * Preset for lossy compression.
10093
+ */
10094
+ preset?: ForeignWebpPreset | Enum
10095
+ /**
10096
+ * Enable high quality chroma subsampling.
10097
+ */
10098
+ smart_subsample?: boolean
10099
+ /**
10100
+ * Enable preprocessing in lossless mode (uses q).
10101
+ */
10102
+ near_lossless?: boolean
10103
+ /**
10104
+ * Change alpha plane fidelity for lossy compression.
10105
+ */
10106
+ alpha_q?: number
10107
+ /**
10108
+ * Optimise for minimum size.
10109
+ */
10110
+ min_size?: boolean
10111
+ /**
10112
+ * Minimum number of frames between key frames.
10113
+ */
10114
+ kmin?: number
10115
+ /**
10116
+ * Maximum number of frames between key frames.
10117
+ */
10118
+ kmax?: number
10119
+ /**
10120
+ * Level of cpu effort to reduce file size.
10121
+ */
10122
+ effort?: number
9562
10123
  /**
9563
10124
  * Allow mixed encoding (might reduce file size).
9564
10125
  */
9565
10126
  mixed?: boolean
9566
10127
  /**
9567
- * Strip all metadata from image.
10128
+ * Which metadata to retain.
9568
10129
  */
9569
- strip?: boolean
10130
+ keep?: ForeignKeep | Flag
9570
10131
  /**
9571
10132
  * Background value.
9572
10133
  */
@@ -9575,10 +10136,14 @@ declare module Vips {
9575
10136
  * Set page height for multipage save.
9576
10137
  */
9577
10138
  page_height?: number
9578
- }): Uint8Array;
10139
+ /**
10140
+ * Filename of icc profile to embed.
10141
+ */
10142
+ profile?: string
10143
+ }): void;
9579
10144
 
9580
10145
  /**
9581
- * Save image to webp target.
10146
+ * Save as webp.
9582
10147
  * @param target Target to save to.
9583
10148
  * @param options Optional options.
9584
10149
  */
@@ -9623,18 +10188,14 @@ declare module Vips {
9623
10188
  * Level of cpu effort to reduce file size.
9624
10189
  */
9625
10190
  effort?: number
9626
- /**
9627
- * Icc profile to embed.
9628
- */
9629
- profile?: string
9630
10191
  /**
9631
10192
  * Allow mixed encoding (might reduce file size).
9632
10193
  */
9633
10194
  mixed?: boolean
9634
10195
  /**
9635
- * Strip all metadata from image.
10196
+ * Which metadata to retain.
9636
10197
  */
9637
- strip?: boolean
10198
+ keep?: ForeignKeep | Flag
9638
10199
  /**
9639
10200
  * Background value.
9640
10201
  */
@@ -9643,6 +10204,10 @@ declare module Vips {
9643
10204
  * Set page height for multipage save.
9644
10205
  */
9645
10206
  page_height?: number
10207
+ /**
10208
+ * Filename of icc profile to embed.
10209
+ */
10210
+ profile?: string
9646
10211
  }): void;
9647
10212
 
9648
10213
  /**