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