wasm-vips 0.0.13 → 0.0.14

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
@@ -131,6 +131,7 @@ declare module Vips {
131
131
  * Support for `using ...`.
132
132
  * See also: https://github.com/tc39/proposal-explicit-resource-management
133
133
  */
134
+ // @ts-ignore - If targeting lower than ESNext, this symbol might not exist.
134
135
  [Symbol.dispose](): void;
135
136
 
136
137
  /**
@@ -1495,7 +1496,7 @@ declare module Vips {
1495
1496
  * The format used for each band element.
1496
1497
  *
1497
1498
  * Each corresponds to a native C type for the current machine. For example,
1498
- * #VIPS_FORMAT_USHORT is <type>unsigned short</type>.
1499
+ * [enum@Vips.BandFormat.USHORT] is `unsigned short`.
1499
1500
  */
1500
1501
  enum BandFormat {
1501
1502
  /**
@@ -1541,12 +1542,11 @@ declare module Vips {
1541
1542
  }
1542
1543
 
1543
1544
  /**
1544
- * The various Porter-Duff and PDF blend modes. See vips_composite(),
1545
+ * The various Porter-Duff and PDF blend modes. See [func@Image.composite],
1545
1546
  * for example.
1546
1547
  *
1547
- * The Cairo docs have a nice explanation of all the blend modes:
1548
- *
1549
- * https://www.cairographics.org/operators
1548
+ * The Cairo docs have [a nice explanation of all the blend
1549
+ * modes](https://www.cairographics.org/operators).
1550
1550
  *
1551
1551
  * The non-separable modes are not implemented.
1552
1552
  */
@@ -1680,7 +1680,7 @@ declare module Vips {
1680
1680
 
1681
1681
  /**
1682
1682
  * How the values in an image should be interpreted. For example, a
1683
- * three-band float image of type #VIPS_INTERPRETATION_LAB should have its
1683
+ * three-band float image of type [enum@Vips.Interpretation.LAB] should have its
1684
1684
  * pixels interpreted as coordinates in CIE Lab space.
1685
1685
  *
1686
1686
  * RGB and sRGB are treated in the same way. Use the colourspace functions if
@@ -1715,7 +1715,7 @@ declare module Vips {
1715
1715
  */
1716
1716
  cmyk = 15, // 'cmyk'
1717
1717
  /**
1718
- * Implies #VIPS_CODING_LABQ
1718
+ * Implies [enum@Vips.Coding.LABQ]
1719
1719
  */
1720
1720
  labq = 16, // 'labq'
1721
1721
  /**
@@ -1769,126 +1769,81 @@ declare module Vips {
1769
1769
  }
1770
1770
 
1771
1771
  /**
1772
- * See vips_image_pipelinev(). Operations can hint
1773
- * the kind of demand geometry they prefer
1774
- * to the VIPS image IO system.
1775
- *
1776
- * These demand styles are given below in order of increasing
1777
- * specialisation. When demanding output from a pipeline,
1778
- * vips_image_generate()
1779
- * will use the most general style requested by the operations
1780
- * in the pipeline.
1781
- *
1782
- * #VIPS_DEMAND_STYLE_SMALLTILE --- This is the most general demand format.
1783
- * Output is demanded in small (around 100x100 pel) sections. This style works
1784
- * reasonably efficiently, even for bizarre operations like 45 degree rotate.
1785
- *
1786
- * #VIPS_DEMAND_STYLE_FATSTRIP --- This operation would like to output strips
1787
- * the width of the image and as high as possible. This option is suitable
1788
- * for area operations which do not violently transform coordinates, such
1789
- * as vips_conv().
1790
- *
1791
- * #VIPS_DEMAND_STYLE_THINSTRIP --- This operation would like to output strips
1792
- * the width of the image and a few pels high. This option is suitable for
1793
- * point-to-point operations, such as those in the arithmetic package.
1794
- *
1795
- * #VIPS_DEMAND_STYLE_ANY --- This image is not being demand-read from a disc
1796
- * file (even indirectly) so any demand style is OK. It's used for things like
1797
- * vips_black() where the pixels are calculated.
1798
- *
1799
- * See also: vips_image_pipelinev().
1800
- */
1801
- enum DemandStyle {
1802
- /**
1803
- * Demand in small (typically 128x128 pixel) tiles
1804
- */
1805
- smalltile = 0, // 'smalltile'
1806
- /**
1807
- * Demand in fat (typically 16 pixel high) strips
1808
- */
1809
- fatstrip = 1, // 'fatstrip'
1810
- /**
1811
- * Demand in thin (typically 1 pixel high) strips
1812
- */
1813
- thinstrip = 2 // 'thinstrip'
1814
- }
1815
-
1816
- /**
1817
- * See also: vips_relational().
1772
+ * See also: [method@Image.relational].
1818
1773
  */
1819
1774
  enum OperationRelational {
1820
1775
  /**
1821
- * ==
1776
+ * `==`
1822
1777
  */
1823
1778
  equal = 0, // 'equal'
1824
1779
  /**
1825
- * !=
1780
+ * `!=`
1826
1781
  */
1827
1782
  noteq = 1, // 'noteq'
1828
1783
  /**
1829
- * <
1784
+ * `<`
1830
1785
  */
1831
1786
  less = 2, // 'less'
1832
1787
  /**
1833
- * <=
1788
+ * `<=`
1834
1789
  */
1835
1790
  lesseq = 3, // 'lesseq'
1836
1791
  /**
1837
- * >
1792
+ * `>`
1838
1793
  */
1839
1794
  more = 4, // 'more'
1840
1795
  /**
1841
- * >=
1796
+ * `>=`
1842
1797
  */
1843
1798
  moreeq = 5 // 'moreeq'
1844
1799
  }
1845
1800
 
1846
1801
  /**
1847
- * See also: vips_boolean().
1802
+ * See also: [method@Image.boolean].
1848
1803
  */
1849
1804
  enum OperationBoolean {
1850
1805
  /**
1851
- * &
1806
+ * `&`
1852
1807
  */
1853
1808
  and = 0, // 'and'
1854
1809
  /**
1855
- * |
1810
+ * `|`
1856
1811
  */
1857
1812
  or = 1, // 'or'
1858
1813
  /**
1859
- * ^
1814
+ * `^`
1860
1815
  */
1861
1816
  eor = 2, // 'eor'
1862
1817
  /**
1863
- * >>
1818
+ * `>>`
1864
1819
  */
1865
1820
  lshift = 3, // 'lshift'
1866
1821
  /**
1867
- * <<
1822
+ * `<<`
1868
1823
  */
1869
1824
  rshift = 4 // 'rshift'
1870
1825
  }
1871
1826
 
1872
1827
  /**
1873
- * See also: vips_math().
1828
+ * See also: [method@Image.math].
1874
1829
  */
1875
1830
  enum OperationMath2 {
1876
1831
  /**
1877
- * Pow(left, right)
1832
+ * `pow(left, right)`
1878
1833
  */
1879
1834
  pow = 0, // 'pow'
1880
1835
  /**
1881
- * Pow(right, left)
1836
+ * `pow(right, left)`
1882
1837
  */
1883
1838
  wop = 1, // 'wop'
1884
1839
  /**
1885
- * Atan2(left, right)
1840
+ * `atan2(left, right)`
1886
1841
  */
1887
1842
  atan2 = 2 // 'atan2'
1888
1843
  }
1889
1844
 
1890
1845
  /**
1891
- * See also: vips_complex2().
1846
+ * See also: [method@Image.complex2].
1892
1847
  */
1893
1848
  enum OperationComplex2 {
1894
1849
  /**
@@ -1898,31 +1853,31 @@ declare module Vips {
1898
1853
  }
1899
1854
 
1900
1855
  /**
1901
- * See also: vips_math().
1856
+ * See also: [method@Image.math].
1902
1857
  */
1903
1858
  enum OperationMath {
1904
1859
  /**
1905
- * Sin(), angles in degrees
1860
+ * `sin()`, angles in degrees
1906
1861
  */
1907
1862
  sin = 0, // 'sin'
1908
1863
  /**
1909
- * Cos(), angles in degrees
1864
+ * `cos()`, angles in degrees
1910
1865
  */
1911
1866
  cos = 1, // 'cos'
1912
1867
  /**
1913
- * Tan(), angles in degrees
1868
+ * `tan()`, angles in degrees
1914
1869
  */
1915
1870
  tan = 2, // 'tan'
1916
1871
  /**
1917
- * Asin(), angles in degrees
1872
+ * `asin()`, angles in degrees
1918
1873
  */
1919
1874
  asin = 3, // 'asin'
1920
1875
  /**
1921
- * Acos(), angles in degrees
1876
+ * `acos()`, angles in degrees
1922
1877
  */
1923
1878
  acos = 4, // 'acos'
1924
1879
  /**
1925
- * Atan(), angles in degrees
1880
+ * `atan()`, angles in degrees
1926
1881
  */
1927
1882
  atan = 5, // 'atan'
1928
1883
  /**
@@ -1942,33 +1897,33 @@ declare module Vips {
1942
1897
  */
1943
1898
  exp10 = 9, // 'exp10'
1944
1899
  /**
1945
- * Sinh(), angles in radians
1900
+ * `sinh()`, angles in radians
1946
1901
  */
1947
1902
  sinh = 10, // 'sinh'
1948
1903
  /**
1949
- * Cosh(), angles in radians
1904
+ * `cosh()`, angles in radians
1950
1905
  */
1951
1906
  cosh = 11, // 'cosh'
1952
1907
  /**
1953
- * Tanh(), angles in radians
1908
+ * `tanh()`, angles in radians
1954
1909
  */
1955
1910
  tanh = 12, // 'tanh'
1956
1911
  /**
1957
- * Asinh(), angles in radians
1912
+ * `asinh()`, angles in radians
1958
1913
  */
1959
1914
  asinh = 13, // 'asinh'
1960
1915
  /**
1961
- * Acosh(), angles in radians
1916
+ * `acosh()`, angles in radians
1962
1917
  */
1963
1918
  acosh = 14, // 'acosh'
1964
1919
  /**
1965
- * Atanh(), angles in radians
1920
+ * `atanh()`, angles in radians
1966
1921
  */
1967
1922
  atanh = 15 // 'atanh'
1968
1923
  }
1969
1924
 
1970
1925
  /**
1971
- * See also: vips_round().
1926
+ * See also: [method@Image.round].
1972
1927
  */
1973
1928
  enum OperationRound {
1974
1929
  /**
@@ -1986,7 +1941,7 @@ declare module Vips {
1986
1941
  }
1987
1942
 
1988
1943
  /**
1989
- * See also: vips_complex().
1944
+ * See also: [method@Image.complex].
1990
1945
  */
1991
1946
  enum OperationComplex {
1992
1947
  /**
@@ -2004,7 +1959,7 @@ declare module Vips {
2004
1959
  }
2005
1960
 
2006
1961
  /**
2007
- * See also: vips_complexget().
1962
+ * See also: [method@Image.complexget].
2008
1963
  */
2009
1964
  enum OperationComplexget {
2010
1965
  /**
@@ -2018,7 +1973,7 @@ declare module Vips {
2018
1973
  }
2019
1974
 
2020
1975
  /**
2021
- * How to combine values. See vips_compass(), for example.
1976
+ * How to combine values. See [method@Image.compass], for example.
2022
1977
  */
2023
1978
  enum Combine {
2024
1979
  /**
@@ -2036,12 +1991,12 @@ declare module Vips {
2036
1991
  }
2037
1992
 
2038
1993
  /**
2039
- * The type of access an operation has to supply. See vips_tilecache()
2040
- * and #VipsForeign.
1994
+ * The type of access an operation has to supply. See [method@Image.tilecache]
1995
+ * and [class@Foreign].
2041
1996
  *
2042
- * @VIPS_ACCESS_RANDOM means requests can come in any order.
1997
+ * [enum@Vips.Access.RANDOM] means requests can come in any order.
2043
1998
  *
2044
- * @VIPS_ACCESS_SEQUENTIAL means requests will be top-to-bottom, but with some
1999
+ * [enum@Vips.Access.SEQUENTIAL] means requests will be top-to-bottom, but with some
2045
2000
  * amount of buffering behind the read point for small non-local accesses.
2046
2001
  */
2047
2002
  enum Access {
@@ -2057,29 +2012,30 @@ declare module Vips {
2057
2012
  }
2058
2013
 
2059
2014
  /**
2060
- * See vips_embed(), vips_conv(), vips_affine() and so on.
2015
+ * See [method@Image.embed], [method@Image.conv], [method@Image.affine] and so on.
2061
2016
  *
2062
2017
  * When the edges of an image are extended, you can specify
2063
2018
  * how you want the extension done.
2064
2019
  *
2065
- * #VIPS_EXTEND_BLACK --- new pixels are black, ie. all bits are zero.
2020
+ * [enum@Vips.Extend.BLACK] -- new pixels are black, ie. all bits are zero.
2066
2021
  *
2067
- * #VIPS_EXTEND_COPY --- each new pixel takes the value of the nearest edge
2022
+ * [enum@Vips.Extend.COPY] -- each new pixel takes the value of the nearest edge
2068
2023
  * pixel
2069
2024
  *
2070
- * #VIPS_EXTEND_REPEAT --- the image is tiled to fill the new area
2025
+ * [enum@Vips.Extend.REPEAT] -- the image is tiled to fill the new area
2071
2026
  *
2072
- * #VIPS_EXTEND_MIRROR --- the image is reflected and tiled to reduce hash
2027
+ * [enum@Vips.Extend.MIRROR] -- the image is reflected and tiled to reduce hash
2073
2028
  * edges
2074
2029
  *
2075
- * #VIPS_EXTEND_WHITE --- new pixels are white, ie. all bits are set
2030
+ * [enum@Vips.Extend.WHITE] -- new pixels are white, ie. all bits are set
2076
2031
  *
2077
- * #VIPS_EXTEND_BACKGROUND --- colour set from the @background property
2032
+ * [enum@Vips.Extend.BACKGROUND] -- colour set from the @background property
2078
2033
  *
2079
2034
  * We have to specify the exact value of each enum member since we have to
2080
2035
  * keep these frozen for back compat with vips7.
2081
2036
  *
2082
- * See also: vips_embed().
2037
+ * ::: seealso
2038
+ * [method@Image.embed].
2083
2039
  */
2084
2040
  enum Extend {
2085
2041
  /**
@@ -2109,7 +2065,7 @@ declare module Vips {
2109
2065
  }
2110
2066
 
2111
2067
  /**
2112
- * A direction on a compass. Used for vips_gravity(), for example.
2068
+ * A direction on a compass. Used for [method@Image.gravity], for example.
2113
2069
  */
2114
2070
  enum CompassDirection {
2115
2071
  /**
@@ -2151,12 +2107,13 @@ declare module Vips {
2151
2107
  }
2152
2108
 
2153
2109
  /**
2154
- * See vips_flip(), vips_join() and so on.
2110
+ * See [method@Image.flip], [method@Image.join] and so on.
2155
2111
  *
2156
- * Operations like vips_flip() need to be told whether to flip left-right or
2112
+ * Operations like [method@Image.flip] need to be told whether to flip left-right or
2157
2113
  * top-bottom.
2158
2114
  *
2159
- * See also: vips_flip(), vips_join().
2115
+ * ::: seealso
2116
+ * [method@Image.flip], [method@Image.join].
2160
2117
  */
2161
2118
  enum Direction {
2162
2119
  /**
@@ -2170,12 +2127,13 @@ declare module Vips {
2170
2127
  }
2171
2128
 
2172
2129
  /**
2173
- * See vips_join() and so on.
2130
+ * See [method@Image.join] and so on.
2174
2131
  *
2175
- * Operations like vips_join() need to be told whether to align images on the
2132
+ * Operations like [method@Image.join] need to be told whether to align images on the
2176
2133
  * low or high coordinate edge, or centre.
2177
2134
  *
2178
- * See also: vips_join().
2135
+ * ::: seealso
2136
+ * [method@Image.join].
2179
2137
  */
2180
2138
  enum Align {
2181
2139
  /**
@@ -2194,14 +2152,15 @@ declare module Vips {
2194
2152
 
2195
2153
  /**
2196
2154
  * Pick the algorithm vips uses to decide image "interestingness". This is used
2197
- * by vips_smartcrop(), for example, to decide what parts of the image to
2155
+ * by [method@Image.smartcrop], for example, to decide what parts of the image to
2198
2156
  * keep.
2199
2157
  *
2200
- * #VIPS_INTERESTING_NONE and #VIPS_INTERESTING_LOW mean the same -- the
2201
- * crop is positioned at the top or left. #VIPS_INTERESTING_HIGH positions at
2158
+ * [enum@Vips.Interesting.NONE] and [enum@Vips.Interesting.LOW] mean the same -- the
2159
+ * crop is positioned at the top or left. [enum@Vips.Interesting.HIGH] positions at
2202
2160
  * the bottom or right.
2203
2161
  *
2204
- * See also: vips_smartcrop().
2162
+ * ::: seealso
2163
+ * [method@Image.smartcrop].
2205
2164
  */
2206
2165
  enum Interesting {
2207
2166
  /**
@@ -2235,11 +2194,12 @@ declare module Vips {
2235
2194
  }
2236
2195
 
2237
2196
  /**
2238
- * See vips_rot() and so on.
2197
+ * See [method@Image.rot] and so on.
2239
2198
  *
2240
2199
  * Fixed rotate angles.
2241
2200
  *
2242
- * See also: vips_rot().
2201
+ * ::: seealso
2202
+ * [method@Image.rot].
2243
2203
  */
2244
2204
  enum Angle {
2245
2205
  /**
@@ -2261,11 +2221,12 @@ declare module Vips {
2261
2221
  }
2262
2222
 
2263
2223
  /**
2264
- * See vips_rot45() and so on.
2224
+ * See [method@Image.rot45] and so on.
2265
2225
  *
2266
2226
  * Fixed rotate angles.
2267
2227
  *
2268
- * See also: vips_rot45().
2228
+ * ::: seealso
2229
+ * [method@Image.rot45].
2269
2230
  */
2270
2231
  enum Angle45 {
2271
2232
  /**
@@ -2321,10 +2282,11 @@ declare module Vips {
2321
2282
  }
2322
2283
 
2323
2284
  /**
2324
- * Sets the word wrapping style for vips_text() when used with a maximum
2285
+ * Sets the word wrapping style for [ctor@Image.text] when used with a maximum
2325
2286
  * width.
2326
2287
  *
2327
- * See also: vips_text().
2288
+ * ::: seealso
2289
+ * [ctor@Image.text].
2328
2290
  */
2329
2291
  enum TextWrap {
2330
2292
  /**
@@ -2348,7 +2310,8 @@ declare module Vips {
2348
2310
  /**
2349
2311
  * The SDF to generate,
2350
2312
  *
2351
- * See also: vips_sdf().
2313
+ * ::: seealso
2314
+ * [ctor@Image.sdf].
2352
2315
  */
2353
2316
  enum SdfShape {
2354
2317
  /**
@@ -2373,8 +2336,8 @@ declare module Vips {
2373
2336
  * How sensitive loaders are to errors, from never stop (very insensitive), to
2374
2337
  * stop on the smallest warning (very sensitive).
2375
2338
  *
2376
- * Each one implies the ones before it, so #VIPS_FAIL_ON_ERROR implies
2377
- * #VIPS_FAIL_ON_TRUNCATED.
2339
+ * Each one implies the ones before it, so [enum@Vips.FailOn.ERROR] implies
2340
+ * [enum@Vips.FailOn.TRUNCATED].
2378
2341
  */
2379
2342
  enum FailOn {
2380
2343
  /**
@@ -2398,15 +2361,15 @@ declare module Vips {
2398
2361
  /**
2399
2362
  * The netpbm file format to save as.
2400
2363
  *
2401
- * #VIPS_FOREIGN_PPM_FORMAT_PBM images are single bit.
2364
+ * [enum@Vips.ForeignPpmFormat.PBM] images are single bit.
2402
2365
  *
2403
- * #VIPS_FOREIGN_PPM_FORMAT_PGM images are 8, 16, or 32-bits, one band.
2366
+ * [enum@Vips.ForeignPpmFormat.PGM] images are 8, 16, or 32-bits, one band.
2404
2367
  *
2405
- * #VIPS_FOREIGN_PPM_FORMAT_PPM images are 8, 16, or 32-bits, three bands.
2368
+ * [enum@Vips.ForeignPpmFormat.PPM] images are 8, 16, or 32-bits, three bands.
2406
2369
  *
2407
- * #VIPS_FOREIGN_PPM_FORMAT_PFM images are 32-bit float pixels.
2370
+ * [enum@Vips.ForeignPpmFormat.PFM] images are 32-bit float pixels.
2408
2371
  *
2409
- * #VIPS_FOREIGN_PPM_FORMAT_PNM images are anymap images -- the image format
2372
+ * [enum@Vips.ForeignPpmFormat.PNM] images are anymap images -- the image format
2410
2373
  * is used to pick the saver.
2411
2374
  */
2412
2375
  enum ForeignPpmFormat {
@@ -2658,7 +2621,7 @@ declare module Vips {
2658
2621
  /**
2659
2622
  * The compression format to use inside a HEIF container.
2660
2623
  *
2661
- * This is assumed to use the same numbering as %heif_compression_format.
2624
+ * This is assumed to use the same numbering as `heif_compression_format`.
2662
2625
  */
2663
2626
  enum ForeignHeifCompression {
2664
2627
  /**
@@ -2711,7 +2674,8 @@ declare module Vips {
2711
2674
  * Controls whether an operation should upsize, downsize, both up and
2712
2675
  * downsize, or force a size.
2713
2676
  *
2714
- * See also: vips_thumbnail().
2677
+ * ::: seealso
2678
+ * [ctor@Image.thumbnail].
2715
2679
  */
2716
2680
  enum Size {
2717
2681
  /**
@@ -2733,8 +2697,8 @@ declare module Vips {
2733
2697
  }
2734
2698
 
2735
2699
  /**
2736
- * The rendering intent. #VIPS_INTENT_ABSOLUTE is best for
2737
- * scientific work, #VIPS_INTENT_RELATIVE is usually best for
2700
+ * The rendering intent. [enum@Vips.Intent.ABSOLUTE] is best for
2701
+ * scientific work, [enum@Vips.Intent.RELATIVE] is usually best for
2738
2702
  * accurate communication with other imaging libraries.
2739
2703
  */
2740
2704
  enum Intent {
@@ -2753,11 +2717,15 @@ declare module Vips {
2753
2717
  /**
2754
2718
  * Absolute colorimetric rendering intent
2755
2719
  */
2756
- absolute = 3 // 'absolute'
2720
+ absolute = 3, // 'absolute'
2721
+ /**
2722
+ * The rendering intent that the profile suggests
2723
+ */
2724
+ auto = 32 // 'auto'
2757
2725
  }
2758
2726
 
2759
2727
  /**
2760
- * The resampling kernels vips supports. See vips_reduce(), for example.
2728
+ * The resampling kernels vips supports. See [method@Image.reduce], for example.
2761
2729
  */
2762
2730
  enum Kernel {
2763
2731
  /**
@@ -2783,12 +2751,20 @@ declare module Vips {
2783
2751
  /**
2784
2752
  * Convolve with a three-lobe Lanczos kernel.
2785
2753
  */
2786
- lanczos3 = 5 // 'lanczos3'
2754
+ lanczos3 = 5, // 'lanczos3'
2755
+ /**
2756
+ * Convolve with Magic Kernel Sharp 2013.
2757
+ */
2758
+ mks2013 = 6, // 'mks2013'
2759
+ /**
2760
+ * Convolve with Magic Kernel Sharp 2021.
2761
+ */
2762
+ mks2021 = 7 // 'mks2021'
2787
2763
  }
2788
2764
 
2789
2765
  /**
2790
- * Pick a Profile Connection Space for vips_icc_import() and
2791
- * vips_icc_export(). LAB is usually best, XYZ can be more convenient in some
2766
+ * Pick a Profile Connection Space for [method@Image.icc_import] and
2767
+ * [method@Image.icc_export]. LAB is usually best, XYZ can be more convenient in some
2792
2768
  * cases.
2793
2769
  */
2794
2770
  enum PCS {
@@ -2805,7 +2781,8 @@ declare module Vips {
2805
2781
  /**
2806
2782
  * More like hit-miss, really.
2807
2783
  *
2808
- * See also: vips_morph().
2784
+ * ::: seealso
2785
+ * [method@Image.morph].
2809
2786
  */
2810
2787
  enum OperationMorphology {
2811
2788
  /**
@@ -2819,12 +2796,13 @@ declare module Vips {
2819
2796
  }
2820
2797
 
2821
2798
  /**
2822
- * See vips_draw_image() and so on.
2799
+ * See [method@Image.draw_image] and so on.
2823
2800
  *
2824
- * Operations like vips_draw_image() need to be told how to combine images
2801
+ * Operations like [method@Image.draw_image] need to be told how to combine images
2825
2802
  * from two sources.
2826
2803
  *
2827
- * See also: vips_join().
2804
+ * ::: seealso
2805
+ * [method@Image.join].
2828
2806
  */
2829
2807
  enum CombineMode {
2830
2808
  /**
@@ -3515,6 +3493,10 @@ declare module Vips {
3515
3493
  * Load this page from the image.
3516
3494
  */
3517
3495
  page?: number
3496
+ /**
3497
+ * Load images a frame at a time.
3498
+ */
3499
+ oneshot?: boolean
3518
3500
  /**
3519
3501
  * Force open via memory.
3520
3502
  */
@@ -3548,6 +3530,10 @@ declare module Vips {
3548
3530
  * Load this page from the image.
3549
3531
  */
3550
3532
  page?: number
3533
+ /**
3534
+ * Load images a frame at a time.
3535
+ */
3536
+ oneshot?: boolean
3551
3537
  /**
3552
3538
  * Force open via memory.
3553
3539
  */
@@ -3581,6 +3567,10 @@ declare module Vips {
3581
3567
  * Load this page from the image.
3582
3568
  */
3583
3569
  page?: number
3570
+ /**
3571
+ * Load images a frame at a time.
3572
+ */
3573
+ oneshot?: boolean
3584
3574
  /**
3585
3575
  * Force open via memory.
3586
3576
  */
@@ -4807,7 +4797,36 @@ declare module Vips {
4807
4797
  }): Image;
4808
4798
 
4809
4799
  /**
4810
- * Load ppm base class.
4800
+ * Load ppm from buffer.
4801
+ * @param buffer Buffer to load from.
4802
+ * @param options Optional options.
4803
+ * @return Output image.
4804
+ */
4805
+ static ppmloadBuffer(buffer: Blob, options?: {
4806
+ /**
4807
+ * Force open via memory.
4808
+ */
4809
+ memory?: boolean
4810
+ /**
4811
+ * Required access pattern for this file.
4812
+ */
4813
+ access?: Access | Enum
4814
+ /**
4815
+ * Error level to fail on.
4816
+ */
4817
+ fail_on?: FailOn | Enum
4818
+ /**
4819
+ * Don't use a cached result for this operation.
4820
+ */
4821
+ revalidate?: boolean
4822
+ /**
4823
+ * Flags for this file (output).
4824
+ */
4825
+ flags?: number | undefined
4826
+ }): Image;
4827
+
4828
+ /**
4829
+ * Load ppm from source.
4811
4830
  * @param source Source to load from.
4812
4831
  * @param options Optional options.
4813
4832
  * @return Output image.
@@ -5048,6 +5067,14 @@ declare module Vips {
5048
5067
  * Allow svg of any size.
5049
5068
  */
5050
5069
  unlimited?: boolean
5070
+ /**
5071
+ * Custom css.
5072
+ */
5073
+ stylesheet?: string
5074
+ /**
5075
+ * Enable scrgb 128-bit output (32-bit per channel).
5076
+ */
5077
+ high_bitdepth?: boolean
5051
5078
  /**
5052
5079
  * Force open via memory.
5053
5080
  */
@@ -5089,6 +5116,14 @@ declare module Vips {
5089
5116
  * Allow svg of any size.
5090
5117
  */
5091
5118
  unlimited?: boolean
5119
+ /**
5120
+ * Custom css.
5121
+ */
5122
+ stylesheet?: string
5123
+ /**
5124
+ * Enable scrgb 128-bit output (32-bit per channel).
5125
+ */
5126
+ high_bitdepth?: boolean
5092
5127
  /**
5093
5128
  * Force open via memory.
5094
5129
  */
@@ -5130,6 +5165,14 @@ declare module Vips {
5130
5165
  * Allow svg of any size.
5131
5166
  */
5132
5167
  unlimited?: boolean
5168
+ /**
5169
+ * Custom css.
5170
+ */
5171
+ stylesheet?: string
5172
+ /**
5173
+ * Enable scrgb 128-bit output (32-bit per channel).
5174
+ */
5175
+ high_bitdepth?: boolean
5133
5176
  /**
5134
5177
  * Force open via memory.
5135
5178
  */
@@ -5269,13 +5312,13 @@ declare module Vips {
5269
5312
  */
5270
5313
  linear?: boolean
5271
5314
  /**
5272
- * Fallback import profile.
5315
+ * Fallback input profile.
5273
5316
  */
5274
- import_profile?: string
5317
+ input_profile?: string
5275
5318
  /**
5276
- * Fallback export profile.
5319
+ * Fallback output profile.
5277
5320
  */
5278
- export_profile?: string
5321
+ output_profile?: string
5279
5322
  /**
5280
5323
  * Rendering intent.
5281
5324
  */
@@ -5319,13 +5362,13 @@ declare module Vips {
5319
5362
  */
5320
5363
  linear?: boolean
5321
5364
  /**
5322
- * Fallback import profile.
5365
+ * Fallback input profile.
5323
5366
  */
5324
- import_profile?: string
5367
+ input_profile?: string
5325
5368
  /**
5326
- * Fallback export profile.
5369
+ * Fallback output profile.
5327
5370
  */
5328
- export_profile?: string
5371
+ output_profile?: string
5329
5372
  /**
5330
5373
  * Rendering intent.
5331
5374
  */
@@ -5369,13 +5412,13 @@ declare module Vips {
5369
5412
  */
5370
5413
  linear?: boolean
5371
5414
  /**
5372
- * Fallback import profile.
5415
+ * Fallback input profile.
5373
5416
  */
5374
- import_profile?: string
5417
+ input_profile?: string
5375
5418
  /**
5376
- * Fallback export profile.
5419
+ * Fallback output profile.
5377
5420
  */
5378
- export_profile?: string
5421
+ output_profile?: string
5379
5422
  /**
5380
5423
  * Rendering intent.
5381
5424
  */
@@ -5397,10 +5440,6 @@ declare module Vips {
5397
5440
  * First page to load.
5398
5441
  */
5399
5442
  page?: number
5400
- /**
5401
- * Subifd index.
5402
- */
5403
- subifd?: number
5404
5443
  /**
5405
5444
  * Number of pages to load, -1 for all.
5406
5445
  */
@@ -5409,6 +5448,14 @@ declare module Vips {
5409
5448
  * Rotate image using orientation tag.
5410
5449
  */
5411
5450
  autorotate?: boolean
5451
+ /**
5452
+ * Subifd index.
5453
+ */
5454
+ subifd?: number
5455
+ /**
5456
+ * Remove all denial of service limits.
5457
+ */
5458
+ unlimited?: boolean
5412
5459
  /**
5413
5460
  * Force open via memory.
5414
5461
  */
@@ -5442,10 +5489,6 @@ declare module Vips {
5442
5489
  * First page to load.
5443
5490
  */
5444
5491
  page?: number
5445
- /**
5446
- * Subifd index.
5447
- */
5448
- subifd?: number
5449
5492
  /**
5450
5493
  * Number of pages to load, -1 for all.
5451
5494
  */
@@ -5454,6 +5497,14 @@ declare module Vips {
5454
5497
  * Rotate image using orientation tag.
5455
5498
  */
5456
5499
  autorotate?: boolean
5500
+ /**
5501
+ * Subifd index.
5502
+ */
5503
+ subifd?: number
5504
+ /**
5505
+ * Remove all denial of service limits.
5506
+ */
5507
+ unlimited?: boolean
5457
5508
  /**
5458
5509
  * Force open via memory.
5459
5510
  */
@@ -5487,10 +5538,6 @@ declare module Vips {
5487
5538
  * First page to load.
5488
5539
  */
5489
5540
  page?: number
5490
- /**
5491
- * Subifd index.
5492
- */
5493
- subifd?: number
5494
5541
  /**
5495
5542
  * Number of pages to load, -1 for all.
5496
5543
  */
@@ -5499,6 +5546,14 @@ declare module Vips {
5499
5546
  * Rotate image using orientation tag.
5500
5547
  */
5501
5548
  autorotate?: boolean
5549
+ /**
5550
+ * Subifd index.
5551
+ */
5552
+ subifd?: number
5553
+ /**
5554
+ * Remove all denial of service limits.
5555
+ */
5556
+ unlimited?: boolean
5502
5557
  /**
5503
5558
  * Force open via memory.
5504
5559
  */
@@ -7025,6 +7080,10 @@ declare module Vips {
7025
7080
  * Generate an interlaced (progressive) gif.
7026
7081
  */
7027
7082
  interlace?: boolean
7083
+ /**
7084
+ * Keep duplicate frames in the output instead of combining them.
7085
+ */
7086
+ keep_duplicate_frames?: boolean
7028
7087
  /**
7029
7088
  * Which metadata to retain.
7030
7089
  */
@@ -7077,6 +7136,10 @@ declare module Vips {
7077
7136
  * Generate an interlaced (progressive) gif.
7078
7137
  */
7079
7138
  interlace?: boolean
7139
+ /**
7140
+ * Keep duplicate frames in the output instead of combining them.
7141
+ */
7142
+ keep_duplicate_frames?: boolean
7080
7143
  /**
7081
7144
  * Which metadata to retain.
7082
7145
  */
@@ -7129,6 +7192,10 @@ declare module Vips {
7129
7192
  * Generate an interlaced (progressive) gif.
7130
7193
  */
7131
7194
  interlace?: boolean
7195
+ /**
7196
+ * Keep duplicate frames in the output instead of combining them.
7197
+ */
7198
+ keep_duplicate_frames?: boolean
7132
7199
  /**
7133
7200
  * Which metadata to retain.
7134
7201
  */
@@ -8389,11 +8456,18 @@ declare module Vips {
8389
8456
  math2(right: Image | ArrayConstant, math2: OperationMath2 | Enum): Image;
8390
8457
 
8391
8458
  /**
8392
- * Invert an matrix.
8459
+ * Invert a matrix.
8393
8460
  * @return Output matrix.
8394
8461
  */
8395
8462
  matrixinvert(): Image;
8396
8463
 
8464
+ /**
8465
+ * Multiply two matrices.
8466
+ * @param right Second matrix to multiply.
8467
+ * @return Output matrix.
8468
+ */
8469
+ matrixmultiply(right: Image | ArrayConstant): Image;
8470
+
8397
8471
  /**
8398
8472
  * Print matrix.
8399
8473
  * @param options Optional options.
@@ -9246,6 +9320,14 @@ declare module Vips {
9246
9320
  */
9247
9321
  remainder(right: Image | ArrayConstant): Image;
9248
9322
 
9323
+ /**
9324
+ * Rebuild an mosaiced image.
9325
+ * @param old_str Search for this string.
9326
+ * @param new_str And swap for this string.
9327
+ * @return Output image.
9328
+ */
9329
+ remosaic(old_str: string, new_str: string): Image;
9330
+
9249
9331
  /**
9250
9332
  * Replicate an image.
9251
9333
  * @param across Repeat this many times horizontally.
@@ -9365,7 +9447,7 @@ declare module Vips {
9365
9447
  scRGB2XYZ(): Image;
9366
9448
 
9367
9449
  /**
9368
- * Convert an scrgb image to srgb.
9450
+ * Convert scrgb to srgb.
9369
9451
  * @param options Optional options.
9370
9452
  * @return Output image.
9371
9453
  */
@@ -9654,13 +9736,13 @@ declare module Vips {
9654
9736
  */
9655
9737
  linear?: boolean
9656
9738
  /**
9657
- * Fallback import profile.
9739
+ * Fallback input profile.
9658
9740
  */
9659
- import_profile?: string
9741
+ input_profile?: string
9660
9742
  /**
9661
- * Fallback export profile.
9743
+ * Fallback output profile.
9662
9744
  */
9663
- export_profile?: string
9745
+ output_profile?: string
9664
9746
  /**
9665
9747
  * Rendering intent.
9666
9748
  */