wasm-vips 0.0.13 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/lib/vips-es6.js +207 -234
- package/lib/vips-heif.wasm +0 -0
- package/lib/vips-jxl.wasm +0 -0
- package/lib/vips-node.js +219 -247
- package/lib/vips-node.mjs +220 -242
- package/lib/vips-resvg.wasm +0 -0
- package/lib/vips.d.ts +355 -1691
- package/lib/vips.js +207 -240
- package/lib/vips.wasm +0 -0
- package/package.json +2 -2
- package/versions.json +11 -11
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
|
/**
|
|
@@ -676,10 +677,6 @@ declare module Vips {
|
|
|
676
677
|
* loaders are permissive, that is, {@link FailOn.none}.
|
|
677
678
|
*/
|
|
678
679
|
fail_on?: FailOn | Enum
|
|
679
|
-
/**
|
|
680
|
-
* Don't use a cached result for this operation.
|
|
681
|
-
*/
|
|
682
|
-
revalidate?: boolean
|
|
683
680
|
}): Image;
|
|
684
681
|
|
|
685
682
|
/**
|
|
@@ -702,10 +699,6 @@ declare module Vips {
|
|
|
702
699
|
* loaders are permissive, that is, {@link FailOn.none}.
|
|
703
700
|
*/
|
|
704
701
|
fail_on?: FailOn | Enum
|
|
705
|
-
/**
|
|
706
|
-
* Don't use a cached result for this operation.
|
|
707
|
-
*/
|
|
708
|
-
revalidate?: boolean
|
|
709
702
|
}): Image;
|
|
710
703
|
|
|
711
704
|
/**
|
|
@@ -1495,7 +1488,7 @@ declare module Vips {
|
|
|
1495
1488
|
* The format used for each band element.
|
|
1496
1489
|
*
|
|
1497
1490
|
* Each corresponds to a native C type for the current machine. For example,
|
|
1498
|
-
*
|
|
1491
|
+
* [enum@Vips.BandFormat.USHORT] is `unsigned short`.
|
|
1499
1492
|
*/
|
|
1500
1493
|
enum BandFormat {
|
|
1501
1494
|
/**
|
|
@@ -1541,12 +1534,11 @@ declare module Vips {
|
|
|
1541
1534
|
}
|
|
1542
1535
|
|
|
1543
1536
|
/**
|
|
1544
|
-
* The various Porter-Duff and PDF blend modes. See
|
|
1537
|
+
* The various Porter-Duff and PDF blend modes. See [func@Image.composite],
|
|
1545
1538
|
* for example.
|
|
1546
1539
|
*
|
|
1547
|
-
* The Cairo docs have a nice explanation of all the blend
|
|
1548
|
-
*
|
|
1549
|
-
* https://www.cairographics.org/operators
|
|
1540
|
+
* The Cairo docs have [a nice explanation of all the blend
|
|
1541
|
+
* modes](https://www.cairographics.org/operators).
|
|
1550
1542
|
*
|
|
1551
1543
|
* The non-separable modes are not implemented.
|
|
1552
1544
|
*/
|
|
@@ -1680,7 +1672,7 @@ declare module Vips {
|
|
|
1680
1672
|
|
|
1681
1673
|
/**
|
|
1682
1674
|
* How the values in an image should be interpreted. For example, a
|
|
1683
|
-
* three-band float image of type
|
|
1675
|
+
* three-band float image of type [enum@Vips.Interpretation.LAB] should have its
|
|
1684
1676
|
* pixels interpreted as coordinates in CIE Lab space.
|
|
1685
1677
|
*
|
|
1686
1678
|
* RGB and sRGB are treated in the same way. Use the colourspace functions if
|
|
@@ -1715,7 +1707,7 @@ declare module Vips {
|
|
|
1715
1707
|
*/
|
|
1716
1708
|
cmyk = 15, // 'cmyk'
|
|
1717
1709
|
/**
|
|
1718
|
-
* Implies
|
|
1710
|
+
* Implies [enum@Vips.Coding.LABQ]
|
|
1719
1711
|
*/
|
|
1720
1712
|
labq = 16, // 'labq'
|
|
1721
1713
|
/**
|
|
@@ -1769,126 +1761,81 @@ declare module Vips {
|
|
|
1769
1761
|
}
|
|
1770
1762
|
|
|
1771
1763
|
/**
|
|
1772
|
-
* See
|
|
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().
|
|
1764
|
+
* See also: [method@Image.relational].
|
|
1818
1765
|
*/
|
|
1819
1766
|
enum OperationRelational {
|
|
1820
1767
|
/**
|
|
1821
|
-
*
|
|
1768
|
+
* `==`
|
|
1822
1769
|
*/
|
|
1823
1770
|
equal = 0, // 'equal'
|
|
1824
1771
|
/**
|
|
1825
|
-
*
|
|
1772
|
+
* `!=`
|
|
1826
1773
|
*/
|
|
1827
1774
|
noteq = 1, // 'noteq'
|
|
1828
1775
|
/**
|
|
1829
|
-
*
|
|
1776
|
+
* `<`
|
|
1830
1777
|
*/
|
|
1831
1778
|
less = 2, // 'less'
|
|
1832
1779
|
/**
|
|
1833
|
-
*
|
|
1780
|
+
* `<=`
|
|
1834
1781
|
*/
|
|
1835
1782
|
lesseq = 3, // 'lesseq'
|
|
1836
1783
|
/**
|
|
1837
|
-
*
|
|
1784
|
+
* `>`
|
|
1838
1785
|
*/
|
|
1839
1786
|
more = 4, // 'more'
|
|
1840
1787
|
/**
|
|
1841
|
-
*
|
|
1788
|
+
* `>=`
|
|
1842
1789
|
*/
|
|
1843
1790
|
moreeq = 5 // 'moreeq'
|
|
1844
1791
|
}
|
|
1845
1792
|
|
|
1846
1793
|
/**
|
|
1847
|
-
* See also:
|
|
1794
|
+
* See also: [method@Image.boolean].
|
|
1848
1795
|
*/
|
|
1849
1796
|
enum OperationBoolean {
|
|
1850
1797
|
/**
|
|
1851
|
-
*
|
|
1798
|
+
* `&`
|
|
1852
1799
|
*/
|
|
1853
1800
|
and = 0, // 'and'
|
|
1854
1801
|
/**
|
|
1855
|
-
*
|
|
1802
|
+
* `|`
|
|
1856
1803
|
*/
|
|
1857
1804
|
or = 1, // 'or'
|
|
1858
1805
|
/**
|
|
1859
|
-
*
|
|
1806
|
+
* `^`
|
|
1860
1807
|
*/
|
|
1861
1808
|
eor = 2, // 'eor'
|
|
1862
1809
|
/**
|
|
1863
|
-
*
|
|
1810
|
+
* `>>`
|
|
1864
1811
|
*/
|
|
1865
1812
|
lshift = 3, // 'lshift'
|
|
1866
1813
|
/**
|
|
1867
|
-
*
|
|
1814
|
+
* `<<`
|
|
1868
1815
|
*/
|
|
1869
1816
|
rshift = 4 // 'rshift'
|
|
1870
1817
|
}
|
|
1871
1818
|
|
|
1872
1819
|
/**
|
|
1873
|
-
* See also:
|
|
1820
|
+
* See also: [method@Image.math].
|
|
1874
1821
|
*/
|
|
1875
1822
|
enum OperationMath2 {
|
|
1876
1823
|
/**
|
|
1877
|
-
*
|
|
1824
|
+
* `pow(left, right)`
|
|
1878
1825
|
*/
|
|
1879
1826
|
pow = 0, // 'pow'
|
|
1880
1827
|
/**
|
|
1881
|
-
*
|
|
1828
|
+
* `pow(right, left)`
|
|
1882
1829
|
*/
|
|
1883
1830
|
wop = 1, // 'wop'
|
|
1884
1831
|
/**
|
|
1885
|
-
*
|
|
1832
|
+
* `atan2(left, right)`
|
|
1886
1833
|
*/
|
|
1887
1834
|
atan2 = 2 // 'atan2'
|
|
1888
1835
|
}
|
|
1889
1836
|
|
|
1890
1837
|
/**
|
|
1891
|
-
* See also:
|
|
1838
|
+
* See also: [method@Image.complex2].
|
|
1892
1839
|
*/
|
|
1893
1840
|
enum OperationComplex2 {
|
|
1894
1841
|
/**
|
|
@@ -1898,31 +1845,31 @@ declare module Vips {
|
|
|
1898
1845
|
}
|
|
1899
1846
|
|
|
1900
1847
|
/**
|
|
1901
|
-
* See also:
|
|
1848
|
+
* See also: [method@Image.math].
|
|
1902
1849
|
*/
|
|
1903
1850
|
enum OperationMath {
|
|
1904
1851
|
/**
|
|
1905
|
-
*
|
|
1852
|
+
* `sin()`, angles in degrees
|
|
1906
1853
|
*/
|
|
1907
1854
|
sin = 0, // 'sin'
|
|
1908
1855
|
/**
|
|
1909
|
-
*
|
|
1856
|
+
* `cos()`, angles in degrees
|
|
1910
1857
|
*/
|
|
1911
1858
|
cos = 1, // 'cos'
|
|
1912
1859
|
/**
|
|
1913
|
-
*
|
|
1860
|
+
* `tan()`, angles in degrees
|
|
1914
1861
|
*/
|
|
1915
1862
|
tan = 2, // 'tan'
|
|
1916
1863
|
/**
|
|
1917
|
-
*
|
|
1864
|
+
* `asin()`, angles in degrees
|
|
1918
1865
|
*/
|
|
1919
1866
|
asin = 3, // 'asin'
|
|
1920
1867
|
/**
|
|
1921
|
-
*
|
|
1868
|
+
* `acos()`, angles in degrees
|
|
1922
1869
|
*/
|
|
1923
1870
|
acos = 4, // 'acos'
|
|
1924
1871
|
/**
|
|
1925
|
-
*
|
|
1872
|
+
* `atan()`, angles in degrees
|
|
1926
1873
|
*/
|
|
1927
1874
|
atan = 5, // 'atan'
|
|
1928
1875
|
/**
|
|
@@ -1942,33 +1889,33 @@ declare module Vips {
|
|
|
1942
1889
|
*/
|
|
1943
1890
|
exp10 = 9, // 'exp10'
|
|
1944
1891
|
/**
|
|
1945
|
-
*
|
|
1892
|
+
* `sinh()`, angles in radians
|
|
1946
1893
|
*/
|
|
1947
1894
|
sinh = 10, // 'sinh'
|
|
1948
1895
|
/**
|
|
1949
|
-
*
|
|
1896
|
+
* `cosh()`, angles in radians
|
|
1950
1897
|
*/
|
|
1951
1898
|
cosh = 11, // 'cosh'
|
|
1952
1899
|
/**
|
|
1953
|
-
*
|
|
1900
|
+
* `tanh()`, angles in radians
|
|
1954
1901
|
*/
|
|
1955
1902
|
tanh = 12, // 'tanh'
|
|
1956
1903
|
/**
|
|
1957
|
-
*
|
|
1904
|
+
* `asinh()`, angles in radians
|
|
1958
1905
|
*/
|
|
1959
1906
|
asinh = 13, // 'asinh'
|
|
1960
1907
|
/**
|
|
1961
|
-
*
|
|
1908
|
+
* `acosh()`, angles in radians
|
|
1962
1909
|
*/
|
|
1963
1910
|
acosh = 14, // 'acosh'
|
|
1964
1911
|
/**
|
|
1965
|
-
*
|
|
1912
|
+
* `atanh()`, angles in radians
|
|
1966
1913
|
*/
|
|
1967
1914
|
atanh = 15 // 'atanh'
|
|
1968
1915
|
}
|
|
1969
1916
|
|
|
1970
1917
|
/**
|
|
1971
|
-
* See also:
|
|
1918
|
+
* See also: [method@Image.round].
|
|
1972
1919
|
*/
|
|
1973
1920
|
enum OperationRound {
|
|
1974
1921
|
/**
|
|
@@ -1986,7 +1933,7 @@ declare module Vips {
|
|
|
1986
1933
|
}
|
|
1987
1934
|
|
|
1988
1935
|
/**
|
|
1989
|
-
* See also:
|
|
1936
|
+
* See also: [method@Image.complex].
|
|
1990
1937
|
*/
|
|
1991
1938
|
enum OperationComplex {
|
|
1992
1939
|
/**
|
|
@@ -2004,7 +1951,7 @@ declare module Vips {
|
|
|
2004
1951
|
}
|
|
2005
1952
|
|
|
2006
1953
|
/**
|
|
2007
|
-
* See also:
|
|
1954
|
+
* See also: [method@Image.complexget].
|
|
2008
1955
|
*/
|
|
2009
1956
|
enum OperationComplexget {
|
|
2010
1957
|
/**
|
|
@@ -2018,7 +1965,7 @@ declare module Vips {
|
|
|
2018
1965
|
}
|
|
2019
1966
|
|
|
2020
1967
|
/**
|
|
2021
|
-
* How to combine values. See
|
|
1968
|
+
* How to combine values. See [method@Image.compass], for example.
|
|
2022
1969
|
*/
|
|
2023
1970
|
enum Combine {
|
|
2024
1971
|
/**
|
|
@@ -2036,12 +1983,12 @@ declare module Vips {
|
|
|
2036
1983
|
}
|
|
2037
1984
|
|
|
2038
1985
|
/**
|
|
2039
|
-
* The type of access an operation has to supply. See
|
|
2040
|
-
* and
|
|
1986
|
+
* The type of access an operation has to supply. See [method@Image.tilecache]
|
|
1987
|
+
* and [class@Foreign].
|
|
2041
1988
|
*
|
|
2042
|
-
* @
|
|
1989
|
+
* [enum@Vips.Access.RANDOM] means requests can come in any order.
|
|
2043
1990
|
*
|
|
2044
|
-
* @
|
|
1991
|
+
* [enum@Vips.Access.SEQUENTIAL] means requests will be top-to-bottom, but with some
|
|
2045
1992
|
* amount of buffering behind the read point for small non-local accesses.
|
|
2046
1993
|
*/
|
|
2047
1994
|
enum Access {
|
|
@@ -2057,29 +2004,30 @@ declare module Vips {
|
|
|
2057
2004
|
}
|
|
2058
2005
|
|
|
2059
2006
|
/**
|
|
2060
|
-
* See
|
|
2007
|
+
* See [method@Image.embed], [method@Image.conv], [method@Image.affine] and so on.
|
|
2061
2008
|
*
|
|
2062
2009
|
* When the edges of an image are extended, you can specify
|
|
2063
2010
|
* how you want the extension done.
|
|
2064
2011
|
*
|
|
2065
|
-
*
|
|
2012
|
+
* [enum@Vips.Extend.BLACK] -- new pixels are black, ie. all bits are zero.
|
|
2066
2013
|
*
|
|
2067
|
-
*
|
|
2014
|
+
* [enum@Vips.Extend.COPY] -- each new pixel takes the value of the nearest edge
|
|
2068
2015
|
* pixel
|
|
2069
2016
|
*
|
|
2070
|
-
*
|
|
2017
|
+
* [enum@Vips.Extend.REPEAT] -- the image is tiled to fill the new area
|
|
2071
2018
|
*
|
|
2072
|
-
*
|
|
2019
|
+
* [enum@Vips.Extend.MIRROR] -- the image is reflected and tiled to reduce hash
|
|
2073
2020
|
* edges
|
|
2074
2021
|
*
|
|
2075
|
-
*
|
|
2022
|
+
* [enum@Vips.Extend.WHITE] -- new pixels are white, ie. all bits are set
|
|
2076
2023
|
*
|
|
2077
|
-
*
|
|
2024
|
+
* [enum@Vips.Extend.BACKGROUND] -- colour set from the @background property
|
|
2078
2025
|
*
|
|
2079
2026
|
* We have to specify the exact value of each enum member since we have to
|
|
2080
2027
|
* keep these frozen for back compat with vips7.
|
|
2081
2028
|
*
|
|
2082
|
-
*
|
|
2029
|
+
* ::: seealso
|
|
2030
|
+
* [method@Image.embed].
|
|
2083
2031
|
*/
|
|
2084
2032
|
enum Extend {
|
|
2085
2033
|
/**
|
|
@@ -2109,7 +2057,7 @@ declare module Vips {
|
|
|
2109
2057
|
}
|
|
2110
2058
|
|
|
2111
2059
|
/**
|
|
2112
|
-
* A direction on a compass. Used for
|
|
2060
|
+
* A direction on a compass. Used for [method@Image.gravity], for example.
|
|
2113
2061
|
*/
|
|
2114
2062
|
enum CompassDirection {
|
|
2115
2063
|
/**
|
|
@@ -2151,12 +2099,13 @@ declare module Vips {
|
|
|
2151
2099
|
}
|
|
2152
2100
|
|
|
2153
2101
|
/**
|
|
2154
|
-
* See
|
|
2102
|
+
* See [method@Image.flip], [method@Image.join] and so on.
|
|
2155
2103
|
*
|
|
2156
|
-
* Operations like
|
|
2104
|
+
* Operations like [method@Image.flip] need to be told whether to flip left-right or
|
|
2157
2105
|
* top-bottom.
|
|
2158
2106
|
*
|
|
2159
|
-
*
|
|
2107
|
+
* ::: seealso
|
|
2108
|
+
* [method@Image.flip], [method@Image.join].
|
|
2160
2109
|
*/
|
|
2161
2110
|
enum Direction {
|
|
2162
2111
|
/**
|
|
@@ -2170,12 +2119,13 @@ declare module Vips {
|
|
|
2170
2119
|
}
|
|
2171
2120
|
|
|
2172
2121
|
/**
|
|
2173
|
-
* See
|
|
2122
|
+
* See [method@Image.join] and so on.
|
|
2174
2123
|
*
|
|
2175
|
-
* Operations like
|
|
2124
|
+
* Operations like [method@Image.join] need to be told whether to align images on the
|
|
2176
2125
|
* low or high coordinate edge, or centre.
|
|
2177
2126
|
*
|
|
2178
|
-
*
|
|
2127
|
+
* ::: seealso
|
|
2128
|
+
* [method@Image.join].
|
|
2179
2129
|
*/
|
|
2180
2130
|
enum Align {
|
|
2181
2131
|
/**
|
|
@@ -2194,14 +2144,15 @@ declare module Vips {
|
|
|
2194
2144
|
|
|
2195
2145
|
/**
|
|
2196
2146
|
* Pick the algorithm vips uses to decide image "interestingness". This is used
|
|
2197
|
-
* by
|
|
2147
|
+
* by [method@Image.smartcrop], for example, to decide what parts of the image to
|
|
2198
2148
|
* keep.
|
|
2199
2149
|
*
|
|
2200
|
-
*
|
|
2201
|
-
* crop is positioned at the top or left.
|
|
2150
|
+
* [enum@Vips.Interesting.NONE] and [enum@Vips.Interesting.LOW] mean the same -- the
|
|
2151
|
+
* crop is positioned at the top or left. [enum@Vips.Interesting.HIGH] positions at
|
|
2202
2152
|
* the bottom or right.
|
|
2203
2153
|
*
|
|
2204
|
-
*
|
|
2154
|
+
* ::: seealso
|
|
2155
|
+
* [method@Image.smartcrop].
|
|
2205
2156
|
*/
|
|
2206
2157
|
enum Interesting {
|
|
2207
2158
|
/**
|
|
@@ -2235,11 +2186,12 @@ declare module Vips {
|
|
|
2235
2186
|
}
|
|
2236
2187
|
|
|
2237
2188
|
/**
|
|
2238
|
-
* See
|
|
2189
|
+
* See [method@Image.rot] and so on.
|
|
2239
2190
|
*
|
|
2240
2191
|
* Fixed rotate angles.
|
|
2241
2192
|
*
|
|
2242
|
-
*
|
|
2193
|
+
* ::: seealso
|
|
2194
|
+
* [method@Image.rot].
|
|
2243
2195
|
*/
|
|
2244
2196
|
enum Angle {
|
|
2245
2197
|
/**
|
|
@@ -2261,11 +2213,12 @@ declare module Vips {
|
|
|
2261
2213
|
}
|
|
2262
2214
|
|
|
2263
2215
|
/**
|
|
2264
|
-
* See
|
|
2216
|
+
* See [method@Image.rot45] and so on.
|
|
2265
2217
|
*
|
|
2266
2218
|
* Fixed rotate angles.
|
|
2267
2219
|
*
|
|
2268
|
-
*
|
|
2220
|
+
* ::: seealso
|
|
2221
|
+
* [method@Image.rot45].
|
|
2269
2222
|
*/
|
|
2270
2223
|
enum Angle45 {
|
|
2271
2224
|
/**
|
|
@@ -2320,35 +2273,11 @@ declare module Vips {
|
|
|
2320
2273
|
approximate = 2 // 'approximate'
|
|
2321
2274
|
}
|
|
2322
2275
|
|
|
2323
|
-
/**
|
|
2324
|
-
* Sets the word wrapping style for vips_text() when used with a maximum
|
|
2325
|
-
* width.
|
|
2326
|
-
*
|
|
2327
|
-
* See also: vips_text().
|
|
2328
|
-
*/
|
|
2329
|
-
enum TextWrap {
|
|
2330
|
-
/**
|
|
2331
|
-
* Wrap at word boundaries
|
|
2332
|
-
*/
|
|
2333
|
-
word = 0, // 'word'
|
|
2334
|
-
/**
|
|
2335
|
-
* Wrap at character boundaries
|
|
2336
|
-
*/
|
|
2337
|
-
char = 1, // 'char'
|
|
2338
|
-
/**
|
|
2339
|
-
* Wrap at word boundaries, but fall back to character boundaries if there is not enough space for a full word
|
|
2340
|
-
*/
|
|
2341
|
-
word_char = 2, // 'word-char'
|
|
2342
|
-
/**
|
|
2343
|
-
* No wrapping
|
|
2344
|
-
*/
|
|
2345
|
-
none = 3 // 'none'
|
|
2346
|
-
}
|
|
2347
|
-
|
|
2348
2276
|
/**
|
|
2349
2277
|
* The SDF to generate,
|
|
2350
2278
|
*
|
|
2351
|
-
*
|
|
2279
|
+
* ::: seealso
|
|
2280
|
+
* [ctor@Image.sdf].
|
|
2352
2281
|
*/
|
|
2353
2282
|
enum SdfShape {
|
|
2354
2283
|
/**
|
|
@@ -2373,8 +2302,8 @@ declare module Vips {
|
|
|
2373
2302
|
* How sensitive loaders are to errors, from never stop (very insensitive), to
|
|
2374
2303
|
* stop on the smallest warning (very sensitive).
|
|
2375
2304
|
*
|
|
2376
|
-
* Each one implies the ones before it, so
|
|
2377
|
-
*
|
|
2305
|
+
* Each one implies the ones before it, so [enum@Vips.FailOn.ERROR] implies
|
|
2306
|
+
* [enum@Vips.FailOn.TRUNCATED].
|
|
2378
2307
|
*/
|
|
2379
2308
|
enum FailOn {
|
|
2380
2309
|
/**
|
|
@@ -2398,15 +2327,15 @@ declare module Vips {
|
|
|
2398
2327
|
/**
|
|
2399
2328
|
* The netpbm file format to save as.
|
|
2400
2329
|
*
|
|
2401
|
-
*
|
|
2330
|
+
* [enum@Vips.ForeignPpmFormat.PBM] images are single bit.
|
|
2402
2331
|
*
|
|
2403
|
-
*
|
|
2332
|
+
* [enum@Vips.ForeignPpmFormat.PGM] images are 8, 16, or 32-bits, one band.
|
|
2404
2333
|
*
|
|
2405
|
-
*
|
|
2334
|
+
* [enum@Vips.ForeignPpmFormat.PPM] images are 8, 16, or 32-bits, three bands.
|
|
2406
2335
|
*
|
|
2407
|
-
*
|
|
2336
|
+
* [enum@Vips.ForeignPpmFormat.PFM] images are 32-bit float pixels.
|
|
2408
2337
|
*
|
|
2409
|
-
*
|
|
2338
|
+
* [enum@Vips.ForeignPpmFormat.PNM] images are anymap images -- the image format
|
|
2410
2339
|
* is used to pick the saver.
|
|
2411
2340
|
*/
|
|
2412
2341
|
enum ForeignPpmFormat {
|
|
@@ -2450,98 +2379,6 @@ declare module Vips {
|
|
|
2450
2379
|
off = 2 // 'off'
|
|
2451
2380
|
}
|
|
2452
2381
|
|
|
2453
|
-
/**
|
|
2454
|
-
* What directory layout and metadata standard to use.
|
|
2455
|
-
*/
|
|
2456
|
-
enum ForeignDzLayout {
|
|
2457
|
-
/**
|
|
2458
|
-
* Use DeepZoom directory layout
|
|
2459
|
-
*/
|
|
2460
|
-
dz = 0, // 'dz'
|
|
2461
|
-
/**
|
|
2462
|
-
* Use Zoomify directory layout
|
|
2463
|
-
*/
|
|
2464
|
-
zoomify = 1, // 'zoomify'
|
|
2465
|
-
/**
|
|
2466
|
-
* Use Google maps directory layout
|
|
2467
|
-
*/
|
|
2468
|
-
google = 2, // 'google'
|
|
2469
|
-
/**
|
|
2470
|
-
* Use IIIF v2 directory layout
|
|
2471
|
-
*/
|
|
2472
|
-
iiif = 3, // 'iiif'
|
|
2473
|
-
/**
|
|
2474
|
-
* Use IIIF v3 directory layout
|
|
2475
|
-
*/
|
|
2476
|
-
iiif3 = 4 // 'iiif3'
|
|
2477
|
-
}
|
|
2478
|
-
|
|
2479
|
-
/**
|
|
2480
|
-
* How many pyramid layers to create.
|
|
2481
|
-
*/
|
|
2482
|
-
enum ForeignDzDepth {
|
|
2483
|
-
/**
|
|
2484
|
-
* Create layers down to 1x1 pixel
|
|
2485
|
-
*/
|
|
2486
|
-
onepixel = 0, // 'onepixel'
|
|
2487
|
-
/**
|
|
2488
|
-
* Create layers down to 1x1 tile
|
|
2489
|
-
*/
|
|
2490
|
-
onetile = 1, // 'onetile'
|
|
2491
|
-
/**
|
|
2492
|
-
* Only create a single layer
|
|
2493
|
-
*/
|
|
2494
|
-
one = 2 // 'one'
|
|
2495
|
-
}
|
|
2496
|
-
|
|
2497
|
-
/**
|
|
2498
|
-
* How many pyramid layers to create.
|
|
2499
|
-
*/
|
|
2500
|
-
enum ForeignDzContainer {
|
|
2501
|
-
/**
|
|
2502
|
-
* Write tiles to the filesystem
|
|
2503
|
-
*/
|
|
2504
|
-
fs = 0, // 'fs'
|
|
2505
|
-
/**
|
|
2506
|
-
* Write tiles to a zip file
|
|
2507
|
-
*/
|
|
2508
|
-
zip = 1, // 'zip'
|
|
2509
|
-
/**
|
|
2510
|
-
* Write to a szi file
|
|
2511
|
-
*/
|
|
2512
|
-
szi = 2 // 'szi'
|
|
2513
|
-
}
|
|
2514
|
-
|
|
2515
|
-
/**
|
|
2516
|
-
* How to calculate the output pixels when shrinking a 2x2 region.
|
|
2517
|
-
*/
|
|
2518
|
-
enum RegionShrink {
|
|
2519
|
-
/**
|
|
2520
|
-
* Use the average
|
|
2521
|
-
*/
|
|
2522
|
-
mean = 0, // 'mean'
|
|
2523
|
-
/**
|
|
2524
|
-
* Use the median
|
|
2525
|
-
*/
|
|
2526
|
-
median = 1, // 'median'
|
|
2527
|
-
/**
|
|
2528
|
-
* Use the mode
|
|
2529
|
-
*/
|
|
2530
|
-
mode = 2, // 'mode'
|
|
2531
|
-
/**
|
|
2532
|
-
* Use the maximum
|
|
2533
|
-
*/
|
|
2534
|
-
max = 3, // 'max'
|
|
2535
|
-
/**
|
|
2536
|
-
* Use the minimum
|
|
2537
|
-
*/
|
|
2538
|
-
min = 4, // 'min'
|
|
2539
|
-
/**
|
|
2540
|
-
* Use the top-left pixel
|
|
2541
|
-
*/
|
|
2542
|
-
nearest = 5 // 'nearest'
|
|
2543
|
-
}
|
|
2544
|
-
|
|
2545
2382
|
/**
|
|
2546
2383
|
* Tune lossy encoder settings for different image types.
|
|
2547
2384
|
*/
|
|
@@ -2655,10 +2492,58 @@ declare module Vips {
|
|
|
2655
2492
|
inch = 1 // 'inch'
|
|
2656
2493
|
}
|
|
2657
2494
|
|
|
2495
|
+
/**
|
|
2496
|
+
* How to calculate the output pixels when shrinking a 2x2 region.
|
|
2497
|
+
*/
|
|
2498
|
+
enum RegionShrink {
|
|
2499
|
+
/**
|
|
2500
|
+
* Use the average
|
|
2501
|
+
*/
|
|
2502
|
+
mean = 0, // 'mean'
|
|
2503
|
+
/**
|
|
2504
|
+
* Use the median
|
|
2505
|
+
*/
|
|
2506
|
+
median = 1, // 'median'
|
|
2507
|
+
/**
|
|
2508
|
+
* Use the mode
|
|
2509
|
+
*/
|
|
2510
|
+
mode = 2, // 'mode'
|
|
2511
|
+
/**
|
|
2512
|
+
* Use the maximum
|
|
2513
|
+
*/
|
|
2514
|
+
max = 3, // 'max'
|
|
2515
|
+
/**
|
|
2516
|
+
* Use the minimum
|
|
2517
|
+
*/
|
|
2518
|
+
min = 4, // 'min'
|
|
2519
|
+
/**
|
|
2520
|
+
* Use the top-left pixel
|
|
2521
|
+
*/
|
|
2522
|
+
nearest = 5 // 'nearest'
|
|
2523
|
+
}
|
|
2524
|
+
|
|
2525
|
+
/**
|
|
2526
|
+
* How many pyramid layers to create.
|
|
2527
|
+
*/
|
|
2528
|
+
enum ForeignDzDepth {
|
|
2529
|
+
/**
|
|
2530
|
+
* Create layers down to 1x1 pixel
|
|
2531
|
+
*/
|
|
2532
|
+
onepixel = 0, // 'onepixel'
|
|
2533
|
+
/**
|
|
2534
|
+
* Create layers down to 1x1 tile
|
|
2535
|
+
*/
|
|
2536
|
+
onetile = 1, // 'onetile'
|
|
2537
|
+
/**
|
|
2538
|
+
* Only create a single layer
|
|
2539
|
+
*/
|
|
2540
|
+
one = 2 // 'one'
|
|
2541
|
+
}
|
|
2542
|
+
|
|
2658
2543
|
/**
|
|
2659
2544
|
* The compression format to use inside a HEIF container.
|
|
2660
2545
|
*
|
|
2661
|
-
* This is assumed to use the same numbering as
|
|
2546
|
+
* This is assumed to use the same numbering as `heif_compression_format`.
|
|
2662
2547
|
*/
|
|
2663
2548
|
enum ForeignHeifCompression {
|
|
2664
2549
|
/**
|
|
@@ -2711,7 +2596,8 @@ declare module Vips {
|
|
|
2711
2596
|
* Controls whether an operation should upsize, downsize, both up and
|
|
2712
2597
|
* downsize, or force a size.
|
|
2713
2598
|
*
|
|
2714
|
-
*
|
|
2599
|
+
* ::: seealso
|
|
2600
|
+
* [ctor@Image.thumbnail].
|
|
2715
2601
|
*/
|
|
2716
2602
|
enum Size {
|
|
2717
2603
|
/**
|
|
@@ -2733,8 +2619,8 @@ declare module Vips {
|
|
|
2733
2619
|
}
|
|
2734
2620
|
|
|
2735
2621
|
/**
|
|
2736
|
-
* The rendering intent.
|
|
2737
|
-
* scientific work,
|
|
2622
|
+
* The rendering intent. [enum@Vips.Intent.ABSOLUTE] is best for
|
|
2623
|
+
* scientific work, [enum@Vips.Intent.RELATIVE] is usually best for
|
|
2738
2624
|
* accurate communication with other imaging libraries.
|
|
2739
2625
|
*/
|
|
2740
2626
|
enum Intent {
|
|
@@ -2753,11 +2639,15 @@ declare module Vips {
|
|
|
2753
2639
|
/**
|
|
2754
2640
|
* Absolute colorimetric rendering intent
|
|
2755
2641
|
*/
|
|
2756
|
-
absolute = 3 // 'absolute'
|
|
2642
|
+
absolute = 3, // 'absolute'
|
|
2643
|
+
/**
|
|
2644
|
+
* The rendering intent that the profile suggests
|
|
2645
|
+
*/
|
|
2646
|
+
auto = 32 // 'auto'
|
|
2757
2647
|
}
|
|
2758
2648
|
|
|
2759
2649
|
/**
|
|
2760
|
-
* The resampling kernels vips supports. See
|
|
2650
|
+
* The resampling kernels vips supports. See [method@Image.reduce], for example.
|
|
2761
2651
|
*/
|
|
2762
2652
|
enum Kernel {
|
|
2763
2653
|
/**
|
|
@@ -2783,12 +2673,20 @@ declare module Vips {
|
|
|
2783
2673
|
/**
|
|
2784
2674
|
* Convolve with a three-lobe Lanczos kernel.
|
|
2785
2675
|
*/
|
|
2786
|
-
lanczos3 = 5 // 'lanczos3'
|
|
2676
|
+
lanczos3 = 5, // 'lanczos3'
|
|
2677
|
+
/**
|
|
2678
|
+
* Convolve with Magic Kernel Sharp 2013.
|
|
2679
|
+
*/
|
|
2680
|
+
mks2013 = 6, // 'mks2013'
|
|
2681
|
+
/**
|
|
2682
|
+
* Convolve with Magic Kernel Sharp 2021.
|
|
2683
|
+
*/
|
|
2684
|
+
mks2021 = 7 // 'mks2021'
|
|
2787
2685
|
}
|
|
2788
2686
|
|
|
2789
2687
|
/**
|
|
2790
|
-
* Pick a Profile Connection Space for
|
|
2791
|
-
*
|
|
2688
|
+
* Pick a Profile Connection Space for [method@Image.icc_import] and
|
|
2689
|
+
* [method@Image.icc_export]. LAB is usually best, XYZ can be more convenient in some
|
|
2792
2690
|
* cases.
|
|
2793
2691
|
*/
|
|
2794
2692
|
enum PCS {
|
|
@@ -2805,7 +2703,8 @@ declare module Vips {
|
|
|
2805
2703
|
/**
|
|
2806
2704
|
* More like hit-miss, really.
|
|
2807
2705
|
*
|
|
2808
|
-
*
|
|
2706
|
+
* ::: seealso
|
|
2707
|
+
* [method@Image.morph].
|
|
2809
2708
|
*/
|
|
2810
2709
|
enum OperationMorphology {
|
|
2811
2710
|
/**
|
|
@@ -2819,12 +2718,13 @@ declare module Vips {
|
|
|
2819
2718
|
}
|
|
2820
2719
|
|
|
2821
2720
|
/**
|
|
2822
|
-
* See
|
|
2721
|
+
* See [method@Image.draw_image] and so on.
|
|
2823
2722
|
*
|
|
2824
|
-
* Operations like
|
|
2723
|
+
* Operations like [method@Image.draw_image] need to be told how to combine images
|
|
2825
2724
|
* from two sources.
|
|
2826
2725
|
*
|
|
2827
|
-
*
|
|
2726
|
+
* ::: seealso
|
|
2727
|
+
* [method@Image.join].
|
|
2828
2728
|
*/
|
|
2829
2729
|
enum CombineMode {
|
|
2830
2730
|
/**
|
|
@@ -3089,10 +2989,6 @@ declare module Vips {
|
|
|
3089
2989
|
* Error level to fail on.
|
|
3090
2990
|
*/
|
|
3091
2991
|
fail_on?: FailOn | Enum
|
|
3092
|
-
/**
|
|
3093
|
-
* Don't use a cached result for this operation.
|
|
3094
|
-
*/
|
|
3095
|
-
revalidate?: boolean
|
|
3096
2992
|
/**
|
|
3097
2993
|
* Flags for this file (output).
|
|
3098
2994
|
*/
|
|
@@ -3117,64 +3013,6 @@ declare module Vips {
|
|
|
3117
3013
|
factor?: number
|
|
3118
3014
|
}): Image;
|
|
3119
3015
|
|
|
3120
|
-
/**
|
|
3121
|
-
* Load a fits image.
|
|
3122
|
-
* @param filename Filename to load from.
|
|
3123
|
-
* @param options Optional options.
|
|
3124
|
-
* @return Output image.
|
|
3125
|
-
*/
|
|
3126
|
-
static fitsload(filename: string, options?: {
|
|
3127
|
-
/**
|
|
3128
|
-
* Force open via memory.
|
|
3129
|
-
*/
|
|
3130
|
-
memory?: boolean
|
|
3131
|
-
/**
|
|
3132
|
-
* Required access pattern for this file.
|
|
3133
|
-
*/
|
|
3134
|
-
access?: Access | Enum
|
|
3135
|
-
/**
|
|
3136
|
-
* Error level to fail on.
|
|
3137
|
-
*/
|
|
3138
|
-
fail_on?: FailOn | Enum
|
|
3139
|
-
/**
|
|
3140
|
-
* Don't use a cached result for this operation.
|
|
3141
|
-
*/
|
|
3142
|
-
revalidate?: boolean
|
|
3143
|
-
/**
|
|
3144
|
-
* Flags for this file (output).
|
|
3145
|
-
*/
|
|
3146
|
-
flags?: number | undefined
|
|
3147
|
-
}): Image;
|
|
3148
|
-
|
|
3149
|
-
/**
|
|
3150
|
-
* Load fits from a source.
|
|
3151
|
-
* @param source Source to load from.
|
|
3152
|
-
* @param options Optional options.
|
|
3153
|
-
* @return Output image.
|
|
3154
|
-
*/
|
|
3155
|
-
static fitsloadSource(source: Source, options?: {
|
|
3156
|
-
/**
|
|
3157
|
-
* Force open via memory.
|
|
3158
|
-
*/
|
|
3159
|
-
memory?: boolean
|
|
3160
|
-
/**
|
|
3161
|
-
* Required access pattern for this file.
|
|
3162
|
-
*/
|
|
3163
|
-
access?: Access | Enum
|
|
3164
|
-
/**
|
|
3165
|
-
* Error level to fail on.
|
|
3166
|
-
*/
|
|
3167
|
-
fail_on?: FailOn | Enum
|
|
3168
|
-
/**
|
|
3169
|
-
* Don't use a cached result for this operation.
|
|
3170
|
-
*/
|
|
3171
|
-
revalidate?: boolean
|
|
3172
|
-
/**
|
|
3173
|
-
* Flags for this file (output).
|
|
3174
|
-
*/
|
|
3175
|
-
flags?: number | undefined
|
|
3176
|
-
}): Image;
|
|
3177
|
-
|
|
3178
3016
|
/**
|
|
3179
3017
|
* Make a fractal surface.
|
|
3180
3018
|
* @param width Image width in pixels.
|
|
@@ -3288,10 +3126,6 @@ declare module Vips {
|
|
|
3288
3126
|
* Error level to fail on.
|
|
3289
3127
|
*/
|
|
3290
3128
|
fail_on?: FailOn | Enum
|
|
3291
|
-
/**
|
|
3292
|
-
* Don't use a cached result for this operation.
|
|
3293
|
-
*/
|
|
3294
|
-
revalidate?: boolean
|
|
3295
3129
|
/**
|
|
3296
3130
|
* Flags for this file (output).
|
|
3297
3131
|
*/
|
|
@@ -3325,10 +3159,6 @@ declare module Vips {
|
|
|
3325
3159
|
* Error level to fail on.
|
|
3326
3160
|
*/
|
|
3327
3161
|
fail_on?: FailOn | Enum
|
|
3328
|
-
/**
|
|
3329
|
-
* Don't use a cached result for this operation.
|
|
3330
|
-
*/
|
|
3331
|
-
revalidate?: boolean
|
|
3332
3162
|
/**
|
|
3333
3163
|
* Flags for this file (output).
|
|
3334
3164
|
*/
|
|
@@ -3429,10 +3259,6 @@ declare module Vips {
|
|
|
3429
3259
|
* Error level to fail on.
|
|
3430
3260
|
*/
|
|
3431
3261
|
fail_on?: FailOn | Enum
|
|
3432
|
-
/**
|
|
3433
|
-
* Don't use a cached result for this operation.
|
|
3434
|
-
*/
|
|
3435
|
-
revalidate?: boolean
|
|
3436
3262
|
/**
|
|
3437
3263
|
* Flags for this file (output).
|
|
3438
3264
|
*/
|
|
@@ -3474,10 +3300,6 @@ declare module Vips {
|
|
|
3474
3300
|
* Error level to fail on.
|
|
3475
3301
|
*/
|
|
3476
3302
|
fail_on?: FailOn | Enum
|
|
3477
|
-
/**
|
|
3478
|
-
* Don't use a cached result for this operation.
|
|
3479
|
-
*/
|
|
3480
|
-
revalidate?: boolean
|
|
3481
3303
|
/**
|
|
3482
3304
|
* Flags for this file (output).
|
|
3483
3305
|
*/
|
|
@@ -3505,16 +3327,24 @@ declare module Vips {
|
|
|
3505
3327
|
}): Image;
|
|
3506
3328
|
|
|
3507
3329
|
/**
|
|
3508
|
-
* Load
|
|
3330
|
+
* Load jpeg from file.
|
|
3509
3331
|
* @param filename Filename to load from.
|
|
3510
3332
|
* @param options Optional options.
|
|
3511
3333
|
* @return Output image.
|
|
3512
3334
|
*/
|
|
3513
|
-
static
|
|
3335
|
+
static jpegload(filename: string, options?: {
|
|
3514
3336
|
/**
|
|
3515
|
-
*
|
|
3337
|
+
* Shrink factor on load.
|
|
3516
3338
|
*/
|
|
3517
|
-
|
|
3339
|
+
shrink?: number
|
|
3340
|
+
/**
|
|
3341
|
+
* Rotate image using exif orientation.
|
|
3342
|
+
*/
|
|
3343
|
+
autorotate?: boolean
|
|
3344
|
+
/**
|
|
3345
|
+
* Remove all denial of service limits.
|
|
3346
|
+
*/
|
|
3347
|
+
unlimited?: boolean
|
|
3518
3348
|
/**
|
|
3519
3349
|
* Force open via memory.
|
|
3520
3350
|
*/
|
|
@@ -3538,121 +3368,14 @@ declare module Vips {
|
|
|
3538
3368
|
}): Image;
|
|
3539
3369
|
|
|
3540
3370
|
/**
|
|
3541
|
-
* Load
|
|
3371
|
+
* Load jpeg from buffer.
|
|
3542
3372
|
* @param buffer Buffer to load from.
|
|
3543
3373
|
* @param options Optional options.
|
|
3544
3374
|
* @return Output image.
|
|
3545
3375
|
*/
|
|
3546
|
-
static
|
|
3376
|
+
static jpegloadBuffer(buffer: Blob, options?: {
|
|
3547
3377
|
/**
|
|
3548
|
-
*
|
|
3549
|
-
*/
|
|
3550
|
-
page?: number
|
|
3551
|
-
/**
|
|
3552
|
-
* Force open via memory.
|
|
3553
|
-
*/
|
|
3554
|
-
memory?: boolean
|
|
3555
|
-
/**
|
|
3556
|
-
* Required access pattern for this file.
|
|
3557
|
-
*/
|
|
3558
|
-
access?: Access | Enum
|
|
3559
|
-
/**
|
|
3560
|
-
* Error level to fail on.
|
|
3561
|
-
*/
|
|
3562
|
-
fail_on?: FailOn | Enum
|
|
3563
|
-
/**
|
|
3564
|
-
* Don't use a cached result for this operation.
|
|
3565
|
-
*/
|
|
3566
|
-
revalidate?: boolean
|
|
3567
|
-
/**
|
|
3568
|
-
* Flags for this file (output).
|
|
3569
|
-
*/
|
|
3570
|
-
flags?: number | undefined
|
|
3571
|
-
}): Image;
|
|
3572
|
-
|
|
3573
|
-
/**
|
|
3574
|
-
* Load jpeg2000 image.
|
|
3575
|
-
* @param source Source to load from.
|
|
3576
|
-
* @param options Optional options.
|
|
3577
|
-
* @return Output image.
|
|
3578
|
-
*/
|
|
3579
|
-
static jp2kloadSource(source: Source, options?: {
|
|
3580
|
-
/**
|
|
3581
|
-
* Load this page from the image.
|
|
3582
|
-
*/
|
|
3583
|
-
page?: number
|
|
3584
|
-
/**
|
|
3585
|
-
* Force open via memory.
|
|
3586
|
-
*/
|
|
3587
|
-
memory?: boolean
|
|
3588
|
-
/**
|
|
3589
|
-
* Required access pattern for this file.
|
|
3590
|
-
*/
|
|
3591
|
-
access?: Access | Enum
|
|
3592
|
-
/**
|
|
3593
|
-
* Error level to fail on.
|
|
3594
|
-
*/
|
|
3595
|
-
fail_on?: FailOn | Enum
|
|
3596
|
-
/**
|
|
3597
|
-
* Don't use a cached result for this operation.
|
|
3598
|
-
*/
|
|
3599
|
-
revalidate?: boolean
|
|
3600
|
-
/**
|
|
3601
|
-
* Flags for this file (output).
|
|
3602
|
-
*/
|
|
3603
|
-
flags?: number | undefined
|
|
3604
|
-
}): Image;
|
|
3605
|
-
|
|
3606
|
-
/**
|
|
3607
|
-
* Load jpeg from file.
|
|
3608
|
-
* @param filename Filename to load from.
|
|
3609
|
-
* @param options Optional options.
|
|
3610
|
-
* @return Output image.
|
|
3611
|
-
*/
|
|
3612
|
-
static jpegload(filename: string, options?: {
|
|
3613
|
-
/**
|
|
3614
|
-
* Shrink factor on load.
|
|
3615
|
-
*/
|
|
3616
|
-
shrink?: number
|
|
3617
|
-
/**
|
|
3618
|
-
* Rotate image using exif orientation.
|
|
3619
|
-
*/
|
|
3620
|
-
autorotate?: boolean
|
|
3621
|
-
/**
|
|
3622
|
-
* Remove all denial of service limits.
|
|
3623
|
-
*/
|
|
3624
|
-
unlimited?: boolean
|
|
3625
|
-
/**
|
|
3626
|
-
* Force open via memory.
|
|
3627
|
-
*/
|
|
3628
|
-
memory?: boolean
|
|
3629
|
-
/**
|
|
3630
|
-
* Required access pattern for this file.
|
|
3631
|
-
*/
|
|
3632
|
-
access?: Access | Enum
|
|
3633
|
-
/**
|
|
3634
|
-
* Error level to fail on.
|
|
3635
|
-
*/
|
|
3636
|
-
fail_on?: FailOn | Enum
|
|
3637
|
-
/**
|
|
3638
|
-
* Don't use a cached result for this operation.
|
|
3639
|
-
*/
|
|
3640
|
-
revalidate?: boolean
|
|
3641
|
-
/**
|
|
3642
|
-
* Flags for this file (output).
|
|
3643
|
-
*/
|
|
3644
|
-
flags?: number | undefined
|
|
3645
|
-
}): Image;
|
|
3646
|
-
|
|
3647
|
-
/**
|
|
3648
|
-
* Load jpeg from buffer.
|
|
3649
|
-
* @param buffer Buffer to load from.
|
|
3650
|
-
* @param options Optional options.
|
|
3651
|
-
* @return Output image.
|
|
3652
|
-
*/
|
|
3653
|
-
static jpegloadBuffer(buffer: Blob, options?: {
|
|
3654
|
-
/**
|
|
3655
|
-
* Shrink factor on load.
|
|
3378
|
+
* Shrink factor on load.
|
|
3656
3379
|
*/
|
|
3657
3380
|
shrink?: number
|
|
3658
3381
|
/**
|
|
@@ -3675,10 +3398,6 @@ declare module Vips {
|
|
|
3675
3398
|
* Error level to fail on.
|
|
3676
3399
|
*/
|
|
3677
3400
|
fail_on?: FailOn | Enum
|
|
3678
|
-
/**
|
|
3679
|
-
* Don't use a cached result for this operation.
|
|
3680
|
-
*/
|
|
3681
|
-
revalidate?: boolean
|
|
3682
3401
|
/**
|
|
3683
3402
|
* Flags for this file (output).
|
|
3684
3403
|
*/
|
|
@@ -3716,10 +3435,6 @@ declare module Vips {
|
|
|
3716
3435
|
* Error level to fail on.
|
|
3717
3436
|
*/
|
|
3718
3437
|
fail_on?: FailOn | Enum
|
|
3719
|
-
/**
|
|
3720
|
-
* Don't use a cached result for this operation.
|
|
3721
|
-
*/
|
|
3722
|
-
revalidate?: boolean
|
|
3723
3438
|
/**
|
|
3724
3439
|
* Flags for this file (output).
|
|
3725
3440
|
*/
|
|
@@ -3790,10 +3505,6 @@ declare module Vips {
|
|
|
3790
3505
|
* Error level to fail on.
|
|
3791
3506
|
*/
|
|
3792
3507
|
fail_on?: FailOn | Enum
|
|
3793
|
-
/**
|
|
3794
|
-
* Don't use a cached result for this operation.
|
|
3795
|
-
*/
|
|
3796
|
-
revalidate?: boolean
|
|
3797
3508
|
/**
|
|
3798
3509
|
* Flags for this file (output).
|
|
3799
3510
|
*/
|
|
@@ -3827,10 +3538,6 @@ declare module Vips {
|
|
|
3827
3538
|
* Error level to fail on.
|
|
3828
3539
|
*/
|
|
3829
3540
|
fail_on?: FailOn | Enum
|
|
3830
|
-
/**
|
|
3831
|
-
* Don't use a cached result for this operation.
|
|
3832
|
-
*/
|
|
3833
|
-
revalidate?: boolean
|
|
3834
3541
|
/**
|
|
3835
3542
|
* Flags for this file (output).
|
|
3836
3543
|
*/
|
|
@@ -3855,88 +3562,6 @@ declare module Vips {
|
|
|
3855
3562
|
precision?: Precision | Enum
|
|
3856
3563
|
}): Image;
|
|
3857
3564
|
|
|
3858
|
-
/**
|
|
3859
|
-
* Load file with imagemagick.
|
|
3860
|
-
* @param filename Filename to load from.
|
|
3861
|
-
* @param options Optional options.
|
|
3862
|
-
* @return Output image.
|
|
3863
|
-
*/
|
|
3864
|
-
static magickload(filename: string, options?: {
|
|
3865
|
-
/**
|
|
3866
|
-
* Canvas resolution for rendering vector formats like svg.
|
|
3867
|
-
*/
|
|
3868
|
-
density?: string
|
|
3869
|
-
/**
|
|
3870
|
-
* First page to load.
|
|
3871
|
-
*/
|
|
3872
|
-
page?: number
|
|
3873
|
-
/**
|
|
3874
|
-
* Number of pages to load, -1 for all.
|
|
3875
|
-
*/
|
|
3876
|
-
n?: number
|
|
3877
|
-
/**
|
|
3878
|
-
* Force open via memory.
|
|
3879
|
-
*/
|
|
3880
|
-
memory?: boolean
|
|
3881
|
-
/**
|
|
3882
|
-
* Required access pattern for this file.
|
|
3883
|
-
*/
|
|
3884
|
-
access?: Access | Enum
|
|
3885
|
-
/**
|
|
3886
|
-
* Error level to fail on.
|
|
3887
|
-
*/
|
|
3888
|
-
fail_on?: FailOn | Enum
|
|
3889
|
-
/**
|
|
3890
|
-
* Don't use a cached result for this operation.
|
|
3891
|
-
*/
|
|
3892
|
-
revalidate?: boolean
|
|
3893
|
-
/**
|
|
3894
|
-
* Flags for this file (output).
|
|
3895
|
-
*/
|
|
3896
|
-
flags?: number | undefined
|
|
3897
|
-
}): Image;
|
|
3898
|
-
|
|
3899
|
-
/**
|
|
3900
|
-
* Load buffer with imagemagick.
|
|
3901
|
-
* @param buffer Buffer to load from.
|
|
3902
|
-
* @param options Optional options.
|
|
3903
|
-
* @return Output image.
|
|
3904
|
-
*/
|
|
3905
|
-
static magickloadBuffer(buffer: Blob, options?: {
|
|
3906
|
-
/**
|
|
3907
|
-
* Canvas resolution for rendering vector formats like svg.
|
|
3908
|
-
*/
|
|
3909
|
-
density?: string
|
|
3910
|
-
/**
|
|
3911
|
-
* First page to load.
|
|
3912
|
-
*/
|
|
3913
|
-
page?: number
|
|
3914
|
-
/**
|
|
3915
|
-
* Number of pages to load, -1 for all.
|
|
3916
|
-
*/
|
|
3917
|
-
n?: number
|
|
3918
|
-
/**
|
|
3919
|
-
* Force open via memory.
|
|
3920
|
-
*/
|
|
3921
|
-
memory?: boolean
|
|
3922
|
-
/**
|
|
3923
|
-
* Required access pattern for this file.
|
|
3924
|
-
*/
|
|
3925
|
-
access?: Access | Enum
|
|
3926
|
-
/**
|
|
3927
|
-
* Error level to fail on.
|
|
3928
|
-
*/
|
|
3929
|
-
fail_on?: FailOn | Enum
|
|
3930
|
-
/**
|
|
3931
|
-
* Don't use a cached result for this operation.
|
|
3932
|
-
*/
|
|
3933
|
-
revalidate?: boolean
|
|
3934
|
-
/**
|
|
3935
|
-
* Flags for this file (output).
|
|
3936
|
-
*/
|
|
3937
|
-
flags?: number | undefined
|
|
3938
|
-
}): Image;
|
|
3939
|
-
|
|
3940
3565
|
/**
|
|
3941
3566
|
* Make a butterworth filter.
|
|
3942
3567
|
* @param width Image width in pixels.
|
|
@@ -4126,461 +3751,112 @@ declare module Vips {
|
|
|
4126
3751
|
/**
|
|
4127
3752
|
* Output an unsigned char image.
|
|
4128
3753
|
*/
|
|
4129
|
-
uchar?: boolean
|
|
4130
|
-
/**
|
|
4131
|
-
* Remove dc component.
|
|
4132
|
-
*/
|
|
4133
|
-
nodc?: boolean
|
|
4134
|
-
/**
|
|
4135
|
-
* Invert the sense of the filter.
|
|
4136
|
-
*/
|
|
4137
|
-
reject?: boolean
|
|
4138
|
-
/**
|
|
4139
|
-
* Rotate quadrants to optical space.
|
|
4140
|
-
*/
|
|
4141
|
-
optical?: boolean
|
|
4142
|
-
}): Image;
|
|
4143
|
-
|
|
4144
|
-
/**
|
|
4145
|
-
* Make an ideal filter.
|
|
4146
|
-
* @param width Image width in pixels.
|
|
4147
|
-
* @param height Image height in pixels.
|
|
4148
|
-
* @param frequency_cutoff Frequency cutoff.
|
|
4149
|
-
* @param options Optional options.
|
|
4150
|
-
* @return Output image.
|
|
4151
|
-
*/
|
|
4152
|
-
static maskIdeal(width: number, height: number, frequency_cutoff: number, options?: {
|
|
4153
|
-
/**
|
|
4154
|
-
* Output an unsigned char image.
|
|
4155
|
-
*/
|
|
4156
|
-
uchar?: boolean
|
|
4157
|
-
/**
|
|
4158
|
-
* Remove dc component.
|
|
4159
|
-
*/
|
|
4160
|
-
nodc?: boolean
|
|
4161
|
-
/**
|
|
4162
|
-
* Invert the sense of the filter.
|
|
4163
|
-
*/
|
|
4164
|
-
reject?: boolean
|
|
4165
|
-
/**
|
|
4166
|
-
* Rotate quadrants to optical space.
|
|
4167
|
-
*/
|
|
4168
|
-
optical?: boolean
|
|
4169
|
-
}): Image;
|
|
4170
|
-
|
|
4171
|
-
/**
|
|
4172
|
-
* Make an ideal band filter.
|
|
4173
|
-
* @param width Image width in pixels.
|
|
4174
|
-
* @param height Image height in pixels.
|
|
4175
|
-
* @param frequency_cutoff_x Frequency cutoff x.
|
|
4176
|
-
* @param frequency_cutoff_y Frequency cutoff y.
|
|
4177
|
-
* @param radius Radius of circle.
|
|
4178
|
-
* @param options Optional options.
|
|
4179
|
-
* @return Output image.
|
|
4180
|
-
*/
|
|
4181
|
-
static maskIdealBand(width: number, height: number, frequency_cutoff_x: number, frequency_cutoff_y: number, radius: number, options?: {
|
|
4182
|
-
/**
|
|
4183
|
-
* Output an unsigned char image.
|
|
4184
|
-
*/
|
|
4185
|
-
uchar?: boolean
|
|
4186
|
-
/**
|
|
4187
|
-
* Remove dc component.
|
|
4188
|
-
*/
|
|
4189
|
-
nodc?: boolean
|
|
4190
|
-
/**
|
|
4191
|
-
* Invert the sense of the filter.
|
|
4192
|
-
*/
|
|
4193
|
-
reject?: boolean
|
|
4194
|
-
/**
|
|
4195
|
-
* Rotate quadrants to optical space.
|
|
4196
|
-
*/
|
|
4197
|
-
optical?: boolean
|
|
4198
|
-
}): Image;
|
|
4199
|
-
|
|
4200
|
-
/**
|
|
4201
|
-
* Make an ideal ring filter.
|
|
4202
|
-
* @param width Image width in pixels.
|
|
4203
|
-
* @param height Image height in pixels.
|
|
4204
|
-
* @param frequency_cutoff Frequency cutoff.
|
|
4205
|
-
* @param ringwidth Ringwidth.
|
|
4206
|
-
* @param options Optional options.
|
|
4207
|
-
* @return Output image.
|
|
4208
|
-
*/
|
|
4209
|
-
static maskIdealRing(width: number, height: number, frequency_cutoff: number, ringwidth: number, options?: {
|
|
4210
|
-
/**
|
|
4211
|
-
* Output an unsigned char image.
|
|
4212
|
-
*/
|
|
4213
|
-
uchar?: boolean
|
|
4214
|
-
/**
|
|
4215
|
-
* Remove dc component.
|
|
4216
|
-
*/
|
|
4217
|
-
nodc?: boolean
|
|
4218
|
-
/**
|
|
4219
|
-
* Invert the sense of the filter.
|
|
4220
|
-
*/
|
|
4221
|
-
reject?: boolean
|
|
4222
|
-
/**
|
|
4223
|
-
* Rotate quadrants to optical space.
|
|
4224
|
-
*/
|
|
4225
|
-
optical?: boolean
|
|
4226
|
-
}): Image;
|
|
4227
|
-
|
|
4228
|
-
/**
|
|
4229
|
-
* Load mat from file.
|
|
4230
|
-
* @param filename Filename to load from.
|
|
4231
|
-
* @param options Optional options.
|
|
4232
|
-
* @return Output image.
|
|
4233
|
-
*/
|
|
4234
|
-
static matload(filename: string, options?: {
|
|
4235
|
-
/**
|
|
4236
|
-
* Force open via memory.
|
|
4237
|
-
*/
|
|
4238
|
-
memory?: boolean
|
|
4239
|
-
/**
|
|
4240
|
-
* Required access pattern for this file.
|
|
4241
|
-
*/
|
|
4242
|
-
access?: Access | Enum
|
|
4243
|
-
/**
|
|
4244
|
-
* Error level to fail on.
|
|
4245
|
-
*/
|
|
4246
|
-
fail_on?: FailOn | Enum
|
|
4247
|
-
/**
|
|
4248
|
-
* Don't use a cached result for this operation.
|
|
4249
|
-
*/
|
|
4250
|
-
revalidate?: boolean
|
|
4251
|
-
/**
|
|
4252
|
-
* Flags for this file (output).
|
|
4253
|
-
*/
|
|
4254
|
-
flags?: number | undefined
|
|
4255
|
-
}): Image;
|
|
4256
|
-
|
|
4257
|
-
/**
|
|
4258
|
-
* Load matrix.
|
|
4259
|
-
* @param filename Filename to load from.
|
|
4260
|
-
* @param options Optional options.
|
|
4261
|
-
* @return Output image.
|
|
4262
|
-
*/
|
|
4263
|
-
static matrixload(filename: string, options?: {
|
|
4264
|
-
/**
|
|
4265
|
-
* Force open via memory.
|
|
4266
|
-
*/
|
|
4267
|
-
memory?: boolean
|
|
4268
|
-
/**
|
|
4269
|
-
* Required access pattern for this file.
|
|
4270
|
-
*/
|
|
4271
|
-
access?: Access | Enum
|
|
4272
|
-
/**
|
|
4273
|
-
* Error level to fail on.
|
|
4274
|
-
*/
|
|
4275
|
-
fail_on?: FailOn | Enum
|
|
4276
|
-
/**
|
|
4277
|
-
* Don't use a cached result for this operation.
|
|
4278
|
-
*/
|
|
4279
|
-
revalidate?: boolean
|
|
4280
|
-
/**
|
|
4281
|
-
* Flags for this file (output).
|
|
4282
|
-
*/
|
|
4283
|
-
flags?: number | undefined
|
|
4284
|
-
}): Image;
|
|
4285
|
-
|
|
4286
|
-
/**
|
|
4287
|
-
* Load matrix.
|
|
4288
|
-
* @param source Source to load from.
|
|
4289
|
-
* @param options Optional options.
|
|
4290
|
-
* @return Output image.
|
|
4291
|
-
*/
|
|
4292
|
-
static matrixloadSource(source: Source, options?: {
|
|
4293
|
-
/**
|
|
4294
|
-
* Force open via memory.
|
|
4295
|
-
*/
|
|
4296
|
-
memory?: boolean
|
|
4297
|
-
/**
|
|
4298
|
-
* Required access pattern for this file.
|
|
4299
|
-
*/
|
|
4300
|
-
access?: Access | Enum
|
|
4301
|
-
/**
|
|
4302
|
-
* Error level to fail on.
|
|
4303
|
-
*/
|
|
4304
|
-
fail_on?: FailOn | Enum
|
|
4305
|
-
/**
|
|
4306
|
-
* Don't use a cached result for this operation.
|
|
4307
|
-
*/
|
|
4308
|
-
revalidate?: boolean
|
|
4309
|
-
/**
|
|
4310
|
-
* Flags for this file (output).
|
|
4311
|
-
*/
|
|
4312
|
-
flags?: number | undefined
|
|
4313
|
-
}): Image;
|
|
4314
|
-
|
|
4315
|
-
/**
|
|
4316
|
-
* Load nifti volume.
|
|
4317
|
-
* @param filename Filename to load from.
|
|
4318
|
-
* @param options Optional options.
|
|
4319
|
-
* @return Output image.
|
|
4320
|
-
*/
|
|
4321
|
-
static niftiload(filename: string, options?: {
|
|
4322
|
-
/**
|
|
4323
|
-
* Force open via memory.
|
|
4324
|
-
*/
|
|
4325
|
-
memory?: boolean
|
|
4326
|
-
/**
|
|
4327
|
-
* Required access pattern for this file.
|
|
4328
|
-
*/
|
|
4329
|
-
access?: Access | Enum
|
|
4330
|
-
/**
|
|
4331
|
-
* Error level to fail on.
|
|
4332
|
-
*/
|
|
4333
|
-
fail_on?: FailOn | Enum
|
|
4334
|
-
/**
|
|
4335
|
-
* Don't use a cached result for this operation.
|
|
4336
|
-
*/
|
|
4337
|
-
revalidate?: boolean
|
|
4338
|
-
/**
|
|
4339
|
-
* Flags for this file (output).
|
|
4340
|
-
*/
|
|
4341
|
-
flags?: number | undefined
|
|
4342
|
-
}): Image;
|
|
4343
|
-
|
|
4344
|
-
/**
|
|
4345
|
-
* Load nifti volumes.
|
|
4346
|
-
* @param source Source to load from.
|
|
4347
|
-
* @param options Optional options.
|
|
4348
|
-
* @return Output image.
|
|
4349
|
-
*/
|
|
4350
|
-
static niftiloadSource(source: Source, options?: {
|
|
4351
|
-
/**
|
|
4352
|
-
* Force open via memory.
|
|
4353
|
-
*/
|
|
4354
|
-
memory?: boolean
|
|
4355
|
-
/**
|
|
4356
|
-
* Required access pattern for this file.
|
|
4357
|
-
*/
|
|
4358
|
-
access?: Access | Enum
|
|
4359
|
-
/**
|
|
4360
|
-
* Error level to fail on.
|
|
4361
|
-
*/
|
|
4362
|
-
fail_on?: FailOn | Enum
|
|
4363
|
-
/**
|
|
4364
|
-
* Don't use a cached result for this operation.
|
|
4365
|
-
*/
|
|
4366
|
-
revalidate?: boolean
|
|
4367
|
-
/**
|
|
4368
|
-
* Flags for this file (output).
|
|
4369
|
-
*/
|
|
4370
|
-
flags?: number | undefined
|
|
4371
|
-
}): Image;
|
|
4372
|
-
|
|
4373
|
-
/**
|
|
4374
|
-
* Load an openexr image.
|
|
4375
|
-
* @param filename Filename to load from.
|
|
4376
|
-
* @param options Optional options.
|
|
4377
|
-
* @return Output image.
|
|
4378
|
-
*/
|
|
4379
|
-
static openexrload(filename: string, options?: {
|
|
4380
|
-
/**
|
|
4381
|
-
* Force open via memory.
|
|
4382
|
-
*/
|
|
4383
|
-
memory?: boolean
|
|
4384
|
-
/**
|
|
4385
|
-
* Required access pattern for this file.
|
|
4386
|
-
*/
|
|
4387
|
-
access?: Access | Enum
|
|
4388
|
-
/**
|
|
4389
|
-
* Error level to fail on.
|
|
4390
|
-
*/
|
|
4391
|
-
fail_on?: FailOn | Enum
|
|
4392
|
-
/**
|
|
4393
|
-
* Don't use a cached result for this operation.
|
|
4394
|
-
*/
|
|
4395
|
-
revalidate?: boolean
|
|
4396
|
-
/**
|
|
4397
|
-
* Flags for this file (output).
|
|
4398
|
-
*/
|
|
4399
|
-
flags?: number | undefined
|
|
4400
|
-
}): Image;
|
|
4401
|
-
|
|
4402
|
-
/**
|
|
4403
|
-
* Load file with openslide.
|
|
4404
|
-
* @param filename Filename to load from.
|
|
4405
|
-
* @param options Optional options.
|
|
4406
|
-
* @return Output image.
|
|
4407
|
-
*/
|
|
4408
|
-
static openslideload(filename: string, options?: {
|
|
4409
|
-
/**
|
|
4410
|
-
* Load this level from the file.
|
|
4411
|
-
*/
|
|
4412
|
-
level?: number
|
|
4413
|
-
/**
|
|
4414
|
-
* Crop to image bounds.
|
|
4415
|
-
*/
|
|
4416
|
-
autocrop?: boolean
|
|
4417
|
-
/**
|
|
4418
|
-
* Load this associated image.
|
|
4419
|
-
*/
|
|
4420
|
-
associated?: string
|
|
4421
|
-
/**
|
|
4422
|
-
* Attach all associated images.
|
|
4423
|
-
*/
|
|
4424
|
-
attach_associated?: boolean
|
|
4425
|
-
/**
|
|
4426
|
-
* Output rgb (not rgba).
|
|
4427
|
-
*/
|
|
4428
|
-
rgb?: boolean
|
|
4429
|
-
/**
|
|
4430
|
-
* Force open via memory.
|
|
4431
|
-
*/
|
|
4432
|
-
memory?: boolean
|
|
4433
|
-
/**
|
|
4434
|
-
* Required access pattern for this file.
|
|
4435
|
-
*/
|
|
4436
|
-
access?: Access | Enum
|
|
4437
|
-
/**
|
|
4438
|
-
* Error level to fail on.
|
|
4439
|
-
*/
|
|
4440
|
-
fail_on?: FailOn | Enum
|
|
4441
|
-
/**
|
|
4442
|
-
* Don't use a cached result for this operation.
|
|
4443
|
-
*/
|
|
4444
|
-
revalidate?: boolean
|
|
4445
|
-
/**
|
|
4446
|
-
* Flags for this file (output).
|
|
4447
|
-
*/
|
|
4448
|
-
flags?: number | undefined
|
|
4449
|
-
}): Image;
|
|
4450
|
-
|
|
4451
|
-
/**
|
|
4452
|
-
* Load source with openslide.
|
|
4453
|
-
* @param source Source to load from.
|
|
4454
|
-
* @param options Optional options.
|
|
4455
|
-
* @return Output image.
|
|
4456
|
-
*/
|
|
4457
|
-
static openslideloadSource(source: Source, options?: {
|
|
4458
|
-
/**
|
|
4459
|
-
* Load this level from the file.
|
|
4460
|
-
*/
|
|
4461
|
-
level?: number
|
|
4462
|
-
/**
|
|
4463
|
-
* Crop to image bounds.
|
|
4464
|
-
*/
|
|
4465
|
-
autocrop?: boolean
|
|
4466
|
-
/**
|
|
4467
|
-
* Load this associated image.
|
|
4468
|
-
*/
|
|
4469
|
-
associated?: string
|
|
4470
|
-
/**
|
|
4471
|
-
* Attach all associated images.
|
|
4472
|
-
*/
|
|
4473
|
-
attach_associated?: boolean
|
|
4474
|
-
/**
|
|
4475
|
-
* Output rgb (not rgba).
|
|
4476
|
-
*/
|
|
4477
|
-
rgb?: boolean
|
|
4478
|
-
/**
|
|
4479
|
-
* Force open via memory.
|
|
4480
|
-
*/
|
|
4481
|
-
memory?: boolean
|
|
4482
|
-
/**
|
|
4483
|
-
* Required access pattern for this file.
|
|
4484
|
-
*/
|
|
4485
|
-
access?: Access | Enum
|
|
3754
|
+
uchar?: boolean
|
|
4486
3755
|
/**
|
|
4487
|
-
*
|
|
3756
|
+
* Remove dc component.
|
|
4488
3757
|
*/
|
|
4489
|
-
|
|
3758
|
+
nodc?: boolean
|
|
4490
3759
|
/**
|
|
4491
|
-
*
|
|
3760
|
+
* Invert the sense of the filter.
|
|
4492
3761
|
*/
|
|
4493
|
-
|
|
3762
|
+
reject?: boolean
|
|
4494
3763
|
/**
|
|
4495
|
-
*
|
|
3764
|
+
* Rotate quadrants to optical space.
|
|
4496
3765
|
*/
|
|
4497
|
-
|
|
3766
|
+
optical?: boolean
|
|
4498
3767
|
}): Image;
|
|
4499
3768
|
|
|
4500
3769
|
/**
|
|
4501
|
-
*
|
|
4502
|
-
* @param
|
|
3770
|
+
* Make an ideal filter.
|
|
3771
|
+
* @param width Image width in pixels.
|
|
3772
|
+
* @param height Image height in pixels.
|
|
3773
|
+
* @param frequency_cutoff Frequency cutoff.
|
|
4503
3774
|
* @param options Optional options.
|
|
4504
3775
|
* @return Output image.
|
|
4505
3776
|
*/
|
|
4506
|
-
static
|
|
4507
|
-
/**
|
|
4508
|
-
* First page to load.
|
|
4509
|
-
*/
|
|
4510
|
-
page?: number
|
|
4511
|
-
/**
|
|
4512
|
-
* Number of pages to load, -1 for all.
|
|
4513
|
-
*/
|
|
4514
|
-
n?: number
|
|
4515
|
-
/**
|
|
4516
|
-
* Dpi to render at.
|
|
4517
|
-
*/
|
|
4518
|
-
dpi?: number
|
|
3777
|
+
static maskIdeal(width: number, height: number, frequency_cutoff: number, options?: {
|
|
4519
3778
|
/**
|
|
4520
|
-
*
|
|
3779
|
+
* Output an unsigned char image.
|
|
4521
3780
|
*/
|
|
4522
|
-
|
|
3781
|
+
uchar?: boolean
|
|
4523
3782
|
/**
|
|
4524
|
-
*
|
|
3783
|
+
* Remove dc component.
|
|
4525
3784
|
*/
|
|
4526
|
-
|
|
3785
|
+
nodc?: boolean
|
|
4527
3786
|
/**
|
|
4528
|
-
*
|
|
3787
|
+
* Invert the sense of the filter.
|
|
4529
3788
|
*/
|
|
4530
|
-
|
|
3789
|
+
reject?: boolean
|
|
4531
3790
|
/**
|
|
4532
|
-
*
|
|
3791
|
+
* Rotate quadrants to optical space.
|
|
4533
3792
|
*/
|
|
4534
|
-
|
|
3793
|
+
optical?: boolean
|
|
3794
|
+
}): Image;
|
|
3795
|
+
|
|
3796
|
+
/**
|
|
3797
|
+
* Make an ideal band filter.
|
|
3798
|
+
* @param width Image width in pixels.
|
|
3799
|
+
* @param height Image height in pixels.
|
|
3800
|
+
* @param frequency_cutoff_x Frequency cutoff x.
|
|
3801
|
+
* @param frequency_cutoff_y Frequency cutoff y.
|
|
3802
|
+
* @param radius Radius of circle.
|
|
3803
|
+
* @param options Optional options.
|
|
3804
|
+
* @return Output image.
|
|
3805
|
+
*/
|
|
3806
|
+
static maskIdealBand(width: number, height: number, frequency_cutoff_x: number, frequency_cutoff_y: number, radius: number, options?: {
|
|
4535
3807
|
/**
|
|
4536
|
-
*
|
|
3808
|
+
* Output an unsigned char image.
|
|
4537
3809
|
*/
|
|
4538
|
-
|
|
3810
|
+
uchar?: boolean
|
|
4539
3811
|
/**
|
|
4540
|
-
*
|
|
3812
|
+
* Remove dc component.
|
|
4541
3813
|
*/
|
|
4542
|
-
|
|
3814
|
+
nodc?: boolean
|
|
4543
3815
|
/**
|
|
4544
|
-
*
|
|
3816
|
+
* Invert the sense of the filter.
|
|
4545
3817
|
*/
|
|
4546
|
-
|
|
3818
|
+
reject?: boolean
|
|
4547
3819
|
/**
|
|
4548
|
-
*
|
|
3820
|
+
* Rotate quadrants to optical space.
|
|
4549
3821
|
*/
|
|
4550
|
-
|
|
3822
|
+
optical?: boolean
|
|
4551
3823
|
}): Image;
|
|
4552
3824
|
|
|
4553
3825
|
/**
|
|
4554
|
-
*
|
|
4555
|
-
* @param
|
|
3826
|
+
* Make an ideal ring filter.
|
|
3827
|
+
* @param width Image width in pixels.
|
|
3828
|
+
* @param height Image height in pixels.
|
|
3829
|
+
* @param frequency_cutoff Frequency cutoff.
|
|
3830
|
+
* @param ringwidth Ringwidth.
|
|
4556
3831
|
* @param options Optional options.
|
|
4557
3832
|
* @return Output image.
|
|
4558
3833
|
*/
|
|
4559
|
-
static
|
|
4560
|
-
/**
|
|
4561
|
-
* First page to load.
|
|
4562
|
-
*/
|
|
4563
|
-
page?: number
|
|
4564
|
-
/**
|
|
4565
|
-
* Number of pages to load, -1 for all.
|
|
4566
|
-
*/
|
|
4567
|
-
n?: number
|
|
3834
|
+
static maskIdealRing(width: number, height: number, frequency_cutoff: number, ringwidth: number, options?: {
|
|
4568
3835
|
/**
|
|
4569
|
-
*
|
|
3836
|
+
* Output an unsigned char image.
|
|
4570
3837
|
*/
|
|
4571
|
-
|
|
3838
|
+
uchar?: boolean
|
|
4572
3839
|
/**
|
|
4573
|
-
*
|
|
3840
|
+
* Remove dc component.
|
|
4574
3841
|
*/
|
|
4575
|
-
|
|
3842
|
+
nodc?: boolean
|
|
4576
3843
|
/**
|
|
4577
|
-
*
|
|
3844
|
+
* Invert the sense of the filter.
|
|
4578
3845
|
*/
|
|
4579
|
-
|
|
3846
|
+
reject?: boolean
|
|
4580
3847
|
/**
|
|
4581
|
-
*
|
|
3848
|
+
* Rotate quadrants to optical space.
|
|
4582
3849
|
*/
|
|
4583
|
-
|
|
3850
|
+
optical?: boolean
|
|
3851
|
+
}): Image;
|
|
3852
|
+
|
|
3853
|
+
/**
|
|
3854
|
+
* Load matrix.
|
|
3855
|
+
* @param filename Filename to load from.
|
|
3856
|
+
* @param options Optional options.
|
|
3857
|
+
* @return Output image.
|
|
3858
|
+
*/
|
|
3859
|
+
static matrixload(filename: string, options?: {
|
|
4584
3860
|
/**
|
|
4585
3861
|
* Force open via memory.
|
|
4586
3862
|
*/
|
|
@@ -4604,36 +3880,12 @@ declare module Vips {
|
|
|
4604
3880
|
}): Image;
|
|
4605
3881
|
|
|
4606
3882
|
/**
|
|
4607
|
-
* Load
|
|
3883
|
+
* Load matrix.
|
|
4608
3884
|
* @param source Source to load from.
|
|
4609
3885
|
* @param options Optional options.
|
|
4610
3886
|
* @return Output image.
|
|
4611
3887
|
*/
|
|
4612
|
-
static
|
|
4613
|
-
/**
|
|
4614
|
-
* First page to load.
|
|
4615
|
-
*/
|
|
4616
|
-
page?: number
|
|
4617
|
-
/**
|
|
4618
|
-
* Number of pages to load, -1 for all.
|
|
4619
|
-
*/
|
|
4620
|
-
n?: number
|
|
4621
|
-
/**
|
|
4622
|
-
* Dpi to render at.
|
|
4623
|
-
*/
|
|
4624
|
-
dpi?: number
|
|
4625
|
-
/**
|
|
4626
|
-
* Factor to scale by.
|
|
4627
|
-
*/
|
|
4628
|
-
scale?: number
|
|
4629
|
-
/**
|
|
4630
|
-
* Background colour.
|
|
4631
|
-
*/
|
|
4632
|
-
background?: ArrayConstant
|
|
4633
|
-
/**
|
|
4634
|
-
* Password to decrypt with.
|
|
4635
|
-
*/
|
|
4636
|
-
password?: string
|
|
3888
|
+
static matrixloadSource(source: Source, options?: {
|
|
4637
3889
|
/**
|
|
4638
3890
|
* Force open via memory.
|
|
4639
3891
|
*/
|
|
@@ -4646,10 +3898,6 @@ declare module Vips {
|
|
|
4646
3898
|
* Error level to fail on.
|
|
4647
3899
|
*/
|
|
4648
3900
|
fail_on?: FailOn | Enum
|
|
4649
|
-
/**
|
|
4650
|
-
* Don't use a cached result for this operation.
|
|
4651
|
-
*/
|
|
4652
|
-
revalidate?: boolean
|
|
4653
3901
|
/**
|
|
4654
3902
|
* Flags for this file (output).
|
|
4655
3903
|
*/
|
|
@@ -4734,10 +3982,6 @@ declare module Vips {
|
|
|
4734
3982
|
* Error level to fail on.
|
|
4735
3983
|
*/
|
|
4736
3984
|
fail_on?: FailOn | Enum
|
|
4737
|
-
/**
|
|
4738
|
-
* Don't use a cached result for this operation.
|
|
4739
|
-
*/
|
|
4740
|
-
revalidate?: boolean
|
|
4741
3985
|
/**
|
|
4742
3986
|
* Flags for this file (output).
|
|
4743
3987
|
*/
|
|
@@ -4767,10 +4011,6 @@ declare module Vips {
|
|
|
4767
4011
|
* Error level to fail on.
|
|
4768
4012
|
*/
|
|
4769
4013
|
fail_on?: FailOn | Enum
|
|
4770
|
-
/**
|
|
4771
|
-
* Don't use a cached result for this operation.
|
|
4772
|
-
*/
|
|
4773
|
-
revalidate?: boolean
|
|
4774
4014
|
/**
|
|
4775
4015
|
* Flags for this file (output).
|
|
4776
4016
|
*/
|
|
@@ -4807,12 +4047,12 @@ declare module Vips {
|
|
|
4807
4047
|
}): Image;
|
|
4808
4048
|
|
|
4809
4049
|
/**
|
|
4810
|
-
* Load ppm
|
|
4811
|
-
* @param
|
|
4050
|
+
* Load ppm from buffer.
|
|
4051
|
+
* @param buffer Buffer to load from.
|
|
4812
4052
|
* @param options Optional options.
|
|
4813
4053
|
* @return Output image.
|
|
4814
4054
|
*/
|
|
4815
|
-
static
|
|
4055
|
+
static ppmloadBuffer(buffer: Blob, options?: {
|
|
4816
4056
|
/**
|
|
4817
4057
|
* Force open via memory.
|
|
4818
4058
|
*/
|
|
@@ -4826,9 +4066,30 @@ declare module Vips {
|
|
|
4826
4066
|
*/
|
|
4827
4067
|
fail_on?: FailOn | Enum
|
|
4828
4068
|
/**
|
|
4829
|
-
*
|
|
4069
|
+
* Flags for this file (output).
|
|
4830
4070
|
*/
|
|
4831
|
-
|
|
4071
|
+
flags?: number | undefined
|
|
4072
|
+
}): Image;
|
|
4073
|
+
|
|
4074
|
+
/**
|
|
4075
|
+
* Load ppm from source.
|
|
4076
|
+
* @param source Source to load from.
|
|
4077
|
+
* @param options Optional options.
|
|
4078
|
+
* @return Output image.
|
|
4079
|
+
*/
|
|
4080
|
+
static ppmloadSource(source: Source, options?: {
|
|
4081
|
+
/**
|
|
4082
|
+
* Force open via memory.
|
|
4083
|
+
*/
|
|
4084
|
+
memory?: boolean
|
|
4085
|
+
/**
|
|
4086
|
+
* Required access pattern for this file.
|
|
4087
|
+
*/
|
|
4088
|
+
access?: Access | Enum
|
|
4089
|
+
/**
|
|
4090
|
+
* Error level to fail on.
|
|
4091
|
+
*/
|
|
4092
|
+
fail_on?: FailOn | Enum
|
|
4832
4093
|
/**
|
|
4833
4094
|
* Flags for this file (output).
|
|
4834
4095
|
*/
|
|
@@ -4890,10 +4151,6 @@ declare module Vips {
|
|
|
4890
4151
|
* Error level to fail on.
|
|
4891
4152
|
*/
|
|
4892
4153
|
fail_on?: FailOn | Enum
|
|
4893
|
-
/**
|
|
4894
|
-
* Don't use a cached result for this operation.
|
|
4895
|
-
*/
|
|
4896
|
-
revalidate?: boolean
|
|
4897
4154
|
/**
|
|
4898
4155
|
* Flags for this file (output).
|
|
4899
4156
|
*/
|
|
@@ -4919,10 +4176,6 @@ declare module Vips {
|
|
|
4919
4176
|
* Error level to fail on.
|
|
4920
4177
|
*/
|
|
4921
4178
|
fail_on?: FailOn | Enum
|
|
4922
|
-
/**
|
|
4923
|
-
* Don't use a cached result for this operation.
|
|
4924
|
-
*/
|
|
4925
|
-
revalidate?: boolean
|
|
4926
4179
|
/**
|
|
4927
4180
|
* Flags for this file (output).
|
|
4928
4181
|
*/
|
|
@@ -5048,6 +4301,14 @@ declare module Vips {
|
|
|
5048
4301
|
* Allow svg of any size.
|
|
5049
4302
|
*/
|
|
5050
4303
|
unlimited?: boolean
|
|
4304
|
+
/**
|
|
4305
|
+
* Custom css.
|
|
4306
|
+
*/
|
|
4307
|
+
stylesheet?: string
|
|
4308
|
+
/**
|
|
4309
|
+
* Enable scrgb 128-bit output (32-bit per channel).
|
|
4310
|
+
*/
|
|
4311
|
+
high_bitdepth?: boolean
|
|
5051
4312
|
/**
|
|
5052
4313
|
* Force open via memory.
|
|
5053
4314
|
*/
|
|
@@ -5090,46 +4351,13 @@ declare module Vips {
|
|
|
5090
4351
|
*/
|
|
5091
4352
|
unlimited?: boolean
|
|
5092
4353
|
/**
|
|
5093
|
-
*
|
|
5094
|
-
*/
|
|
5095
|
-
memory?: boolean
|
|
5096
|
-
/**
|
|
5097
|
-
* Required access pattern for this file.
|
|
5098
|
-
*/
|
|
5099
|
-
access?: Access | Enum
|
|
5100
|
-
/**
|
|
5101
|
-
* Error level to fail on.
|
|
5102
|
-
*/
|
|
5103
|
-
fail_on?: FailOn | Enum
|
|
5104
|
-
/**
|
|
5105
|
-
* Don't use a cached result for this operation.
|
|
5106
|
-
*/
|
|
5107
|
-
revalidate?: boolean
|
|
5108
|
-
/**
|
|
5109
|
-
* Flags for this file (output).
|
|
5110
|
-
*/
|
|
5111
|
-
flags?: number | undefined
|
|
5112
|
-
}): Image;
|
|
5113
|
-
|
|
5114
|
-
/**
|
|
5115
|
-
* Load svg from source.
|
|
5116
|
-
* @param source Source to load from.
|
|
5117
|
-
* @param options Optional options.
|
|
5118
|
-
* @return Output image.
|
|
5119
|
-
*/
|
|
5120
|
-
static svgloadSource(source: Source, options?: {
|
|
5121
|
-
/**
|
|
5122
|
-
* Render at this dpi.
|
|
5123
|
-
*/
|
|
5124
|
-
dpi?: number
|
|
5125
|
-
/**
|
|
5126
|
-
* Scale output by this factor.
|
|
4354
|
+
* Custom css.
|
|
5127
4355
|
*/
|
|
5128
|
-
|
|
4356
|
+
stylesheet?: string
|
|
5129
4357
|
/**
|
|
5130
|
-
*
|
|
4358
|
+
* Enable scrgb 128-bit output (32-bit per channel).
|
|
5131
4359
|
*/
|
|
5132
|
-
|
|
4360
|
+
high_bitdepth?: boolean
|
|
5133
4361
|
/**
|
|
5134
4362
|
* Force open via memory.
|
|
5135
4363
|
*/
|
|
@@ -5142,10 +4370,6 @@ declare module Vips {
|
|
|
5142
4370
|
* Error level to fail on.
|
|
5143
4371
|
*/
|
|
5144
4372
|
fail_on?: FailOn | Enum
|
|
5145
|
-
/**
|
|
5146
|
-
* Don't use a cached result for this operation.
|
|
5147
|
-
*/
|
|
5148
|
-
revalidate?: boolean
|
|
5149
4373
|
/**
|
|
5150
4374
|
* Flags for this file (output).
|
|
5151
4375
|
*/
|
|
@@ -5187,59 +4411,6 @@ declare module Vips {
|
|
|
5187
4411
|
log?: string | undefined
|
|
5188
4412
|
}): void;
|
|
5189
4413
|
|
|
5190
|
-
/**
|
|
5191
|
-
* Make a text image.
|
|
5192
|
-
* @param text Text to render.
|
|
5193
|
-
* @param options Optional options.
|
|
5194
|
-
* @return Output image.
|
|
5195
|
-
*/
|
|
5196
|
-
static text(text: string, options?: {
|
|
5197
|
-
/**
|
|
5198
|
-
* Font to render with.
|
|
5199
|
-
*/
|
|
5200
|
-
font?: string
|
|
5201
|
-
/**
|
|
5202
|
-
* Maximum image width in pixels.
|
|
5203
|
-
*/
|
|
5204
|
-
width?: number
|
|
5205
|
-
/**
|
|
5206
|
-
* Maximum image height in pixels.
|
|
5207
|
-
*/
|
|
5208
|
-
height?: number
|
|
5209
|
-
/**
|
|
5210
|
-
* Align on the low, centre or high edge.
|
|
5211
|
-
*/
|
|
5212
|
-
align?: Align | Enum
|
|
5213
|
-
/**
|
|
5214
|
-
* Justify lines.
|
|
5215
|
-
*/
|
|
5216
|
-
justify?: boolean
|
|
5217
|
-
/**
|
|
5218
|
-
* Dpi to render at.
|
|
5219
|
-
*/
|
|
5220
|
-
dpi?: number
|
|
5221
|
-
/**
|
|
5222
|
-
* Line spacing.
|
|
5223
|
-
*/
|
|
5224
|
-
spacing?: number
|
|
5225
|
-
/**
|
|
5226
|
-
* Load this font file.
|
|
5227
|
-
*/
|
|
5228
|
-
fontfile?: string
|
|
5229
|
-
/**
|
|
5230
|
-
* Enable rgba output.
|
|
5231
|
-
*/
|
|
5232
|
-
rgba?: boolean
|
|
5233
|
-
/**
|
|
5234
|
-
* Wrap lines on word or character boundaries.
|
|
5235
|
-
*/
|
|
5236
|
-
wrap?: TextWrap | Enum
|
|
5237
|
-
/**
|
|
5238
|
-
* Dpi selected by autofit (output).
|
|
5239
|
-
*/
|
|
5240
|
-
autofit_dpi?: number | undefined
|
|
5241
|
-
}): Image;
|
|
5242
|
-
|
|
5243
4414
|
/**
|
|
5244
4415
|
* Generate thumbnail from file.
|
|
5245
4416
|
* @param filename Filename to read from.
|
|
@@ -5269,13 +4440,13 @@ declare module Vips {
|
|
|
5269
4440
|
*/
|
|
5270
4441
|
linear?: boolean
|
|
5271
4442
|
/**
|
|
5272
|
-
* Fallback
|
|
4443
|
+
* Fallback input profile.
|
|
5273
4444
|
*/
|
|
5274
|
-
|
|
4445
|
+
input_profile?: string
|
|
5275
4446
|
/**
|
|
5276
|
-
* Fallback
|
|
4447
|
+
* Fallback output profile.
|
|
5277
4448
|
*/
|
|
5278
|
-
|
|
4449
|
+
output_profile?: string
|
|
5279
4450
|
/**
|
|
5280
4451
|
* Rendering intent.
|
|
5281
4452
|
*/
|
|
@@ -5319,13 +4490,13 @@ declare module Vips {
|
|
|
5319
4490
|
*/
|
|
5320
4491
|
linear?: boolean
|
|
5321
4492
|
/**
|
|
5322
|
-
* Fallback
|
|
4493
|
+
* Fallback input profile.
|
|
5323
4494
|
*/
|
|
5324
|
-
|
|
4495
|
+
input_profile?: string
|
|
5325
4496
|
/**
|
|
5326
|
-
* Fallback
|
|
4497
|
+
* Fallback output profile.
|
|
5327
4498
|
*/
|
|
5328
|
-
|
|
4499
|
+
output_profile?: string
|
|
5329
4500
|
/**
|
|
5330
4501
|
* Rendering intent.
|
|
5331
4502
|
*/
|
|
@@ -5369,13 +4540,13 @@ declare module Vips {
|
|
|
5369
4540
|
*/
|
|
5370
4541
|
linear?: boolean
|
|
5371
4542
|
/**
|
|
5372
|
-
* Fallback
|
|
4543
|
+
* Fallback input profile.
|
|
5373
4544
|
*/
|
|
5374
|
-
|
|
4545
|
+
input_profile?: string
|
|
5375
4546
|
/**
|
|
5376
|
-
* Fallback
|
|
4547
|
+
* Fallback output profile.
|
|
5377
4548
|
*/
|
|
5378
|
-
|
|
4549
|
+
output_profile?: string
|
|
5379
4550
|
/**
|
|
5380
4551
|
* Rendering intent.
|
|
5381
4552
|
*/
|
|
@@ -5397,10 +4568,6 @@ declare module Vips {
|
|
|
5397
4568
|
* First page to load.
|
|
5398
4569
|
*/
|
|
5399
4570
|
page?: number
|
|
5400
|
-
/**
|
|
5401
|
-
* Subifd index.
|
|
5402
|
-
*/
|
|
5403
|
-
subifd?: number
|
|
5404
4571
|
/**
|
|
5405
4572
|
* Number of pages to load, -1 for all.
|
|
5406
4573
|
*/
|
|
@@ -5409,6 +4576,14 @@ declare module Vips {
|
|
|
5409
4576
|
* Rotate image using orientation tag.
|
|
5410
4577
|
*/
|
|
5411
4578
|
autorotate?: boolean
|
|
4579
|
+
/**
|
|
4580
|
+
* Subifd index.
|
|
4581
|
+
*/
|
|
4582
|
+
subifd?: number
|
|
4583
|
+
/**
|
|
4584
|
+
* Remove all denial of service limits.
|
|
4585
|
+
*/
|
|
4586
|
+
unlimited?: boolean
|
|
5412
4587
|
/**
|
|
5413
4588
|
* Force open via memory.
|
|
5414
4589
|
*/
|
|
@@ -5442,10 +4617,6 @@ declare module Vips {
|
|
|
5442
4617
|
* First page to load.
|
|
5443
4618
|
*/
|
|
5444
4619
|
page?: number
|
|
5445
|
-
/**
|
|
5446
|
-
* Subifd index.
|
|
5447
|
-
*/
|
|
5448
|
-
subifd?: number
|
|
5449
4620
|
/**
|
|
5450
4621
|
* Number of pages to load, -1 for all.
|
|
5451
4622
|
*/
|
|
@@ -5454,6 +4625,14 @@ declare module Vips {
|
|
|
5454
4625
|
* Rotate image using orientation tag.
|
|
5455
4626
|
*/
|
|
5456
4627
|
autorotate?: boolean
|
|
4628
|
+
/**
|
|
4629
|
+
* Subifd index.
|
|
4630
|
+
*/
|
|
4631
|
+
subifd?: number
|
|
4632
|
+
/**
|
|
4633
|
+
* Remove all denial of service limits.
|
|
4634
|
+
*/
|
|
4635
|
+
unlimited?: boolean
|
|
5457
4636
|
/**
|
|
5458
4637
|
* Force open via memory.
|
|
5459
4638
|
*/
|
|
@@ -5466,10 +4645,6 @@ declare module Vips {
|
|
|
5466
4645
|
* Error level to fail on.
|
|
5467
4646
|
*/
|
|
5468
4647
|
fail_on?: FailOn | Enum
|
|
5469
|
-
/**
|
|
5470
|
-
* Don't use a cached result for this operation.
|
|
5471
|
-
*/
|
|
5472
|
-
revalidate?: boolean
|
|
5473
4648
|
/**
|
|
5474
4649
|
* Flags for this file (output).
|
|
5475
4650
|
*/
|
|
@@ -5487,10 +4662,6 @@ declare module Vips {
|
|
|
5487
4662
|
* First page to load.
|
|
5488
4663
|
*/
|
|
5489
4664
|
page?: number
|
|
5490
|
-
/**
|
|
5491
|
-
* Subifd index.
|
|
5492
|
-
*/
|
|
5493
|
-
subifd?: number
|
|
5494
4665
|
/**
|
|
5495
4666
|
* Number of pages to load, -1 for all.
|
|
5496
4667
|
*/
|
|
@@ -5499,6 +4670,14 @@ declare module Vips {
|
|
|
5499
4670
|
* Rotate image using orientation tag.
|
|
5500
4671
|
*/
|
|
5501
4672
|
autorotate?: boolean
|
|
4673
|
+
/**
|
|
4674
|
+
* Subifd index.
|
|
4675
|
+
*/
|
|
4676
|
+
subifd?: number
|
|
4677
|
+
/**
|
|
4678
|
+
* Remove all denial of service limits.
|
|
4679
|
+
*/
|
|
4680
|
+
unlimited?: boolean
|
|
5502
4681
|
/**
|
|
5503
4682
|
* Force open via memory.
|
|
5504
4683
|
*/
|
|
@@ -5511,10 +4690,6 @@ declare module Vips {
|
|
|
5511
4690
|
* Error level to fail on.
|
|
5512
4691
|
*/
|
|
5513
4692
|
fail_on?: FailOn | Enum
|
|
5514
|
-
/**
|
|
5515
|
-
* Don't use a cached result for this operation.
|
|
5516
|
-
*/
|
|
5517
|
-
revalidate?: boolean
|
|
5518
4693
|
/**
|
|
5519
4694
|
* Flags for this file (output).
|
|
5520
4695
|
*/
|
|
@@ -5617,10 +4792,6 @@ declare module Vips {
|
|
|
5617
4792
|
* Error level to fail on.
|
|
5618
4793
|
*/
|
|
5619
4794
|
fail_on?: FailOn | Enum
|
|
5620
|
-
/**
|
|
5621
|
-
* Don't use a cached result for this operation.
|
|
5622
|
-
*/
|
|
5623
|
-
revalidate?: boolean
|
|
5624
4795
|
/**
|
|
5625
4796
|
* Flags for this file (output).
|
|
5626
4797
|
*/
|
|
@@ -5699,10 +4870,6 @@ declare module Vips {
|
|
|
5699
4870
|
* Error level to fail on.
|
|
5700
4871
|
*/
|
|
5701
4872
|
fail_on?: FailOn | Enum
|
|
5702
|
-
/**
|
|
5703
|
-
* Don't use a cached result for this operation.
|
|
5704
|
-
*/
|
|
5705
|
-
revalidate?: boolean
|
|
5706
4873
|
/**
|
|
5707
4874
|
* Flags for this file (output).
|
|
5708
4875
|
*/
|
|
@@ -5740,10 +4907,6 @@ declare module Vips {
|
|
|
5740
4907
|
* Error level to fail on.
|
|
5741
4908
|
*/
|
|
5742
4909
|
fail_on?: FailOn | Enum
|
|
5743
|
-
/**
|
|
5744
|
-
* Don't use a cached result for this operation.
|
|
5745
|
-
*/
|
|
5746
|
-
revalidate?: boolean
|
|
5747
4910
|
/**
|
|
5748
4911
|
* Flags for this file (output).
|
|
5749
4912
|
*/
|
|
@@ -6574,246 +5737,6 @@ declare module Vips {
|
|
|
6574
5737
|
*/
|
|
6575
5738
|
drawSmudge(left: number, top: number, width: number, height: number): void;
|
|
6576
5739
|
|
|
6577
|
-
/**
|
|
6578
|
-
* Save image to deepzoom file.
|
|
6579
|
-
* @param filename Filename to save to.
|
|
6580
|
-
* @param options Optional options.
|
|
6581
|
-
*/
|
|
6582
|
-
dzsave(filename: string, options?: {
|
|
6583
|
-
/**
|
|
6584
|
-
* Image name.
|
|
6585
|
-
*/
|
|
6586
|
-
imagename?: string
|
|
6587
|
-
/**
|
|
6588
|
-
* Directory layout.
|
|
6589
|
-
*/
|
|
6590
|
-
layout?: ForeignDzLayout | Enum
|
|
6591
|
-
/**
|
|
6592
|
-
* Filename suffix for tiles.
|
|
6593
|
-
*/
|
|
6594
|
-
suffix?: string
|
|
6595
|
-
/**
|
|
6596
|
-
* Tile overlap in pixels.
|
|
6597
|
-
*/
|
|
6598
|
-
overlap?: number
|
|
6599
|
-
/**
|
|
6600
|
-
* Tile size in pixels.
|
|
6601
|
-
*/
|
|
6602
|
-
tile_size?: number
|
|
6603
|
-
/**
|
|
6604
|
-
* Center image in tile.
|
|
6605
|
-
*/
|
|
6606
|
-
centre?: boolean
|
|
6607
|
-
/**
|
|
6608
|
-
* Pyramid depth.
|
|
6609
|
-
*/
|
|
6610
|
-
depth?: ForeignDzDepth | Enum
|
|
6611
|
-
/**
|
|
6612
|
-
* Rotate image during save.
|
|
6613
|
-
*/
|
|
6614
|
-
angle?: Angle | Enum
|
|
6615
|
-
/**
|
|
6616
|
-
* Pyramid container type.
|
|
6617
|
-
*/
|
|
6618
|
-
container?: ForeignDzContainer | Enum
|
|
6619
|
-
/**
|
|
6620
|
-
* Zip deflate compression level.
|
|
6621
|
-
*/
|
|
6622
|
-
compression?: number
|
|
6623
|
-
/**
|
|
6624
|
-
* Method to shrink regions.
|
|
6625
|
-
*/
|
|
6626
|
-
region_shrink?: RegionShrink | Enum
|
|
6627
|
-
/**
|
|
6628
|
-
* Skip tiles which are nearly equal to the background.
|
|
6629
|
-
*/
|
|
6630
|
-
skip_blanks?: number
|
|
6631
|
-
/**
|
|
6632
|
-
* Resource id.
|
|
6633
|
-
*/
|
|
6634
|
-
id?: string
|
|
6635
|
-
/**
|
|
6636
|
-
* Q factor.
|
|
6637
|
-
*/
|
|
6638
|
-
Q?: number
|
|
6639
|
-
/**
|
|
6640
|
-
* Which metadata to retain.
|
|
6641
|
-
*/
|
|
6642
|
-
keep?: ForeignKeep | Flag
|
|
6643
|
-
/**
|
|
6644
|
-
* Background value.
|
|
6645
|
-
*/
|
|
6646
|
-
background?: ArrayConstant
|
|
6647
|
-
/**
|
|
6648
|
-
* Set page height for multipage save.
|
|
6649
|
-
*/
|
|
6650
|
-
page_height?: number
|
|
6651
|
-
/**
|
|
6652
|
-
* Filename of icc profile to embed.
|
|
6653
|
-
*/
|
|
6654
|
-
profile?: string
|
|
6655
|
-
}): void;
|
|
6656
|
-
|
|
6657
|
-
/**
|
|
6658
|
-
* Save image to dz buffer.
|
|
6659
|
-
* @param options Optional options.
|
|
6660
|
-
* @return Buffer to save to.
|
|
6661
|
-
*/
|
|
6662
|
-
dzsaveBuffer(options?: {
|
|
6663
|
-
/**
|
|
6664
|
-
* Image name.
|
|
6665
|
-
*/
|
|
6666
|
-
imagename?: string
|
|
6667
|
-
/**
|
|
6668
|
-
* Directory layout.
|
|
6669
|
-
*/
|
|
6670
|
-
layout?: ForeignDzLayout | Enum
|
|
6671
|
-
/**
|
|
6672
|
-
* Filename suffix for tiles.
|
|
6673
|
-
*/
|
|
6674
|
-
suffix?: string
|
|
6675
|
-
/**
|
|
6676
|
-
* Tile overlap in pixels.
|
|
6677
|
-
*/
|
|
6678
|
-
overlap?: number
|
|
6679
|
-
/**
|
|
6680
|
-
* Tile size in pixels.
|
|
6681
|
-
*/
|
|
6682
|
-
tile_size?: number
|
|
6683
|
-
/**
|
|
6684
|
-
* Center image in tile.
|
|
6685
|
-
*/
|
|
6686
|
-
centre?: boolean
|
|
6687
|
-
/**
|
|
6688
|
-
* Pyramid depth.
|
|
6689
|
-
*/
|
|
6690
|
-
depth?: ForeignDzDepth | Enum
|
|
6691
|
-
/**
|
|
6692
|
-
* Rotate image during save.
|
|
6693
|
-
*/
|
|
6694
|
-
angle?: Angle | Enum
|
|
6695
|
-
/**
|
|
6696
|
-
* Pyramid container type.
|
|
6697
|
-
*/
|
|
6698
|
-
container?: ForeignDzContainer | Enum
|
|
6699
|
-
/**
|
|
6700
|
-
* Zip deflate compression level.
|
|
6701
|
-
*/
|
|
6702
|
-
compression?: number
|
|
6703
|
-
/**
|
|
6704
|
-
* Method to shrink regions.
|
|
6705
|
-
*/
|
|
6706
|
-
region_shrink?: RegionShrink | Enum
|
|
6707
|
-
/**
|
|
6708
|
-
* Skip tiles which are nearly equal to the background.
|
|
6709
|
-
*/
|
|
6710
|
-
skip_blanks?: number
|
|
6711
|
-
/**
|
|
6712
|
-
* Resource id.
|
|
6713
|
-
*/
|
|
6714
|
-
id?: string
|
|
6715
|
-
/**
|
|
6716
|
-
* Q factor.
|
|
6717
|
-
*/
|
|
6718
|
-
Q?: number
|
|
6719
|
-
/**
|
|
6720
|
-
* Which metadata to retain.
|
|
6721
|
-
*/
|
|
6722
|
-
keep?: ForeignKeep | Flag
|
|
6723
|
-
/**
|
|
6724
|
-
* Background value.
|
|
6725
|
-
*/
|
|
6726
|
-
background?: ArrayConstant
|
|
6727
|
-
/**
|
|
6728
|
-
* Set page height for multipage save.
|
|
6729
|
-
*/
|
|
6730
|
-
page_height?: number
|
|
6731
|
-
/**
|
|
6732
|
-
* Filename of icc profile to embed.
|
|
6733
|
-
*/
|
|
6734
|
-
profile?: string
|
|
6735
|
-
}): Uint8Array;
|
|
6736
|
-
|
|
6737
|
-
/**
|
|
6738
|
-
* Save image to deepzoom target.
|
|
6739
|
-
* @param target Target to save to.
|
|
6740
|
-
* @param options Optional options.
|
|
6741
|
-
*/
|
|
6742
|
-
dzsaveTarget(target: Target, options?: {
|
|
6743
|
-
/**
|
|
6744
|
-
* Image name.
|
|
6745
|
-
*/
|
|
6746
|
-
imagename?: string
|
|
6747
|
-
/**
|
|
6748
|
-
* Directory layout.
|
|
6749
|
-
*/
|
|
6750
|
-
layout?: ForeignDzLayout | Enum
|
|
6751
|
-
/**
|
|
6752
|
-
* Filename suffix for tiles.
|
|
6753
|
-
*/
|
|
6754
|
-
suffix?: string
|
|
6755
|
-
/**
|
|
6756
|
-
* Tile overlap in pixels.
|
|
6757
|
-
*/
|
|
6758
|
-
overlap?: number
|
|
6759
|
-
/**
|
|
6760
|
-
* Tile size in pixels.
|
|
6761
|
-
*/
|
|
6762
|
-
tile_size?: number
|
|
6763
|
-
/**
|
|
6764
|
-
* Center image in tile.
|
|
6765
|
-
*/
|
|
6766
|
-
centre?: boolean
|
|
6767
|
-
/**
|
|
6768
|
-
* Pyramid depth.
|
|
6769
|
-
*/
|
|
6770
|
-
depth?: ForeignDzDepth | Enum
|
|
6771
|
-
/**
|
|
6772
|
-
* Rotate image during save.
|
|
6773
|
-
*/
|
|
6774
|
-
angle?: Angle | Enum
|
|
6775
|
-
/**
|
|
6776
|
-
* Pyramid container type.
|
|
6777
|
-
*/
|
|
6778
|
-
container?: ForeignDzContainer | Enum
|
|
6779
|
-
/**
|
|
6780
|
-
* Zip deflate compression level.
|
|
6781
|
-
*/
|
|
6782
|
-
compression?: number
|
|
6783
|
-
/**
|
|
6784
|
-
* Method to shrink regions.
|
|
6785
|
-
*/
|
|
6786
|
-
region_shrink?: RegionShrink | Enum
|
|
6787
|
-
/**
|
|
6788
|
-
* Skip tiles which are nearly equal to the background.
|
|
6789
|
-
*/
|
|
6790
|
-
skip_blanks?: number
|
|
6791
|
-
/**
|
|
6792
|
-
* Resource id.
|
|
6793
|
-
*/
|
|
6794
|
-
id?: string
|
|
6795
|
-
/**
|
|
6796
|
-
* Q factor.
|
|
6797
|
-
*/
|
|
6798
|
-
Q?: number
|
|
6799
|
-
/**
|
|
6800
|
-
* Which metadata to retain.
|
|
6801
|
-
*/
|
|
6802
|
-
keep?: ForeignKeep | Flag
|
|
6803
|
-
/**
|
|
6804
|
-
* Background value.
|
|
6805
|
-
*/
|
|
6806
|
-
background?: ArrayConstant
|
|
6807
|
-
/**
|
|
6808
|
-
* Set page height for multipage save.
|
|
6809
|
-
*/
|
|
6810
|
-
page_height?: number
|
|
6811
|
-
/**
|
|
6812
|
-
* Filename of icc profile to embed.
|
|
6813
|
-
*/
|
|
6814
|
-
profile?: string
|
|
6815
|
-
}): void;
|
|
6816
|
-
|
|
6817
5740
|
/**
|
|
6818
5741
|
* Embed an image in a larger image.
|
|
6819
5742
|
* @param x Left edge of input in output.
|
|
@@ -6872,39 +5795,15 @@ declare module Vips {
|
|
|
6872
5795
|
|
|
6873
5796
|
/**
|
|
6874
5797
|
* Fill image zeros with nearest non-zero pixel.
|
|
6875
|
-
* @param options Optional options.
|
|
6876
|
-
* @return Value of nearest non-zero pixel.
|
|
6877
|
-
*/
|
|
6878
|
-
fillNearest(options?: {
|
|
6879
|
-
/**
|
|
6880
|
-
* Distance to nearest non-zero pixel (output).
|
|
6881
|
-
*/
|
|
6882
|
-
distance?: Image | undefined
|
|
6883
|
-
}): Image;
|
|
6884
|
-
|
|
6885
|
-
/**
|
|
6886
|
-
* Save image to fits file.
|
|
6887
|
-
* @param filename Filename to save to.
|
|
6888
|
-
* @param options Optional options.
|
|
6889
|
-
*/
|
|
6890
|
-
fitssave(filename: string, options?: {
|
|
6891
|
-
/**
|
|
6892
|
-
* Which metadata to retain.
|
|
6893
|
-
*/
|
|
6894
|
-
keep?: ForeignKeep | Flag
|
|
6895
|
-
/**
|
|
6896
|
-
* Background value.
|
|
6897
|
-
*/
|
|
6898
|
-
background?: ArrayConstant
|
|
6899
|
-
/**
|
|
6900
|
-
* Set page height for multipage save.
|
|
6901
|
-
*/
|
|
6902
|
-
page_height?: number
|
|
5798
|
+
* @param options Optional options.
|
|
5799
|
+
* @return Value of nearest non-zero pixel.
|
|
5800
|
+
*/
|
|
5801
|
+
fillNearest(options?: {
|
|
6903
5802
|
/**
|
|
6904
|
-
*
|
|
5803
|
+
* Distance to nearest non-zero pixel (output).
|
|
6905
5804
|
*/
|
|
6906
|
-
|
|
6907
|
-
}):
|
|
5805
|
+
distance?: Image | undefined
|
|
5806
|
+
}): Image;
|
|
6908
5807
|
|
|
6909
5808
|
/**
|
|
6910
5809
|
* Flatten alpha out of an image.
|
|
@@ -6942,12 +5841,6 @@ declare module Vips {
|
|
|
6942
5841
|
*/
|
|
6943
5842
|
freqmult(mask: Image | ArrayConstant): Image;
|
|
6944
5843
|
|
|
6945
|
-
/**
|
|
6946
|
-
* Forward fft.
|
|
6947
|
-
* @return Output image.
|
|
6948
|
-
*/
|
|
6949
|
-
fwfft(): Image;
|
|
6950
|
-
|
|
6951
5844
|
/**
|
|
6952
5845
|
* Gamma an image.
|
|
6953
5846
|
* @param options Optional options.
|
|
@@ -7025,6 +5918,10 @@ declare module Vips {
|
|
|
7025
5918
|
* Generate an interlaced (progressive) gif.
|
|
7026
5919
|
*/
|
|
7027
5920
|
interlace?: boolean
|
|
5921
|
+
/**
|
|
5922
|
+
* Keep duplicate frames in the output instead of combining them.
|
|
5923
|
+
*/
|
|
5924
|
+
keep_duplicate_frames?: boolean
|
|
7028
5925
|
/**
|
|
7029
5926
|
* Which metadata to retain.
|
|
7030
5927
|
*/
|
|
@@ -7077,6 +5974,10 @@ declare module Vips {
|
|
|
7077
5974
|
* Generate an interlaced (progressive) gif.
|
|
7078
5975
|
*/
|
|
7079
5976
|
interlace?: boolean
|
|
5977
|
+
/**
|
|
5978
|
+
* Keep duplicate frames in the output instead of combining them.
|
|
5979
|
+
*/
|
|
5980
|
+
keep_duplicate_frames?: boolean
|
|
7080
5981
|
/**
|
|
7081
5982
|
* Which metadata to retain.
|
|
7082
5983
|
*/
|
|
@@ -7129,6 +6030,10 @@ declare module Vips {
|
|
|
7129
6030
|
* Generate an interlaced (progressive) gif.
|
|
7130
6031
|
*/
|
|
7131
6032
|
interlace?: boolean
|
|
6033
|
+
/**
|
|
6034
|
+
* Keep duplicate frames in the output instead of combining them.
|
|
6035
|
+
*/
|
|
6036
|
+
keep_duplicate_frames?: boolean
|
|
7132
6037
|
/**
|
|
7133
6038
|
* Which metadata to retain.
|
|
7134
6039
|
*/
|
|
@@ -7623,18 +6528,6 @@ declare module Vips {
|
|
|
7623
6528
|
size?: number
|
|
7624
6529
|
}): Image;
|
|
7625
6530
|
|
|
7626
|
-
/**
|
|
7627
|
-
* Inverse fft.
|
|
7628
|
-
* @param options Optional options.
|
|
7629
|
-
* @return Output image.
|
|
7630
|
-
*/
|
|
7631
|
-
invfft(options?: {
|
|
7632
|
-
/**
|
|
7633
|
-
* Output only the real part of the transform.
|
|
7634
|
-
*/
|
|
7635
|
-
real?: boolean
|
|
7636
|
-
}): Image;
|
|
7637
|
-
|
|
7638
6531
|
/**
|
|
7639
6532
|
* Join a pair of images.
|
|
7640
6533
|
* @param in2 Second input image.
|
|
@@ -7661,138 +6554,6 @@ declare module Vips {
|
|
|
7661
6554
|
align?: Align | Enum
|
|
7662
6555
|
}): Image;
|
|
7663
6556
|
|
|
7664
|
-
/**
|
|
7665
|
-
* Save image in jpeg2000 format.
|
|
7666
|
-
* @param filename Filename to save to.
|
|
7667
|
-
* @param options Optional options.
|
|
7668
|
-
*/
|
|
7669
|
-
jp2ksave(filename: string, options?: {
|
|
7670
|
-
/**
|
|
7671
|
-
* Tile width in pixels.
|
|
7672
|
-
*/
|
|
7673
|
-
tile_width?: number
|
|
7674
|
-
/**
|
|
7675
|
-
* Tile height in pixels.
|
|
7676
|
-
*/
|
|
7677
|
-
tile_height?: number
|
|
7678
|
-
/**
|
|
7679
|
-
* Enable lossless compression.
|
|
7680
|
-
*/
|
|
7681
|
-
lossless?: boolean
|
|
7682
|
-
/**
|
|
7683
|
-
* Q factor.
|
|
7684
|
-
*/
|
|
7685
|
-
Q?: number
|
|
7686
|
-
/**
|
|
7687
|
-
* Select chroma subsample operation mode.
|
|
7688
|
-
*/
|
|
7689
|
-
subsample_mode?: ForeignSubsample | Enum
|
|
7690
|
-
/**
|
|
7691
|
-
* Which metadata to retain.
|
|
7692
|
-
*/
|
|
7693
|
-
keep?: ForeignKeep | Flag
|
|
7694
|
-
/**
|
|
7695
|
-
* Background value.
|
|
7696
|
-
*/
|
|
7697
|
-
background?: ArrayConstant
|
|
7698
|
-
/**
|
|
7699
|
-
* Set page height for multipage save.
|
|
7700
|
-
*/
|
|
7701
|
-
page_height?: number
|
|
7702
|
-
/**
|
|
7703
|
-
* Filename of icc profile to embed.
|
|
7704
|
-
*/
|
|
7705
|
-
profile?: string
|
|
7706
|
-
}): void;
|
|
7707
|
-
|
|
7708
|
-
/**
|
|
7709
|
-
* Save image in jpeg2000 format.
|
|
7710
|
-
* @param options Optional options.
|
|
7711
|
-
* @return Buffer to save to.
|
|
7712
|
-
*/
|
|
7713
|
-
jp2ksaveBuffer(options?: {
|
|
7714
|
-
/**
|
|
7715
|
-
* Tile width in pixels.
|
|
7716
|
-
*/
|
|
7717
|
-
tile_width?: number
|
|
7718
|
-
/**
|
|
7719
|
-
* Tile height in pixels.
|
|
7720
|
-
*/
|
|
7721
|
-
tile_height?: number
|
|
7722
|
-
/**
|
|
7723
|
-
* Enable lossless compression.
|
|
7724
|
-
*/
|
|
7725
|
-
lossless?: boolean
|
|
7726
|
-
/**
|
|
7727
|
-
* Q factor.
|
|
7728
|
-
*/
|
|
7729
|
-
Q?: number
|
|
7730
|
-
/**
|
|
7731
|
-
* Select chroma subsample operation mode.
|
|
7732
|
-
*/
|
|
7733
|
-
subsample_mode?: ForeignSubsample | Enum
|
|
7734
|
-
/**
|
|
7735
|
-
* Which metadata to retain.
|
|
7736
|
-
*/
|
|
7737
|
-
keep?: ForeignKeep | Flag
|
|
7738
|
-
/**
|
|
7739
|
-
* Background value.
|
|
7740
|
-
*/
|
|
7741
|
-
background?: ArrayConstant
|
|
7742
|
-
/**
|
|
7743
|
-
* Set page height for multipage save.
|
|
7744
|
-
*/
|
|
7745
|
-
page_height?: number
|
|
7746
|
-
/**
|
|
7747
|
-
* Filename of icc profile to embed.
|
|
7748
|
-
*/
|
|
7749
|
-
profile?: string
|
|
7750
|
-
}): Uint8Array;
|
|
7751
|
-
|
|
7752
|
-
/**
|
|
7753
|
-
* Save image in jpeg2000 format.
|
|
7754
|
-
* @param target Target to save to.
|
|
7755
|
-
* @param options Optional options.
|
|
7756
|
-
*/
|
|
7757
|
-
jp2ksaveTarget(target: Target, options?: {
|
|
7758
|
-
/**
|
|
7759
|
-
* Tile width in pixels.
|
|
7760
|
-
*/
|
|
7761
|
-
tile_width?: number
|
|
7762
|
-
/**
|
|
7763
|
-
* Tile height in pixels.
|
|
7764
|
-
*/
|
|
7765
|
-
tile_height?: number
|
|
7766
|
-
/**
|
|
7767
|
-
* Enable lossless compression.
|
|
7768
|
-
*/
|
|
7769
|
-
lossless?: boolean
|
|
7770
|
-
/**
|
|
7771
|
-
* Q factor.
|
|
7772
|
-
*/
|
|
7773
|
-
Q?: number
|
|
7774
|
-
/**
|
|
7775
|
-
* Select chroma subsample operation mode.
|
|
7776
|
-
*/
|
|
7777
|
-
subsample_mode?: ForeignSubsample | Enum
|
|
7778
|
-
/**
|
|
7779
|
-
* Which metadata to retain.
|
|
7780
|
-
*/
|
|
7781
|
-
keep?: ForeignKeep | Flag
|
|
7782
|
-
/**
|
|
7783
|
-
* Background value.
|
|
7784
|
-
*/
|
|
7785
|
-
background?: ArrayConstant
|
|
7786
|
-
/**
|
|
7787
|
-
* Set page height for multipage save.
|
|
7788
|
-
*/
|
|
7789
|
-
page_height?: number
|
|
7790
|
-
/**
|
|
7791
|
-
* Filename of icc profile to embed.
|
|
7792
|
-
*/
|
|
7793
|
-
profile?: string
|
|
7794
|
-
}): void;
|
|
7795
|
-
|
|
7796
6557
|
/**
|
|
7797
6558
|
* Save image to jpeg file.
|
|
7798
6559
|
* @param filename Filename to save to.
|
|
@@ -8214,94 +6975,6 @@ declare module Vips {
|
|
|
8214
6975
|
persistent?: boolean
|
|
8215
6976
|
}): Image;
|
|
8216
6977
|
|
|
8217
|
-
/**
|
|
8218
|
-
* Save file with imagemagick.
|
|
8219
|
-
* @param filename Filename to save to.
|
|
8220
|
-
* @param options Optional options.
|
|
8221
|
-
*/
|
|
8222
|
-
magicksave(filename: string, options?: {
|
|
8223
|
-
/**
|
|
8224
|
-
* Format to save in.
|
|
8225
|
-
*/
|
|
8226
|
-
format?: string
|
|
8227
|
-
/**
|
|
8228
|
-
* Quality to use.
|
|
8229
|
-
*/
|
|
8230
|
-
quality?: number
|
|
8231
|
-
/**
|
|
8232
|
-
* Apply gif frames optimization.
|
|
8233
|
-
*/
|
|
8234
|
-
optimize_gif_frames?: boolean
|
|
8235
|
-
/**
|
|
8236
|
-
* Apply gif transparency optimization.
|
|
8237
|
-
*/
|
|
8238
|
-
optimize_gif_transparency?: boolean
|
|
8239
|
-
/**
|
|
8240
|
-
* Number of bits per pixel.
|
|
8241
|
-
*/
|
|
8242
|
-
bitdepth?: number
|
|
8243
|
-
/**
|
|
8244
|
-
* Which metadata to retain.
|
|
8245
|
-
*/
|
|
8246
|
-
keep?: ForeignKeep | Flag
|
|
8247
|
-
/**
|
|
8248
|
-
* Background value.
|
|
8249
|
-
*/
|
|
8250
|
-
background?: ArrayConstant
|
|
8251
|
-
/**
|
|
8252
|
-
* Set page height for multipage save.
|
|
8253
|
-
*/
|
|
8254
|
-
page_height?: number
|
|
8255
|
-
/**
|
|
8256
|
-
* Filename of icc profile to embed.
|
|
8257
|
-
*/
|
|
8258
|
-
profile?: string
|
|
8259
|
-
}): void;
|
|
8260
|
-
|
|
8261
|
-
/**
|
|
8262
|
-
* Save image to magick buffer.
|
|
8263
|
-
* @param options Optional options.
|
|
8264
|
-
* @return Buffer to save to.
|
|
8265
|
-
*/
|
|
8266
|
-
magicksaveBuffer(options?: {
|
|
8267
|
-
/**
|
|
8268
|
-
* Format to save in.
|
|
8269
|
-
*/
|
|
8270
|
-
format?: string
|
|
8271
|
-
/**
|
|
8272
|
-
* Quality to use.
|
|
8273
|
-
*/
|
|
8274
|
-
quality?: number
|
|
8275
|
-
/**
|
|
8276
|
-
* Apply gif frames optimization.
|
|
8277
|
-
*/
|
|
8278
|
-
optimize_gif_frames?: boolean
|
|
8279
|
-
/**
|
|
8280
|
-
* Apply gif transparency optimization.
|
|
8281
|
-
*/
|
|
8282
|
-
optimize_gif_transparency?: boolean
|
|
8283
|
-
/**
|
|
8284
|
-
* Number of bits per pixel.
|
|
8285
|
-
*/
|
|
8286
|
-
bitdepth?: number
|
|
8287
|
-
/**
|
|
8288
|
-
* Which metadata to retain.
|
|
8289
|
-
*/
|
|
8290
|
-
keep?: ForeignKeep | Flag
|
|
8291
|
-
/**
|
|
8292
|
-
* Background value.
|
|
8293
|
-
*/
|
|
8294
|
-
background?: ArrayConstant
|
|
8295
|
-
/**
|
|
8296
|
-
* Set page height for multipage save.
|
|
8297
|
-
*/
|
|
8298
|
-
page_height?: number
|
|
8299
|
-
/**
|
|
8300
|
-
* Filename of icc profile to embed.
|
|
8301
|
-
*/
|
|
8302
|
-
profile?: string
|
|
8303
|
-
}): Uint8Array;
|
|
8304
|
-
|
|
8305
6978
|
/**
|
|
8306
6979
|
* Resample with a map image.
|
|
8307
6980
|
* @param index Index pixels with this.
|
|
@@ -8389,11 +7062,18 @@ declare module Vips {
|
|
|
8389
7062
|
math2(right: Image | ArrayConstant, math2: OperationMath2 | Enum): Image;
|
|
8390
7063
|
|
|
8391
7064
|
/**
|
|
8392
|
-
* Invert
|
|
7065
|
+
* Invert a matrix.
|
|
8393
7066
|
* @return Output matrix.
|
|
8394
7067
|
*/
|
|
8395
7068
|
matrixinvert(): Image;
|
|
8396
7069
|
|
|
7070
|
+
/**
|
|
7071
|
+
* Multiply two matrices.
|
|
7072
|
+
* @param right Second matrix to multiply.
|
|
7073
|
+
* @return Output matrix.
|
|
7074
|
+
*/
|
|
7075
|
+
matrixmultiply(right: Image | ArrayConstant): Image;
|
|
7076
|
+
|
|
8397
7077
|
/**
|
|
8398
7078
|
* Print matrix.
|
|
8399
7079
|
* @param options Optional options.
|
|
@@ -8704,30 +7384,6 @@ declare module Vips {
|
|
|
8704
7384
|
*/
|
|
8705
7385
|
multiply(right: Image | ArrayConstant): Image;
|
|
8706
7386
|
|
|
8707
|
-
/**
|
|
8708
|
-
* Save image to nifti file.
|
|
8709
|
-
* @param filename Filename to save to.
|
|
8710
|
-
* @param options Optional options.
|
|
8711
|
-
*/
|
|
8712
|
-
niftisave(filename: string, options?: {
|
|
8713
|
-
/**
|
|
8714
|
-
* Which metadata to retain.
|
|
8715
|
-
*/
|
|
8716
|
-
keep?: ForeignKeep | Flag
|
|
8717
|
-
/**
|
|
8718
|
-
* Background value.
|
|
8719
|
-
*/
|
|
8720
|
-
background?: ArrayConstant
|
|
8721
|
-
/**
|
|
8722
|
-
* Set page height for multipage save.
|
|
8723
|
-
*/
|
|
8724
|
-
page_height?: number
|
|
8725
|
-
/**
|
|
8726
|
-
* Filename of icc profile to embed.
|
|
8727
|
-
*/
|
|
8728
|
-
profile?: string
|
|
8729
|
-
}): void;
|
|
8730
|
-
|
|
8731
7387
|
/**
|
|
8732
7388
|
* Find threshold for percent of pixels.
|
|
8733
7389
|
* @param percent Percent of pixels.
|
|
@@ -9246,6 +7902,14 @@ declare module Vips {
|
|
|
9246
7902
|
*/
|
|
9247
7903
|
remainder(right: Image | ArrayConstant): Image;
|
|
9248
7904
|
|
|
7905
|
+
/**
|
|
7906
|
+
* Rebuild an mosaiced image.
|
|
7907
|
+
* @param old_str Search for this string.
|
|
7908
|
+
* @param new_str And swap for this string.
|
|
7909
|
+
* @return Output image.
|
|
7910
|
+
*/
|
|
7911
|
+
remosaic(old_str: string, new_str: string): Image;
|
|
7912
|
+
|
|
9249
7913
|
/**
|
|
9250
7914
|
* Replicate an image.
|
|
9251
7915
|
* @param across Repeat this many times horizontally.
|
|
@@ -9365,7 +8029,7 @@ declare module Vips {
|
|
|
9365
8029
|
scRGB2XYZ(): Image;
|
|
9366
8030
|
|
|
9367
8031
|
/**
|
|
9368
|
-
* Convert
|
|
8032
|
+
* Convert scrgb to srgb.
|
|
9369
8033
|
* @param options Optional options.
|
|
9370
8034
|
* @return Output image.
|
|
9371
8035
|
*/
|
|
@@ -9654,13 +8318,13 @@ declare module Vips {
|
|
|
9654
8318
|
*/
|
|
9655
8319
|
linear?: boolean
|
|
9656
8320
|
/**
|
|
9657
|
-
* Fallback
|
|
8321
|
+
* Fallback input profile.
|
|
9658
8322
|
*/
|
|
9659
|
-
|
|
8323
|
+
input_profile?: string
|
|
9660
8324
|
/**
|
|
9661
|
-
* Fallback
|
|
8325
|
+
* Fallback output profile.
|
|
9662
8326
|
*/
|
|
9663
|
-
|
|
8327
|
+
output_profile?: string
|
|
9664
8328
|
/**
|
|
9665
8329
|
* Rendering intent.
|
|
9666
8330
|
*/
|