wasm-vips 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -4
- package/lib/vips-es6.js +238 -236
- package/lib/vips-heif.wasm +0 -0
- package/lib/vips-jxl.wasm +0 -0
- package/lib/vips-node.js +241 -236
- package/lib/vips-node.mjs +242 -237
- package/lib/vips-resvg.wasm +0 -0
- package/lib/vips.d.ts +247 -242
- package/lib/vips.js +238 -236
- package/lib/vips.wasm +0 -0
- package/package.json +4 -4
- package/versions.json +7 -7
- package/lib/vips-es6.worker.mjs +0 -1
- package/lib/vips-node.worker.js +0 -1
- package/lib/vips-node.worker.mjs +0 -1
- package/lib/vips.worker.js +0 -1
package/lib/vips.d.ts
CHANGED
|
@@ -506,6 +506,11 @@ declare module Vips {
|
|
|
506
506
|
*/
|
|
507
507
|
readonly filename: string;
|
|
508
508
|
|
|
509
|
+
/**
|
|
510
|
+
* Page height in pixels.
|
|
511
|
+
*/
|
|
512
|
+
readonly pageHeight: number;
|
|
513
|
+
|
|
509
514
|
/**
|
|
510
515
|
* Block evaluation on this image.
|
|
511
516
|
*/
|
|
@@ -1490,43 +1495,43 @@ declare module Vips {
|
|
|
1490
1495
|
/**
|
|
1491
1496
|
* Unsigned char format
|
|
1492
1497
|
*/
|
|
1493
|
-
uchar = 'uchar'
|
|
1498
|
+
uchar = 0, // 'uchar'
|
|
1494
1499
|
/**
|
|
1495
1500
|
* Char format
|
|
1496
1501
|
*/
|
|
1497
|
-
char = 'char'
|
|
1502
|
+
char = 1, // 'char'
|
|
1498
1503
|
/**
|
|
1499
1504
|
* Unsigned short format
|
|
1500
1505
|
*/
|
|
1501
|
-
ushort = 'ushort'
|
|
1506
|
+
ushort = 2, // 'ushort'
|
|
1502
1507
|
/**
|
|
1503
1508
|
* Short format
|
|
1504
1509
|
*/
|
|
1505
|
-
short = 'short'
|
|
1510
|
+
short = 3, // 'short'
|
|
1506
1511
|
/**
|
|
1507
1512
|
* Unsigned int format
|
|
1508
1513
|
*/
|
|
1509
|
-
uint = 'uint'
|
|
1514
|
+
uint = 4, // 'uint'
|
|
1510
1515
|
/**
|
|
1511
1516
|
* Int format
|
|
1512
1517
|
*/
|
|
1513
|
-
int = 'int'
|
|
1518
|
+
int = 5, // 'int'
|
|
1514
1519
|
/**
|
|
1515
1520
|
* Float format
|
|
1516
1521
|
*/
|
|
1517
|
-
float = 'float'
|
|
1522
|
+
float = 6, // 'float'
|
|
1518
1523
|
/**
|
|
1519
1524
|
* Complex (two floats) format
|
|
1520
1525
|
*/
|
|
1521
|
-
complex = 'complex'
|
|
1526
|
+
complex = 7, // 'complex'
|
|
1522
1527
|
/**
|
|
1523
1528
|
* Double float format
|
|
1524
1529
|
*/
|
|
1525
|
-
double = 'double'
|
|
1530
|
+
double = 8, // 'double'
|
|
1526
1531
|
/**
|
|
1527
1532
|
* Double complex (two double) format
|
|
1528
1533
|
*/
|
|
1529
|
-
dpcomplex = 'dpcomplex'
|
|
1534
|
+
dpcomplex = 9 // 'dpcomplex'
|
|
1530
1535
|
}
|
|
1531
1536
|
|
|
1532
1537
|
/**
|
|
@@ -1543,103 +1548,103 @@ declare module Vips {
|
|
|
1543
1548
|
/**
|
|
1544
1549
|
* Where the second object is drawn, the first is removed
|
|
1545
1550
|
*/
|
|
1546
|
-
clear = 'clear'
|
|
1551
|
+
clear = 0, // 'clear'
|
|
1547
1552
|
/**
|
|
1548
1553
|
* The second object is drawn as if nothing were below
|
|
1549
1554
|
*/
|
|
1550
|
-
source = 'source'
|
|
1555
|
+
source = 1, // 'source'
|
|
1551
1556
|
/**
|
|
1552
1557
|
* The image shows what you would expect if you held two semi-transparent slides on top of each other
|
|
1553
1558
|
*/
|
|
1554
|
-
over = 'over'
|
|
1559
|
+
over = 2, // 'over'
|
|
1555
1560
|
/**
|
|
1556
1561
|
* The first object is removed completely, the second is only drawn where the first was
|
|
1557
1562
|
*/
|
|
1558
|
-
in = 'in'
|
|
1563
|
+
in = 3, // 'in'
|
|
1559
1564
|
/**
|
|
1560
1565
|
* The second is drawn only where the first isn't
|
|
1561
1566
|
*/
|
|
1562
|
-
out = 'out'
|
|
1567
|
+
out = 4, // 'out'
|
|
1563
1568
|
/**
|
|
1564
1569
|
* This leaves the first object mostly intact, but mixes both objects in the overlapping area
|
|
1565
1570
|
*/
|
|
1566
|
-
atop = 'atop'
|
|
1571
|
+
atop = 5, // 'atop'
|
|
1567
1572
|
/**
|
|
1568
1573
|
* Leaves the first object untouched, the second is discarded completely
|
|
1569
1574
|
*/
|
|
1570
|
-
dest = 'dest'
|
|
1575
|
+
dest = 6, // 'dest'
|
|
1571
1576
|
/**
|
|
1572
1577
|
* Like OVER, but swaps the arguments
|
|
1573
1578
|
*/
|
|
1574
|
-
dest_over = 'dest-over'
|
|
1579
|
+
dest_over = 7, // 'dest-over'
|
|
1575
1580
|
/**
|
|
1576
1581
|
* Like IN, but swaps the arguments
|
|
1577
1582
|
*/
|
|
1578
|
-
dest_in = 'dest-in'
|
|
1583
|
+
dest_in = 8, // 'dest-in'
|
|
1579
1584
|
/**
|
|
1580
1585
|
* Like OUT, but swaps the arguments
|
|
1581
1586
|
*/
|
|
1582
|
-
dest_out = 'dest-out'
|
|
1587
|
+
dest_out = 9, // 'dest-out'
|
|
1583
1588
|
/**
|
|
1584
1589
|
* Like ATOP, but swaps the arguments
|
|
1585
1590
|
*/
|
|
1586
|
-
dest_atop = 'dest-atop'
|
|
1591
|
+
dest_atop = 10, // 'dest-atop'
|
|
1587
1592
|
/**
|
|
1588
1593
|
* Something like a difference operator
|
|
1589
1594
|
*/
|
|
1590
|
-
xor = 'xor'
|
|
1595
|
+
xor = 11, // 'xor'
|
|
1591
1596
|
/**
|
|
1592
1597
|
* A bit like adding the two images
|
|
1593
1598
|
*/
|
|
1594
|
-
add = 'add'
|
|
1599
|
+
add = 12, // 'add'
|
|
1595
1600
|
/**
|
|
1596
1601
|
* A bit like the darker of the two
|
|
1597
1602
|
*/
|
|
1598
|
-
saturate = 'saturate'
|
|
1603
|
+
saturate = 13, // 'saturate'
|
|
1599
1604
|
/**
|
|
1600
1605
|
* At least as dark as the darker of the two inputs
|
|
1601
1606
|
*/
|
|
1602
|
-
multiply = 'multiply'
|
|
1607
|
+
multiply = 14, // 'multiply'
|
|
1603
1608
|
/**
|
|
1604
1609
|
* At least as light as the lighter of the inputs
|
|
1605
1610
|
*/
|
|
1606
|
-
screen = 'screen'
|
|
1611
|
+
screen = 15, // 'screen'
|
|
1607
1612
|
/**
|
|
1608
1613
|
* Multiplies or screens colors, depending on the lightness
|
|
1609
1614
|
*/
|
|
1610
|
-
overlay = 'overlay'
|
|
1615
|
+
overlay = 16, // 'overlay'
|
|
1611
1616
|
/**
|
|
1612
1617
|
* The darker of each component
|
|
1613
1618
|
*/
|
|
1614
|
-
darken = 'darken'
|
|
1619
|
+
darken = 17, // 'darken'
|
|
1615
1620
|
/**
|
|
1616
1621
|
* The lighter of each component
|
|
1617
1622
|
*/
|
|
1618
|
-
lighten = 'lighten'
|
|
1623
|
+
lighten = 18, // 'lighten'
|
|
1619
1624
|
/**
|
|
1620
1625
|
* Brighten first by a factor second
|
|
1621
1626
|
*/
|
|
1622
|
-
colour_dodge = 'colour-dodge'
|
|
1627
|
+
colour_dodge = 19, // 'colour-dodge'
|
|
1623
1628
|
/**
|
|
1624
1629
|
* Darken first by a factor of second
|
|
1625
1630
|
*/
|
|
1626
|
-
colour_burn = 'colour-burn'
|
|
1631
|
+
colour_burn = 20, // 'colour-burn'
|
|
1627
1632
|
/**
|
|
1628
1633
|
* Multiply or screen, depending on lightness
|
|
1629
1634
|
*/
|
|
1630
|
-
hard_light = 'hard-light'
|
|
1635
|
+
hard_light = 21, // 'hard-light'
|
|
1631
1636
|
/**
|
|
1632
1637
|
* Darken or lighten, depending on lightness
|
|
1633
1638
|
*/
|
|
1634
|
-
soft_light = 'soft-light'
|
|
1639
|
+
soft_light = 22, // 'soft-light'
|
|
1635
1640
|
/**
|
|
1636
1641
|
* Difference of the two
|
|
1637
1642
|
*/
|
|
1638
|
-
difference = 'difference'
|
|
1643
|
+
difference = 23, // 'difference'
|
|
1639
1644
|
/**
|
|
1640
1645
|
* Somewhat like DIFFERENCE, but lower-contrast
|
|
1641
1646
|
*/
|
|
1642
|
-
exclusion = 'exclusion'
|
|
1647
|
+
exclusion = 24 // 'exclusion'
|
|
1643
1648
|
}
|
|
1644
1649
|
|
|
1645
1650
|
/**
|
|
@@ -1656,15 +1661,15 @@ declare module Vips {
|
|
|
1656
1661
|
/**
|
|
1657
1662
|
* Pixels are not coded
|
|
1658
1663
|
*/
|
|
1659
|
-
none = 'none'
|
|
1664
|
+
none = 0, // 'none'
|
|
1660
1665
|
/**
|
|
1661
1666
|
* Pixels encode 3 float CIELAB values as 4 uchar
|
|
1662
1667
|
*/
|
|
1663
|
-
labq = 'labq'
|
|
1668
|
+
labq = 2, // 'labq'
|
|
1664
1669
|
/**
|
|
1665
1670
|
* Pixels encode 3 float RGB as 4 uchar (Radiance coding)
|
|
1666
1671
|
*/
|
|
1667
|
-
rad = 'rad'
|
|
1672
|
+
rad = 6 // 'rad'
|
|
1668
1673
|
}
|
|
1669
1674
|
|
|
1670
1675
|
/**
|
|
@@ -1682,79 +1687,79 @@ declare module Vips {
|
|
|
1682
1687
|
/**
|
|
1683
1688
|
* Generic many-band image
|
|
1684
1689
|
*/
|
|
1685
|
-
multiband = 'multiband'
|
|
1690
|
+
multiband = 0, // 'multiband'
|
|
1686
1691
|
/**
|
|
1687
1692
|
* Some kind of single-band image
|
|
1688
1693
|
*/
|
|
1689
|
-
b_w = 'b-w'
|
|
1694
|
+
b_w = 1, // 'b-w'
|
|
1690
1695
|
/**
|
|
1691
1696
|
* A 1D image, eg. histogram or lookup table
|
|
1692
1697
|
*/
|
|
1693
|
-
histogram = 'histogram'
|
|
1698
|
+
histogram = 10, // 'histogram'
|
|
1694
1699
|
/**
|
|
1695
1700
|
* The first three bands are CIE XYZ
|
|
1696
1701
|
*/
|
|
1697
|
-
xyz = 'xyz'
|
|
1702
|
+
xyz = 12, // 'xyz'
|
|
1698
1703
|
/**
|
|
1699
1704
|
* Pixels are in CIE Lab space
|
|
1700
1705
|
*/
|
|
1701
|
-
lab = 'lab'
|
|
1706
|
+
lab = 13, // 'lab'
|
|
1702
1707
|
/**
|
|
1703
1708
|
* The first four bands are in CMYK space
|
|
1704
1709
|
*/
|
|
1705
|
-
cmyk = 'cmyk'
|
|
1710
|
+
cmyk = 15, // 'cmyk'
|
|
1706
1711
|
/**
|
|
1707
1712
|
* Implies #VIPS_CODING_LABQ
|
|
1708
1713
|
*/
|
|
1709
|
-
labq = 'labq'
|
|
1714
|
+
labq = 16, // 'labq'
|
|
1710
1715
|
/**
|
|
1711
1716
|
* Generic RGB space
|
|
1712
1717
|
*/
|
|
1713
|
-
rgb = 'rgb'
|
|
1718
|
+
rgb = 17, // 'rgb'
|
|
1714
1719
|
/**
|
|
1715
1720
|
* A uniform colourspace based on CMC(1:1)
|
|
1716
1721
|
*/
|
|
1717
|
-
cmc = 'cmc'
|
|
1722
|
+
cmc = 18, // 'cmc'
|
|
1718
1723
|
/**
|
|
1719
1724
|
* Pixels are in CIE LCh space
|
|
1720
1725
|
*/
|
|
1721
|
-
lch = 'lch'
|
|
1726
|
+
lch = 19, // 'lch'
|
|
1722
1727
|
/**
|
|
1723
1728
|
* CIE LAB coded as three signed 16-bit values
|
|
1724
1729
|
*/
|
|
1725
|
-
labs = 'labs'
|
|
1730
|
+
labs = 21, // 'labs'
|
|
1726
1731
|
/**
|
|
1727
1732
|
* Pixels are sRGB
|
|
1728
1733
|
*/
|
|
1729
|
-
srgb = 'srgb'
|
|
1734
|
+
srgb = 22, // 'srgb'
|
|
1730
1735
|
/**
|
|
1731
1736
|
* Pixels are CIE Yxy
|
|
1732
1737
|
*/
|
|
1733
|
-
yxy = 'yxy'
|
|
1738
|
+
yxy = 23, // 'yxy'
|
|
1734
1739
|
/**
|
|
1735
1740
|
* Image is in fourier space
|
|
1736
1741
|
*/
|
|
1737
|
-
fourier = 'fourier'
|
|
1742
|
+
fourier = 24, // 'fourier'
|
|
1738
1743
|
/**
|
|
1739
1744
|
* Generic 16-bit RGB
|
|
1740
1745
|
*/
|
|
1741
|
-
rgb16 = 'rgb16'
|
|
1746
|
+
rgb16 = 25, // 'rgb16'
|
|
1742
1747
|
/**
|
|
1743
1748
|
* Generic 16-bit mono
|
|
1744
1749
|
*/
|
|
1745
|
-
grey16 = 'grey16'
|
|
1750
|
+
grey16 = 26, // 'grey16'
|
|
1746
1751
|
/**
|
|
1747
1752
|
* A matrix
|
|
1748
1753
|
*/
|
|
1749
|
-
matrix = 'matrix'
|
|
1754
|
+
matrix = 27, // 'matrix'
|
|
1750
1755
|
/**
|
|
1751
1756
|
* Pixels are scRGB
|
|
1752
1757
|
*/
|
|
1753
|
-
scrgb = 'scrgb'
|
|
1758
|
+
scrgb = 28, // 'scrgb'
|
|
1754
1759
|
/**
|
|
1755
1760
|
* Pixels are HSV
|
|
1756
1761
|
*/
|
|
1757
|
-
hsv = 'hsv'
|
|
1762
|
+
hsv = 29 // 'hsv'
|
|
1758
1763
|
}
|
|
1759
1764
|
|
|
1760
1765
|
/**
|
|
@@ -1791,15 +1796,15 @@ declare module Vips {
|
|
|
1791
1796
|
/**
|
|
1792
1797
|
* Demand in small (typically 128x128 pixel) tiles
|
|
1793
1798
|
*/
|
|
1794
|
-
smalltile = 'smalltile'
|
|
1799
|
+
smalltile = 0, // 'smalltile'
|
|
1795
1800
|
/**
|
|
1796
1801
|
* Demand in fat (typically 16 pixel high) strips
|
|
1797
1802
|
*/
|
|
1798
|
-
fatstrip = 'fatstrip'
|
|
1803
|
+
fatstrip = 1, // 'fatstrip'
|
|
1799
1804
|
/**
|
|
1800
1805
|
* Demand in thin (typically 1 pixel high) strips
|
|
1801
1806
|
*/
|
|
1802
|
-
thinstrip = 'thinstrip'
|
|
1807
|
+
thinstrip = 2 // 'thinstrip'
|
|
1803
1808
|
}
|
|
1804
1809
|
|
|
1805
1810
|
/**
|
|
@@ -1809,27 +1814,27 @@ declare module Vips {
|
|
|
1809
1814
|
/**
|
|
1810
1815
|
* ==
|
|
1811
1816
|
*/
|
|
1812
|
-
equal = 'equal'
|
|
1817
|
+
equal = 0, // 'equal'
|
|
1813
1818
|
/**
|
|
1814
1819
|
* !=
|
|
1815
1820
|
*/
|
|
1816
|
-
noteq = 'noteq'
|
|
1821
|
+
noteq = 1, // 'noteq'
|
|
1817
1822
|
/**
|
|
1818
1823
|
* <
|
|
1819
1824
|
*/
|
|
1820
|
-
less = 'less'
|
|
1825
|
+
less = 2, // 'less'
|
|
1821
1826
|
/**
|
|
1822
1827
|
* <=
|
|
1823
1828
|
*/
|
|
1824
|
-
lesseq = 'lesseq'
|
|
1829
|
+
lesseq = 3, // 'lesseq'
|
|
1825
1830
|
/**
|
|
1826
1831
|
* >
|
|
1827
1832
|
*/
|
|
1828
|
-
more = 'more'
|
|
1833
|
+
more = 4, // 'more'
|
|
1829
1834
|
/**
|
|
1830
1835
|
* >=
|
|
1831
1836
|
*/
|
|
1832
|
-
moreeq = 'moreeq'
|
|
1837
|
+
moreeq = 5 // 'moreeq'
|
|
1833
1838
|
}
|
|
1834
1839
|
|
|
1835
1840
|
/**
|
|
@@ -1839,23 +1844,23 @@ declare module Vips {
|
|
|
1839
1844
|
/**
|
|
1840
1845
|
* &
|
|
1841
1846
|
*/
|
|
1842
|
-
and = 'and'
|
|
1847
|
+
and = 0, // 'and'
|
|
1843
1848
|
/**
|
|
1844
1849
|
* |
|
|
1845
1850
|
*/
|
|
1846
|
-
or = 'or'
|
|
1851
|
+
or = 1, // 'or'
|
|
1847
1852
|
/**
|
|
1848
1853
|
* ^
|
|
1849
1854
|
*/
|
|
1850
|
-
eor = 'eor'
|
|
1855
|
+
eor = 2, // 'eor'
|
|
1851
1856
|
/**
|
|
1852
1857
|
* >>
|
|
1853
1858
|
*/
|
|
1854
|
-
lshift = 'lshift'
|
|
1859
|
+
lshift = 3, // 'lshift'
|
|
1855
1860
|
/**
|
|
1856
1861
|
* <<
|
|
1857
1862
|
*/
|
|
1858
|
-
rshift = 'rshift'
|
|
1863
|
+
rshift = 4 // 'rshift'
|
|
1859
1864
|
}
|
|
1860
1865
|
|
|
1861
1866
|
/**
|
|
@@ -1865,15 +1870,15 @@ declare module Vips {
|
|
|
1865
1870
|
/**
|
|
1866
1871
|
* Pow(left, right)
|
|
1867
1872
|
*/
|
|
1868
|
-
pow = 'pow'
|
|
1873
|
+
pow = 0, // 'pow'
|
|
1869
1874
|
/**
|
|
1870
1875
|
* Pow(right, left)
|
|
1871
1876
|
*/
|
|
1872
|
-
wop = 'wop'
|
|
1877
|
+
wop = 1, // 'wop'
|
|
1873
1878
|
/**
|
|
1874
1879
|
* Atan2(left, right)
|
|
1875
1880
|
*/
|
|
1876
|
-
atan2 = 'atan2'
|
|
1881
|
+
atan2 = 2 // 'atan2'
|
|
1877
1882
|
}
|
|
1878
1883
|
|
|
1879
1884
|
/**
|
|
@@ -1883,7 +1888,7 @@ declare module Vips {
|
|
|
1883
1888
|
/**
|
|
1884
1889
|
* Convert to polar coordinates
|
|
1885
1890
|
*/
|
|
1886
|
-
cross_phase = 'cross-phase'
|
|
1891
|
+
cross_phase = 0 // 'cross-phase'
|
|
1887
1892
|
}
|
|
1888
1893
|
|
|
1889
1894
|
/**
|
|
@@ -1893,67 +1898,67 @@ declare module Vips {
|
|
|
1893
1898
|
/**
|
|
1894
1899
|
* Sin(), angles in degrees
|
|
1895
1900
|
*/
|
|
1896
|
-
sin = 'sin'
|
|
1901
|
+
sin = 0, // 'sin'
|
|
1897
1902
|
/**
|
|
1898
1903
|
* Cos(), angles in degrees
|
|
1899
1904
|
*/
|
|
1900
|
-
cos = 'cos'
|
|
1905
|
+
cos = 1, // 'cos'
|
|
1901
1906
|
/**
|
|
1902
1907
|
* Tan(), angles in degrees
|
|
1903
1908
|
*/
|
|
1904
|
-
tan = 'tan'
|
|
1909
|
+
tan = 2, // 'tan'
|
|
1905
1910
|
/**
|
|
1906
1911
|
* Asin(), angles in degrees
|
|
1907
1912
|
*/
|
|
1908
|
-
asin = 'asin'
|
|
1913
|
+
asin = 3, // 'asin'
|
|
1909
1914
|
/**
|
|
1910
1915
|
* Acos(), angles in degrees
|
|
1911
1916
|
*/
|
|
1912
|
-
acos = 'acos'
|
|
1917
|
+
acos = 4, // 'acos'
|
|
1913
1918
|
/**
|
|
1914
1919
|
* Atan(), angles in degrees
|
|
1915
1920
|
*/
|
|
1916
|
-
atan = 'atan'
|
|
1921
|
+
atan = 5, // 'atan'
|
|
1917
1922
|
/**
|
|
1918
1923
|
* Log base e
|
|
1919
1924
|
*/
|
|
1920
|
-
log = 'log'
|
|
1925
|
+
log = 6, // 'log'
|
|
1921
1926
|
/**
|
|
1922
1927
|
* Log base 10
|
|
1923
1928
|
*/
|
|
1924
|
-
log10 = 'log10'
|
|
1929
|
+
log10 = 7, // 'log10'
|
|
1925
1930
|
/**
|
|
1926
1931
|
* E to the something
|
|
1927
1932
|
*/
|
|
1928
|
-
exp = 'exp'
|
|
1933
|
+
exp = 8, // 'exp'
|
|
1929
1934
|
/**
|
|
1930
1935
|
* 10 to the something
|
|
1931
1936
|
*/
|
|
1932
|
-
exp10 = 'exp10'
|
|
1937
|
+
exp10 = 9, // 'exp10'
|
|
1933
1938
|
/**
|
|
1934
1939
|
* Sinh(), angles in radians
|
|
1935
1940
|
*/
|
|
1936
|
-
sinh = 'sinh'
|
|
1941
|
+
sinh = 10, // 'sinh'
|
|
1937
1942
|
/**
|
|
1938
1943
|
* Cosh(), angles in radians
|
|
1939
1944
|
*/
|
|
1940
|
-
cosh = 'cosh'
|
|
1945
|
+
cosh = 11, // 'cosh'
|
|
1941
1946
|
/**
|
|
1942
1947
|
* Tanh(), angles in radians
|
|
1943
1948
|
*/
|
|
1944
|
-
tanh = 'tanh'
|
|
1949
|
+
tanh = 12, // 'tanh'
|
|
1945
1950
|
/**
|
|
1946
1951
|
* Asinh(), angles in radians
|
|
1947
1952
|
*/
|
|
1948
|
-
asinh = 'asinh'
|
|
1953
|
+
asinh = 13, // 'asinh'
|
|
1949
1954
|
/**
|
|
1950
1955
|
* Acosh(), angles in radians
|
|
1951
1956
|
*/
|
|
1952
|
-
acosh = 'acosh'
|
|
1957
|
+
acosh = 14, // 'acosh'
|
|
1953
1958
|
/**
|
|
1954
1959
|
* Atanh(), angles in radians
|
|
1955
1960
|
*/
|
|
1956
|
-
atanh = 'atanh'
|
|
1961
|
+
atanh = 15 // 'atanh'
|
|
1957
1962
|
}
|
|
1958
1963
|
|
|
1959
1964
|
/**
|
|
@@ -1963,15 +1968,15 @@ declare module Vips {
|
|
|
1963
1968
|
/**
|
|
1964
1969
|
* Round to nearest
|
|
1965
1970
|
*/
|
|
1966
|
-
rint = 'rint'
|
|
1971
|
+
rint = 0, // 'rint'
|
|
1967
1972
|
/**
|
|
1968
1973
|
* The smallest integral value not less than
|
|
1969
1974
|
*/
|
|
1970
|
-
ceil = 'ceil'
|
|
1975
|
+
ceil = 1, // 'ceil'
|
|
1971
1976
|
/**
|
|
1972
1977
|
* Largest integral value not greater than
|
|
1973
1978
|
*/
|
|
1974
|
-
floor = 'floor'
|
|
1979
|
+
floor = 2 // 'floor'
|
|
1975
1980
|
}
|
|
1976
1981
|
|
|
1977
1982
|
/**
|
|
@@ -1981,15 +1986,15 @@ declare module Vips {
|
|
|
1981
1986
|
/**
|
|
1982
1987
|
* Convert to polar coordinates
|
|
1983
1988
|
*/
|
|
1984
|
-
polar = 'polar'
|
|
1989
|
+
polar = 0, // 'polar'
|
|
1985
1990
|
/**
|
|
1986
1991
|
* Convert to rectangular coordinates
|
|
1987
1992
|
*/
|
|
1988
|
-
rect = 'rect'
|
|
1993
|
+
rect = 1, // 'rect'
|
|
1989
1994
|
/**
|
|
1990
1995
|
* Complex conjugate
|
|
1991
1996
|
*/
|
|
1992
|
-
conj = 'conj'
|
|
1997
|
+
conj = 2 // 'conj'
|
|
1993
1998
|
}
|
|
1994
1999
|
|
|
1995
2000
|
/**
|
|
@@ -1999,11 +2004,11 @@ declare module Vips {
|
|
|
1999
2004
|
/**
|
|
2000
2005
|
* Get real component
|
|
2001
2006
|
*/
|
|
2002
|
-
real = 'real'
|
|
2007
|
+
real = 0, // 'real'
|
|
2003
2008
|
/**
|
|
2004
2009
|
* Get imaginary component
|
|
2005
2010
|
*/
|
|
2006
|
-
imag = 'imag'
|
|
2011
|
+
imag = 1 // 'imag'
|
|
2007
2012
|
}
|
|
2008
2013
|
|
|
2009
2014
|
/**
|
|
@@ -2013,15 +2018,15 @@ declare module Vips {
|
|
|
2013
2018
|
/**
|
|
2014
2019
|
* Take the maximum of the possible values
|
|
2015
2020
|
*/
|
|
2016
|
-
max = 'max'
|
|
2021
|
+
max = 0, // 'max'
|
|
2017
2022
|
/**
|
|
2018
2023
|
* Sum all the values
|
|
2019
2024
|
*/
|
|
2020
|
-
sum = 'sum'
|
|
2025
|
+
sum = 1, // 'sum'
|
|
2021
2026
|
/**
|
|
2022
2027
|
* Take the minimum value
|
|
2023
2028
|
*/
|
|
2024
|
-
min = 'min'
|
|
2029
|
+
min = 2 // 'min'
|
|
2025
2030
|
}
|
|
2026
2031
|
|
|
2027
2032
|
/**
|
|
@@ -2037,12 +2042,12 @@ declare module Vips {
|
|
|
2037
2042
|
/**
|
|
2038
2043
|
* Can read anywhere
|
|
2039
2044
|
*/
|
|
2040
|
-
random = 'random'
|
|
2045
|
+
random = 0, // 'random'
|
|
2041
2046
|
/**
|
|
2042
2047
|
* Top-to-bottom reading only, but with a small buffer
|
|
2043
2048
|
*/
|
|
2044
|
-
sequential = 'sequential'
|
|
2045
|
-
sequential_unbuffered = 'sequential-unbuffered'
|
|
2049
|
+
sequential = 1, // 'sequential'
|
|
2050
|
+
sequential_unbuffered = 2 // 'sequential-unbuffered'
|
|
2046
2051
|
}
|
|
2047
2052
|
|
|
2048
2053
|
/**
|
|
@@ -2074,27 +2079,27 @@ declare module Vips {
|
|
|
2074
2079
|
/**
|
|
2075
2080
|
* Extend with black (all 0) pixels
|
|
2076
2081
|
*/
|
|
2077
|
-
black = 'black'
|
|
2082
|
+
black = 0, // 'black'
|
|
2078
2083
|
/**
|
|
2079
2084
|
* Copy the image edges
|
|
2080
2085
|
*/
|
|
2081
|
-
copy = 'copy'
|
|
2086
|
+
copy = 1, // 'copy'
|
|
2082
2087
|
/**
|
|
2083
2088
|
* Repeat the whole image
|
|
2084
2089
|
*/
|
|
2085
|
-
repeat = 'repeat'
|
|
2090
|
+
repeat = 2, // 'repeat'
|
|
2086
2091
|
/**
|
|
2087
2092
|
* Mirror the whole image
|
|
2088
2093
|
*/
|
|
2089
|
-
mirror = 'mirror'
|
|
2094
|
+
mirror = 3, // 'mirror'
|
|
2090
2095
|
/**
|
|
2091
2096
|
* Extend with white (all bits set) pixels
|
|
2092
2097
|
*/
|
|
2093
|
-
white = 'white'
|
|
2098
|
+
white = 4, // 'white'
|
|
2094
2099
|
/**
|
|
2095
2100
|
* Extend with colour from the @background property
|
|
2096
2101
|
*/
|
|
2097
|
-
background = 'background'
|
|
2102
|
+
background = 5 // 'background'
|
|
2098
2103
|
}
|
|
2099
2104
|
|
|
2100
2105
|
/**
|
|
@@ -2104,39 +2109,39 @@ declare module Vips {
|
|
|
2104
2109
|
/**
|
|
2105
2110
|
* Centre
|
|
2106
2111
|
*/
|
|
2107
|
-
centre = 'centre'
|
|
2112
|
+
centre = 0, // 'centre'
|
|
2108
2113
|
/**
|
|
2109
2114
|
* North
|
|
2110
2115
|
*/
|
|
2111
|
-
north = 'north'
|
|
2116
|
+
north = 1, // 'north'
|
|
2112
2117
|
/**
|
|
2113
2118
|
* East
|
|
2114
2119
|
*/
|
|
2115
|
-
east = 'east'
|
|
2120
|
+
east = 2, // 'east'
|
|
2116
2121
|
/**
|
|
2117
2122
|
* South
|
|
2118
2123
|
*/
|
|
2119
|
-
south = 'south'
|
|
2124
|
+
south = 3, // 'south'
|
|
2120
2125
|
/**
|
|
2121
2126
|
* West
|
|
2122
2127
|
*/
|
|
2123
|
-
west = 'west'
|
|
2128
|
+
west = 4, // 'west'
|
|
2124
2129
|
/**
|
|
2125
2130
|
* North-east
|
|
2126
2131
|
*/
|
|
2127
|
-
north_east = 'north-east'
|
|
2132
|
+
north_east = 5, // 'north-east'
|
|
2128
2133
|
/**
|
|
2129
2134
|
* South-east
|
|
2130
2135
|
*/
|
|
2131
|
-
south_east = 'south-east'
|
|
2136
|
+
south_east = 6, // 'south-east'
|
|
2132
2137
|
/**
|
|
2133
2138
|
* South-west
|
|
2134
2139
|
*/
|
|
2135
|
-
south_west = 'south-west'
|
|
2140
|
+
south_west = 7, // 'south-west'
|
|
2136
2141
|
/**
|
|
2137
2142
|
* North-west
|
|
2138
2143
|
*/
|
|
2139
|
-
north_west = 'north-west'
|
|
2144
|
+
north_west = 8 // 'north-west'
|
|
2140
2145
|
}
|
|
2141
2146
|
|
|
2142
2147
|
/**
|
|
@@ -2151,11 +2156,11 @@ declare module Vips {
|
|
|
2151
2156
|
/**
|
|
2152
2157
|
* Left-right
|
|
2153
2158
|
*/
|
|
2154
|
-
horizontal = 'horizontal'
|
|
2159
|
+
horizontal = 0, // 'horizontal'
|
|
2155
2160
|
/**
|
|
2156
2161
|
* Top-bottom
|
|
2157
2162
|
*/
|
|
2158
|
-
vertical = 'vertical'
|
|
2163
|
+
vertical = 1 // 'vertical'
|
|
2159
2164
|
}
|
|
2160
2165
|
|
|
2161
2166
|
/**
|
|
@@ -2170,15 +2175,15 @@ declare module Vips {
|
|
|
2170
2175
|
/**
|
|
2171
2176
|
* Align low coordinate edge
|
|
2172
2177
|
*/
|
|
2173
|
-
low = 'low'
|
|
2178
|
+
low = 0, // 'low'
|
|
2174
2179
|
/**
|
|
2175
2180
|
* Align centre
|
|
2176
2181
|
*/
|
|
2177
|
-
centre = 'centre'
|
|
2182
|
+
centre = 1, // 'centre'
|
|
2178
2183
|
/**
|
|
2179
2184
|
* Align high coordinate edge
|
|
2180
2185
|
*/
|
|
2181
|
-
high = 'high'
|
|
2186
|
+
high = 2 // 'high'
|
|
2182
2187
|
}
|
|
2183
2188
|
|
|
2184
2189
|
/**
|
|
@@ -2196,31 +2201,31 @@ declare module Vips {
|
|
|
2196
2201
|
/**
|
|
2197
2202
|
* Do nothing
|
|
2198
2203
|
*/
|
|
2199
|
-
none = 'none'
|
|
2204
|
+
none = 0, // 'none'
|
|
2200
2205
|
/**
|
|
2201
2206
|
* Just take the centre
|
|
2202
2207
|
*/
|
|
2203
|
-
centre = 'centre'
|
|
2208
|
+
centre = 1, // 'centre'
|
|
2204
2209
|
/**
|
|
2205
2210
|
* Use an entropy measure
|
|
2206
2211
|
*/
|
|
2207
|
-
entropy = 'entropy'
|
|
2212
|
+
entropy = 2, // 'entropy'
|
|
2208
2213
|
/**
|
|
2209
2214
|
* Look for features likely to draw human attention
|
|
2210
2215
|
*/
|
|
2211
|
-
attention = 'attention'
|
|
2216
|
+
attention = 3, // 'attention'
|
|
2212
2217
|
/**
|
|
2213
2218
|
* Position the crop towards the low coordinate
|
|
2214
2219
|
*/
|
|
2215
|
-
low = 'low'
|
|
2220
|
+
low = 4, // 'low'
|
|
2216
2221
|
/**
|
|
2217
2222
|
* Position the crop towards the high coordinate
|
|
2218
2223
|
*/
|
|
2219
|
-
high = 'high'
|
|
2224
|
+
high = 5, // 'high'
|
|
2220
2225
|
/**
|
|
2221
2226
|
* Everything is interesting
|
|
2222
2227
|
*/
|
|
2223
|
-
all = 'all'
|
|
2228
|
+
all = 6 // 'all'
|
|
2224
2229
|
}
|
|
2225
2230
|
|
|
2226
2231
|
/**
|
|
@@ -2234,19 +2239,19 @@ declare module Vips {
|
|
|
2234
2239
|
/**
|
|
2235
2240
|
* No rotate
|
|
2236
2241
|
*/
|
|
2237
|
-
d0 = 'd0'
|
|
2242
|
+
d0 = 0, // 'd0'
|
|
2238
2243
|
/**
|
|
2239
2244
|
* 90 degrees clockwise
|
|
2240
2245
|
*/
|
|
2241
|
-
d90 = 'd90'
|
|
2246
|
+
d90 = 1, // 'd90'
|
|
2242
2247
|
/**
|
|
2243
2248
|
* 180 degree rotate
|
|
2244
2249
|
*/
|
|
2245
|
-
d180 = 'd180'
|
|
2250
|
+
d180 = 2, // 'd180'
|
|
2246
2251
|
/**
|
|
2247
2252
|
* 90 degrees anti-clockwise
|
|
2248
2253
|
*/
|
|
2249
|
-
d270 = 'd270'
|
|
2254
|
+
d270 = 3 // 'd270'
|
|
2250
2255
|
}
|
|
2251
2256
|
|
|
2252
2257
|
/**
|
|
@@ -2260,35 +2265,35 @@ declare module Vips {
|
|
|
2260
2265
|
/**
|
|
2261
2266
|
* No rotate
|
|
2262
2267
|
*/
|
|
2263
|
-
d0 = 'd0'
|
|
2268
|
+
d0 = 0, // 'd0'
|
|
2264
2269
|
/**
|
|
2265
2270
|
* 45 degrees clockwise
|
|
2266
2271
|
*/
|
|
2267
|
-
d45 = 'd45'
|
|
2272
|
+
d45 = 1, // 'd45'
|
|
2268
2273
|
/**
|
|
2269
2274
|
* 90 degrees clockwise
|
|
2270
2275
|
*/
|
|
2271
|
-
d90 = 'd90'
|
|
2276
|
+
d90 = 2, // 'd90'
|
|
2272
2277
|
/**
|
|
2273
2278
|
* 135 degrees clockwise
|
|
2274
2279
|
*/
|
|
2275
|
-
d135 = 'd135'
|
|
2280
|
+
d135 = 3, // 'd135'
|
|
2276
2281
|
/**
|
|
2277
2282
|
* 180 degrees
|
|
2278
2283
|
*/
|
|
2279
|
-
d180 = 'd180'
|
|
2284
|
+
d180 = 4, // 'd180'
|
|
2280
2285
|
/**
|
|
2281
2286
|
* 135 degrees anti-clockwise
|
|
2282
2287
|
*/
|
|
2283
|
-
d225 = 'd225'
|
|
2288
|
+
d225 = 5, // 'd225'
|
|
2284
2289
|
/**
|
|
2285
2290
|
* 90 degrees anti-clockwise
|
|
2286
2291
|
*/
|
|
2287
|
-
d270 = 'd270'
|
|
2292
|
+
d270 = 6, // 'd270'
|
|
2288
2293
|
/**
|
|
2289
2294
|
* 45 degrees anti-clockwise
|
|
2290
2295
|
*/
|
|
2291
|
-
d315 = 'd315'
|
|
2296
|
+
d315 = 7 // 'd315'
|
|
2292
2297
|
}
|
|
2293
2298
|
|
|
2294
2299
|
/**
|
|
@@ -2298,15 +2303,15 @@ declare module Vips {
|
|
|
2298
2303
|
/**
|
|
2299
2304
|
* Int everywhere
|
|
2300
2305
|
*/
|
|
2301
|
-
integer = 'integer'
|
|
2306
|
+
integer = 0, // 'integer'
|
|
2302
2307
|
/**
|
|
2303
2308
|
* Float everywhere
|
|
2304
2309
|
*/
|
|
2305
|
-
float = 'float'
|
|
2310
|
+
float = 1, // 'float'
|
|
2306
2311
|
/**
|
|
2307
2312
|
* Approximate integer output
|
|
2308
2313
|
*/
|
|
2309
|
-
approximate = 'approximate'
|
|
2314
|
+
approximate = 2 // 'approximate'
|
|
2310
2315
|
}
|
|
2311
2316
|
|
|
2312
2317
|
/**
|
|
@@ -2319,19 +2324,19 @@ declare module Vips {
|
|
|
2319
2324
|
/**
|
|
2320
2325
|
* Wrap at word boundaries
|
|
2321
2326
|
*/
|
|
2322
|
-
word = 'word'
|
|
2327
|
+
word = 0, // 'word'
|
|
2323
2328
|
/**
|
|
2324
2329
|
* Wrap at character boundaries
|
|
2325
2330
|
*/
|
|
2326
|
-
char = 'char'
|
|
2331
|
+
char = 1, // 'char'
|
|
2327
2332
|
/**
|
|
2328
2333
|
* Wrap at word boundaries, but fall back to character boundaries if there is not enough space for a full word
|
|
2329
2334
|
*/
|
|
2330
|
-
word_char = 'word-char'
|
|
2335
|
+
word_char = 2, // 'word-char'
|
|
2331
2336
|
/**
|
|
2332
2337
|
* No wrapping
|
|
2333
2338
|
*/
|
|
2334
|
-
none = 'none'
|
|
2339
|
+
none = 3 // 'none'
|
|
2335
2340
|
}
|
|
2336
2341
|
|
|
2337
2342
|
/**
|
|
@@ -2345,19 +2350,19 @@ declare module Vips {
|
|
|
2345
2350
|
/**
|
|
2346
2351
|
* Never stop
|
|
2347
2352
|
*/
|
|
2348
|
-
none = 'none'
|
|
2353
|
+
none = 0, // 'none'
|
|
2349
2354
|
/**
|
|
2350
2355
|
* Stop on image truncated, nothing else
|
|
2351
2356
|
*/
|
|
2352
|
-
truncated = 'truncated'
|
|
2357
|
+
truncated = 1, // 'truncated'
|
|
2353
2358
|
/**
|
|
2354
2359
|
* Stop on serious error or truncation
|
|
2355
2360
|
*/
|
|
2356
|
-
error = 'error'
|
|
2361
|
+
error = 2, // 'error'
|
|
2357
2362
|
/**
|
|
2358
2363
|
* Stop on anything, even warnings
|
|
2359
2364
|
*/
|
|
2360
|
-
warning = 'warning'
|
|
2365
|
+
warning = 3 // 'warning'
|
|
2361
2366
|
}
|
|
2362
2367
|
|
|
2363
2368
|
/**
|
|
@@ -2378,23 +2383,23 @@ declare module Vips {
|
|
|
2378
2383
|
/**
|
|
2379
2384
|
* Portable bitmap
|
|
2380
2385
|
*/
|
|
2381
|
-
pbm = 'pbm'
|
|
2386
|
+
pbm = 0, // 'pbm'
|
|
2382
2387
|
/**
|
|
2383
2388
|
* Portable greymap
|
|
2384
2389
|
*/
|
|
2385
|
-
pgm = 'pgm'
|
|
2390
|
+
pgm = 1, // 'pgm'
|
|
2386
2391
|
/**
|
|
2387
2392
|
* Portable pixmap
|
|
2388
2393
|
*/
|
|
2389
|
-
ppm = 'ppm'
|
|
2394
|
+
ppm = 2, // 'ppm'
|
|
2390
2395
|
/**
|
|
2391
2396
|
* Portable float map
|
|
2392
2397
|
*/
|
|
2393
|
-
pfm = 'pfm'
|
|
2398
|
+
pfm = 3, // 'pfm'
|
|
2394
2399
|
/**
|
|
2395
2400
|
* Portable anymap
|
|
2396
2401
|
*/
|
|
2397
|
-
pnm = 'pnm'
|
|
2402
|
+
pnm = 4 // 'pnm'
|
|
2398
2403
|
}
|
|
2399
2404
|
|
|
2400
2405
|
/**
|
|
@@ -2404,15 +2409,15 @@ declare module Vips {
|
|
|
2404
2409
|
/**
|
|
2405
2410
|
* Prevent subsampling when quality >= 90
|
|
2406
2411
|
*/
|
|
2407
|
-
auto = 'auto'
|
|
2412
|
+
auto = 0, // 'auto'
|
|
2408
2413
|
/**
|
|
2409
2414
|
* Always perform subsampling
|
|
2410
2415
|
*/
|
|
2411
|
-
on = 'on'
|
|
2416
|
+
on = 1, // 'on'
|
|
2412
2417
|
/**
|
|
2413
2418
|
* Never perform subsampling
|
|
2414
2419
|
*/
|
|
2415
|
-
off = 'off'
|
|
2420
|
+
off = 2 // 'off'
|
|
2416
2421
|
}
|
|
2417
2422
|
|
|
2418
2423
|
/**
|
|
@@ -2422,23 +2427,23 @@ declare module Vips {
|
|
|
2422
2427
|
/**
|
|
2423
2428
|
* Use DeepZoom directory layout
|
|
2424
2429
|
*/
|
|
2425
|
-
dz = 'dz'
|
|
2430
|
+
dz = 0, // 'dz'
|
|
2426
2431
|
/**
|
|
2427
2432
|
* Use Zoomify directory layout
|
|
2428
2433
|
*/
|
|
2429
|
-
zoomify = 'zoomify'
|
|
2434
|
+
zoomify = 1, // 'zoomify'
|
|
2430
2435
|
/**
|
|
2431
2436
|
* Use Google maps directory layout
|
|
2432
2437
|
*/
|
|
2433
|
-
google = 'google'
|
|
2438
|
+
google = 2, // 'google'
|
|
2434
2439
|
/**
|
|
2435
2440
|
* Use IIIF v2 directory layout
|
|
2436
2441
|
*/
|
|
2437
|
-
iiif = 'iiif'
|
|
2442
|
+
iiif = 3, // 'iiif'
|
|
2438
2443
|
/**
|
|
2439
2444
|
* Use IIIF v3 directory layout
|
|
2440
2445
|
*/
|
|
2441
|
-
iiif3 = 'iiif3'
|
|
2446
|
+
iiif3 = 4 // 'iiif3'
|
|
2442
2447
|
}
|
|
2443
2448
|
|
|
2444
2449
|
/**
|
|
@@ -2448,15 +2453,15 @@ declare module Vips {
|
|
|
2448
2453
|
/**
|
|
2449
2454
|
* Create layers down to 1x1 pixel
|
|
2450
2455
|
*/
|
|
2451
|
-
onepixel = 'onepixel'
|
|
2456
|
+
onepixel = 0, // 'onepixel'
|
|
2452
2457
|
/**
|
|
2453
2458
|
* Create layers down to 1x1 tile
|
|
2454
2459
|
*/
|
|
2455
|
-
onetile = 'onetile'
|
|
2460
|
+
onetile = 1, // 'onetile'
|
|
2456
2461
|
/**
|
|
2457
2462
|
* Only create a single layer
|
|
2458
2463
|
*/
|
|
2459
|
-
one = 'one'
|
|
2464
|
+
one = 2 // 'one'
|
|
2460
2465
|
}
|
|
2461
2466
|
|
|
2462
2467
|
/**
|
|
@@ -2466,15 +2471,15 @@ declare module Vips {
|
|
|
2466
2471
|
/**
|
|
2467
2472
|
* Write tiles to the filesystem
|
|
2468
2473
|
*/
|
|
2469
|
-
fs = 'fs'
|
|
2474
|
+
fs = 0, // 'fs'
|
|
2470
2475
|
/**
|
|
2471
2476
|
* Write tiles to a zip file
|
|
2472
2477
|
*/
|
|
2473
|
-
zip = 'zip'
|
|
2478
|
+
zip = 1, // 'zip'
|
|
2474
2479
|
/**
|
|
2475
2480
|
* Write to a szi file
|
|
2476
2481
|
*/
|
|
2477
|
-
szi = 'szi'
|
|
2482
|
+
szi = 2 // 'szi'
|
|
2478
2483
|
}
|
|
2479
2484
|
|
|
2480
2485
|
/**
|
|
@@ -2484,27 +2489,27 @@ declare module Vips {
|
|
|
2484
2489
|
/**
|
|
2485
2490
|
* Use the average
|
|
2486
2491
|
*/
|
|
2487
|
-
mean = 'mean'
|
|
2492
|
+
mean = 0, // 'mean'
|
|
2488
2493
|
/**
|
|
2489
2494
|
* Use the median
|
|
2490
2495
|
*/
|
|
2491
|
-
median = 'median'
|
|
2496
|
+
median = 1, // 'median'
|
|
2492
2497
|
/**
|
|
2493
2498
|
* Use the mode
|
|
2494
2499
|
*/
|
|
2495
|
-
mode = 'mode'
|
|
2500
|
+
mode = 2, // 'mode'
|
|
2496
2501
|
/**
|
|
2497
2502
|
* Use the maximum
|
|
2498
2503
|
*/
|
|
2499
|
-
max = 'max'
|
|
2504
|
+
max = 3, // 'max'
|
|
2500
2505
|
/**
|
|
2501
2506
|
* Use the minimum
|
|
2502
2507
|
*/
|
|
2503
|
-
min = 'min'
|
|
2508
|
+
min = 4, // 'min'
|
|
2504
2509
|
/**
|
|
2505
2510
|
* Use the top-left pixel
|
|
2506
2511
|
*/
|
|
2507
|
-
nearest = 'nearest'
|
|
2512
|
+
nearest = 5 // 'nearest'
|
|
2508
2513
|
}
|
|
2509
2514
|
|
|
2510
2515
|
/**
|
|
@@ -2514,27 +2519,27 @@ declare module Vips {
|
|
|
2514
2519
|
/**
|
|
2515
2520
|
* Default preset
|
|
2516
2521
|
*/
|
|
2517
|
-
default = 'default'
|
|
2522
|
+
default = 0, // 'default'
|
|
2518
2523
|
/**
|
|
2519
2524
|
* Digital picture, like portrait, inner shot
|
|
2520
2525
|
*/
|
|
2521
|
-
picture = 'picture'
|
|
2526
|
+
picture = 1, // 'picture'
|
|
2522
2527
|
/**
|
|
2523
2528
|
* Outdoor photograph, with natural lighting
|
|
2524
2529
|
*/
|
|
2525
|
-
photo = 'photo'
|
|
2530
|
+
photo = 2, // 'photo'
|
|
2526
2531
|
/**
|
|
2527
2532
|
* Hand or line drawing, with high-contrast details
|
|
2528
2533
|
*/
|
|
2529
|
-
drawing = 'drawing'
|
|
2534
|
+
drawing = 3, // 'drawing'
|
|
2530
2535
|
/**
|
|
2531
2536
|
* Small-sized colorful images
|
|
2532
2537
|
*/
|
|
2533
|
-
icon = 'icon'
|
|
2538
|
+
icon = 4, // 'icon'
|
|
2534
2539
|
/**
|
|
2535
2540
|
* Text-like
|
|
2536
2541
|
*/
|
|
2537
|
-
text = 'text'
|
|
2542
|
+
text = 5 // 'text'
|
|
2538
2543
|
}
|
|
2539
2544
|
|
|
2540
2545
|
/**
|
|
@@ -2552,39 +2557,39 @@ declare module Vips {
|
|
|
2552
2557
|
/**
|
|
2553
2558
|
* No compression
|
|
2554
2559
|
*/
|
|
2555
|
-
none = 'none'
|
|
2560
|
+
none = 0, // 'none'
|
|
2556
2561
|
/**
|
|
2557
2562
|
* Jpeg compression
|
|
2558
2563
|
*/
|
|
2559
|
-
jpeg = 'jpeg'
|
|
2564
|
+
jpeg = 1, // 'jpeg'
|
|
2560
2565
|
/**
|
|
2561
2566
|
* Deflate (zip) compression
|
|
2562
2567
|
*/
|
|
2563
|
-
deflate = 'deflate'
|
|
2568
|
+
deflate = 2, // 'deflate'
|
|
2564
2569
|
/**
|
|
2565
2570
|
* Packbits compression
|
|
2566
2571
|
*/
|
|
2567
|
-
packbits = 'packbits'
|
|
2572
|
+
packbits = 3, // 'packbits'
|
|
2568
2573
|
/**
|
|
2569
2574
|
* Fax4 compression
|
|
2570
2575
|
*/
|
|
2571
|
-
ccittfax4 = 'ccittfax4'
|
|
2576
|
+
ccittfax4 = 4, // 'ccittfax4'
|
|
2572
2577
|
/**
|
|
2573
2578
|
* LZW compression
|
|
2574
2579
|
*/
|
|
2575
|
-
lzw = 'lzw'
|
|
2580
|
+
lzw = 5, // 'lzw'
|
|
2576
2581
|
/**
|
|
2577
2582
|
* WEBP compression
|
|
2578
2583
|
*/
|
|
2579
|
-
webp = 'webp'
|
|
2584
|
+
webp = 6, // 'webp'
|
|
2580
2585
|
/**
|
|
2581
2586
|
* ZSTD compression
|
|
2582
2587
|
*/
|
|
2583
|
-
zstd = 'zstd'
|
|
2588
|
+
zstd = 7, // 'zstd'
|
|
2584
2589
|
/**
|
|
2585
2590
|
* JP2K compression
|
|
2586
2591
|
*/
|
|
2587
|
-
jp2k = 'jp2k'
|
|
2592
|
+
jp2k = 8 // 'jp2k'
|
|
2588
2593
|
}
|
|
2589
2594
|
|
|
2590
2595
|
/**
|
|
@@ -2595,15 +2600,15 @@ declare module Vips {
|
|
|
2595
2600
|
/**
|
|
2596
2601
|
* No prediction
|
|
2597
2602
|
*/
|
|
2598
|
-
none = 'none'
|
|
2603
|
+
none = 1, // 'none'
|
|
2599
2604
|
/**
|
|
2600
2605
|
* Horizontal differencing
|
|
2601
2606
|
*/
|
|
2602
|
-
horizontal = 'horizontal'
|
|
2607
|
+
horizontal = 2, // 'horizontal'
|
|
2603
2608
|
/**
|
|
2604
2609
|
* Float predictor
|
|
2605
2610
|
*/
|
|
2606
|
-
float = 'float'
|
|
2611
|
+
float = 3 // 'float'
|
|
2607
2612
|
}
|
|
2608
2613
|
|
|
2609
2614
|
/**
|
|
@@ -2613,11 +2618,11 @@ declare module Vips {
|
|
|
2613
2618
|
/**
|
|
2614
2619
|
* Use centimeters
|
|
2615
2620
|
*/
|
|
2616
|
-
cm = 'cm'
|
|
2621
|
+
cm = 0, // 'cm'
|
|
2617
2622
|
/**
|
|
2618
2623
|
* Use inches
|
|
2619
2624
|
*/
|
|
2620
|
-
inch = 'inch'
|
|
2625
|
+
inch = 1 // 'inch'
|
|
2621
2626
|
}
|
|
2622
2627
|
|
|
2623
2628
|
/**
|
|
@@ -2629,19 +2634,19 @@ declare module Vips {
|
|
|
2629
2634
|
/**
|
|
2630
2635
|
* X265
|
|
2631
2636
|
*/
|
|
2632
|
-
hevc = 'hevc'
|
|
2637
|
+
hevc = 1, // 'hevc'
|
|
2633
2638
|
/**
|
|
2634
2639
|
* X264
|
|
2635
2640
|
*/
|
|
2636
|
-
avc = 'avc'
|
|
2641
|
+
avc = 2, // 'avc'
|
|
2637
2642
|
/**
|
|
2638
2643
|
* Jpeg
|
|
2639
2644
|
*/
|
|
2640
|
-
jpeg = 'jpeg'
|
|
2645
|
+
jpeg = 3, // 'jpeg'
|
|
2641
2646
|
/**
|
|
2642
2647
|
* Aom
|
|
2643
2648
|
*/
|
|
2644
|
-
av1 = 'av1'
|
|
2649
|
+
av1 = 4 // 'av1'
|
|
2645
2650
|
}
|
|
2646
2651
|
|
|
2647
2652
|
/**
|
|
@@ -2653,23 +2658,23 @@ declare module Vips {
|
|
|
2653
2658
|
/**
|
|
2654
2659
|
* Auto
|
|
2655
2660
|
*/
|
|
2656
|
-
auto = 'auto'
|
|
2661
|
+
auto = 0, // 'auto'
|
|
2657
2662
|
/**
|
|
2658
2663
|
* Aom
|
|
2659
2664
|
*/
|
|
2660
|
-
aom = 'aom'
|
|
2665
|
+
aom = 1, // 'aom'
|
|
2661
2666
|
/**
|
|
2662
2667
|
* RAV1E
|
|
2663
2668
|
*/
|
|
2664
|
-
rav1e = 'rav1e'
|
|
2669
|
+
rav1e = 2, // 'rav1e'
|
|
2665
2670
|
/**
|
|
2666
2671
|
* SVT-AV1
|
|
2667
2672
|
*/
|
|
2668
|
-
svt = 'svt'
|
|
2673
|
+
svt = 3, // 'svt'
|
|
2669
2674
|
/**
|
|
2670
2675
|
* X265
|
|
2671
2676
|
*/
|
|
2672
|
-
x265 = 'x265'
|
|
2677
|
+
x265 = 4 // 'x265'
|
|
2673
2678
|
}
|
|
2674
2679
|
|
|
2675
2680
|
/**
|
|
@@ -2682,19 +2687,19 @@ declare module Vips {
|
|
|
2682
2687
|
/**
|
|
2683
2688
|
* Size both up and down
|
|
2684
2689
|
*/
|
|
2685
|
-
both = 'both'
|
|
2690
|
+
both = 0, // 'both'
|
|
2686
2691
|
/**
|
|
2687
2692
|
* Only upsize
|
|
2688
2693
|
*/
|
|
2689
|
-
up = 'up'
|
|
2694
|
+
up = 1, // 'up'
|
|
2690
2695
|
/**
|
|
2691
2696
|
* Only downsize
|
|
2692
2697
|
*/
|
|
2693
|
-
down = 'down'
|
|
2698
|
+
down = 2, // 'down'
|
|
2694
2699
|
/**
|
|
2695
2700
|
* Force size, that is, break aspect ratio
|
|
2696
2701
|
*/
|
|
2697
|
-
force = 'force'
|
|
2702
|
+
force = 3 // 'force'
|
|
2698
2703
|
}
|
|
2699
2704
|
|
|
2700
2705
|
/**
|
|
@@ -2706,19 +2711,19 @@ declare module Vips {
|
|
|
2706
2711
|
/**
|
|
2707
2712
|
* Perceptual rendering intent
|
|
2708
2713
|
*/
|
|
2709
|
-
perceptual = 'perceptual'
|
|
2714
|
+
perceptual = 0, // 'perceptual'
|
|
2710
2715
|
/**
|
|
2711
2716
|
* Relative colorimetric rendering intent
|
|
2712
2717
|
*/
|
|
2713
|
-
relative = 'relative'
|
|
2718
|
+
relative = 1, // 'relative'
|
|
2714
2719
|
/**
|
|
2715
2720
|
* Saturation rendering intent
|
|
2716
2721
|
*/
|
|
2717
|
-
saturation = 'saturation'
|
|
2722
|
+
saturation = 2, // 'saturation'
|
|
2718
2723
|
/**
|
|
2719
2724
|
* Absolute colorimetric rendering intent
|
|
2720
2725
|
*/
|
|
2721
|
-
absolute = 'absolute'
|
|
2726
|
+
absolute = 3 // 'absolute'
|
|
2722
2727
|
}
|
|
2723
2728
|
|
|
2724
2729
|
/**
|
|
@@ -2728,27 +2733,27 @@ declare module Vips {
|
|
|
2728
2733
|
/**
|
|
2729
2734
|
* The nearest pixel to the point.
|
|
2730
2735
|
*/
|
|
2731
|
-
nearest = 'nearest'
|
|
2736
|
+
nearest = 0, // 'nearest'
|
|
2732
2737
|
/**
|
|
2733
2738
|
* Convolve with a triangle filter.
|
|
2734
2739
|
*/
|
|
2735
|
-
linear = 'linear'
|
|
2740
|
+
linear = 1, // 'linear'
|
|
2736
2741
|
/**
|
|
2737
2742
|
* Convolve with a cubic filter.
|
|
2738
2743
|
*/
|
|
2739
|
-
cubic = 'cubic'
|
|
2744
|
+
cubic = 2, // 'cubic'
|
|
2740
2745
|
/**
|
|
2741
2746
|
* Convolve with a Mitchell kernel.
|
|
2742
2747
|
*/
|
|
2743
|
-
mitchell = 'mitchell'
|
|
2748
|
+
mitchell = 3, // 'mitchell'
|
|
2744
2749
|
/**
|
|
2745
2750
|
* Convolve with a two-lobe Lanczos kernel.
|
|
2746
2751
|
*/
|
|
2747
|
-
lanczos2 = 'lanczos2'
|
|
2752
|
+
lanczos2 = 4, // 'lanczos2'
|
|
2748
2753
|
/**
|
|
2749
2754
|
* Convolve with a three-lobe Lanczos kernel.
|
|
2750
2755
|
*/
|
|
2751
|
-
lanczos3 = 'lanczos3'
|
|
2756
|
+
lanczos3 = 5 // 'lanczos3'
|
|
2752
2757
|
}
|
|
2753
2758
|
|
|
2754
2759
|
/**
|
|
@@ -2760,11 +2765,11 @@ declare module Vips {
|
|
|
2760
2765
|
/**
|
|
2761
2766
|
* Use CIELAB D65 as the Profile Connection Space
|
|
2762
2767
|
*/
|
|
2763
|
-
lab = 'lab'
|
|
2768
|
+
lab = 0, // 'lab'
|
|
2764
2769
|
/**
|
|
2765
2770
|
* Use XYZ as the Profile Connection Space
|
|
2766
2771
|
*/
|
|
2767
|
-
xyz = 'xyz'
|
|
2772
|
+
xyz = 1 // 'xyz'
|
|
2768
2773
|
}
|
|
2769
2774
|
|
|
2770
2775
|
/**
|
|
@@ -2776,11 +2781,11 @@ declare module Vips {
|
|
|
2776
2781
|
/**
|
|
2777
2782
|
* True if all set
|
|
2778
2783
|
*/
|
|
2779
|
-
erode = 'erode'
|
|
2784
|
+
erode = 0, // 'erode'
|
|
2780
2785
|
/**
|
|
2781
2786
|
* True if one set
|
|
2782
2787
|
*/
|
|
2783
|
-
dilate = 'dilate'
|
|
2788
|
+
dilate = 1 // 'dilate'
|
|
2784
2789
|
}
|
|
2785
2790
|
|
|
2786
2791
|
/**
|
|
@@ -2795,11 +2800,11 @@ declare module Vips {
|
|
|
2795
2800
|
/**
|
|
2796
2801
|
* Set pixels to the new value
|
|
2797
2802
|
*/
|
|
2798
|
-
set = 'set'
|
|
2803
|
+
set = 0, // 'set'
|
|
2799
2804
|
/**
|
|
2800
2805
|
* Add pixels
|
|
2801
2806
|
*/
|
|
2802
|
-
add = 'add'
|
|
2807
|
+
add = 1 // 'add'
|
|
2803
2808
|
}
|
|
2804
2809
|
|
|
2805
2810
|
/**
|
|
@@ -2809,31 +2814,31 @@ declare module Vips {
|
|
|
2809
2814
|
/**
|
|
2810
2815
|
* Don't attach metadata
|
|
2811
2816
|
*/
|
|
2812
|
-
none = 'none'
|
|
2817
|
+
none = 0, // 'none'
|
|
2813
2818
|
/**
|
|
2814
2819
|
* Keep Exif metadata
|
|
2815
2820
|
*/
|
|
2816
|
-
exif = 'exif'
|
|
2821
|
+
exif = 1, // 'exif'
|
|
2817
2822
|
/**
|
|
2818
2823
|
* Keep XMP metadata
|
|
2819
2824
|
*/
|
|
2820
|
-
xmp = 'xmp'
|
|
2825
|
+
xmp = 2, // 'xmp'
|
|
2821
2826
|
/**
|
|
2822
2827
|
* Keep IPTC metadata
|
|
2823
2828
|
*/
|
|
2824
|
-
iptc = 'iptc'
|
|
2829
|
+
iptc = 4, // 'iptc'
|
|
2825
2830
|
/**
|
|
2826
2831
|
* Keep ICC metadata
|
|
2827
2832
|
*/
|
|
2828
|
-
icc = 'icc'
|
|
2833
|
+
icc = 8, // 'icc'
|
|
2829
2834
|
/**
|
|
2830
2835
|
* Keep other metadata (e.g. PNG comments and some TIFF tags)
|
|
2831
2836
|
*/
|
|
2832
|
-
other = 'other'
|
|
2837
|
+
other = 16, // 'other'
|
|
2833
2838
|
/**
|
|
2834
2839
|
* Keep all metadata
|
|
2835
2840
|
*/
|
|
2836
|
-
all = 'all'
|
|
2841
|
+
all = 31 // 'all'
|
|
2837
2842
|
}
|
|
2838
2843
|
|
|
2839
2844
|
/**
|
|
@@ -2844,27 +2849,27 @@ declare module Vips {
|
|
|
2844
2849
|
/**
|
|
2845
2850
|
* No filtering
|
|
2846
2851
|
*/
|
|
2847
|
-
none = 'none'
|
|
2852
|
+
none = 8, // 'none'
|
|
2848
2853
|
/**
|
|
2849
2854
|
* Difference to the left
|
|
2850
2855
|
*/
|
|
2851
|
-
sub = 'sub'
|
|
2856
|
+
sub = 16, // 'sub'
|
|
2852
2857
|
/**
|
|
2853
2858
|
* Difference up
|
|
2854
2859
|
*/
|
|
2855
|
-
up = 'up'
|
|
2860
|
+
up = 32, // 'up'
|
|
2856
2861
|
/**
|
|
2857
2862
|
* Average of left and up
|
|
2858
2863
|
*/
|
|
2859
|
-
avg = 'avg'
|
|
2864
|
+
avg = 64, // 'avg'
|
|
2860
2865
|
/**
|
|
2861
2866
|
* Pick best neighbor predictor automatically
|
|
2862
2867
|
*/
|
|
2863
|
-
paeth = 'paeth'
|
|
2868
|
+
paeth = 128, // 'paeth'
|
|
2864
2869
|
/**
|
|
2865
2870
|
* Adaptive
|
|
2866
2871
|
*/
|
|
2867
|
-
all = 'all'
|
|
2872
|
+
all = 248 // 'all'
|
|
2868
2873
|
}
|
|
2869
2874
|
|
|
2870
2875
|
//#endregion
|