@imagemagick/magick-wasm 0.0.22 → 0.0.24
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/NOTICE +46 -44
- package/README.md +1 -1
- package/dist/index.d.ts +205 -0
- package/dist/index.mjs +3004 -2842
- package/dist/index.umd.js +17 -17
- package/dist/magick.wasm +0 -0
- package/package.json +9 -9
package/NOTICE
CHANGED
|
@@ -7,7 +7,7 @@ Licensed under the Apache License, Version 2.0.
|
|
|
7
7
|
|
|
8
8
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
9
9
|
|
|
10
|
-
[ ImageMagick 7.1.1-
|
|
10
|
+
[ ImageMagick 7.1.1-17 (2023-09-19) ] copyright:
|
|
11
11
|
|
|
12
12
|
Before we get to the text of the license, lets just review what the license says in simple terms:
|
|
13
13
|
|
|
@@ -115,7 +115,7 @@ To apply the ImageMagick License to your work, attach the following boilerplate
|
|
|
115
115
|
|
|
116
116
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
117
117
|
|
|
118
|
-
[ aom 3.
|
|
118
|
+
[ aom 3.7.0 (2023-08-25) ] copyright:
|
|
119
119
|
|
|
120
120
|
Copyright (c) 2016, Alliance for Open Media. All rights reserved.
|
|
121
121
|
|
|
@@ -147,7 +147,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
|
|
147
147
|
|
|
148
148
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
149
149
|
|
|
150
|
-
[ brotli 1.0
|
|
150
|
+
[ brotli 1.1.0 (2023-08-31) ] copyright:
|
|
151
151
|
|
|
152
152
|
Copyright (c) 2009, 2010, 2013-2016 by the Brotli Authors.
|
|
153
153
|
|
|
@@ -171,7 +171,7 @@ THE SOFTWARE.
|
|
|
171
171
|
|
|
172
172
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
173
173
|
|
|
174
|
-
[ de265 1.0.
|
|
174
|
+
[ de265 1.0.12 (2023-06-13) ] copyright:
|
|
175
175
|
|
|
176
176
|
* The library `libde265` is distributed under the terms of the GNU Lesser General Public License.
|
|
177
177
|
* The sample applications are distributed under the terms of the MIT license.
|
|
@@ -1047,35 +1047,37 @@ SOFTWARE.
|
|
|
1047
1047
|
|
|
1048
1048
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
1049
1049
|
|
|
1050
|
-
[
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1050
|
+
[ openexr 3.1.11 (2023-08-14) ] copyright:
|
|
1051
|
+
|
|
1052
|
+
<!-- SPDX-License-Identifier: BSD-3-Clause -->
|
|
1053
|
+
<!-- Copyright (c) Contributors to the OpenEXR Project -->
|
|
1054
|
+
|
|
1055
|
+
Copyright (c) Contributors to the OpenEXR Project. All rights reserved.
|
|
1056
|
+
|
|
1057
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
1058
|
+
|
|
1059
|
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
1060
|
+
|
|
1061
|
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
1062
|
+
|
|
1063
|
+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
1064
|
+
|
|
1065
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1066
|
+
|
|
1067
|
+
[ imath 3.1.9 (2023-06-01) ] copyright:
|
|
1068
|
+
|
|
1069
|
+
Copyright Contributors to the OpenEXR Project. All rights reserved.
|
|
1070
|
+
|
|
1071
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
1072
|
+
|
|
1073
|
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
1074
|
+
|
|
1075
|
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
1076
|
+
|
|
1077
|
+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
1078
|
+
|
|
1079
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1080
|
+
|
|
1079
1081
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
1080
1082
|
|
|
1081
1083
|
[ ffi 3.4.4 (2022-10-23) ] copyright:
|
|
@@ -1104,7 +1106,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
1104
1106
|
|
|
1105
1107
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
1106
1108
|
|
|
1107
|
-
[ freetype 2.13.
|
|
1109
|
+
[ freetype 2.13.2 (2023-08-25) ] copyright:
|
|
1108
1110
|
|
|
1109
1111
|
The FreeType Project LICENSE
|
|
1110
1112
|
----------------------------
|
|
@@ -1785,7 +1787,7 @@ That's all there is to it!
|
|
|
1785
1787
|
|
|
1786
1788
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
1787
1789
|
|
|
1788
|
-
[ heif 1.16.
|
|
1790
|
+
[ heif 1.16.2 (2023-05-22) ] copyright:
|
|
1789
1791
|
|
|
1790
1792
|
* The library `libheif` is distributed under the terms of the GNU Lesser General Public License.
|
|
1791
1793
|
* The sample applications are distributed under the terms of the MIT License.
|
|
@@ -2661,7 +2663,7 @@ SOFTWARE.
|
|
|
2661
2663
|
|
|
2662
2664
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
2663
2665
|
|
|
2664
|
-
[ highway 1.0.
|
|
2666
|
+
[ highway 1.0.7 (2023-08-30) ] copyright:
|
|
2665
2667
|
|
|
2666
2668
|
Apache License
|
|
2667
2669
|
Version 2.0, January 2004
|
|
@@ -2866,7 +2868,7 @@ SOFTWARE.
|
|
|
2866
2868
|
limitations under the License.
|
|
2867
2869
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
2868
2870
|
|
|
2869
|
-
[ jpeg-turbo
|
|
2871
|
+
[ jpeg-turbo 3.0.0 (2023-07-03) ] copyright:
|
|
2870
2872
|
|
|
2871
2873
|
libjpeg-turbo Licenses
|
|
2872
2874
|
======================
|
|
@@ -3003,7 +3005,7 @@ that were granted to the IJG for code derived from their software.
|
|
|
3003
3005
|
|
|
3004
3006
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
3005
3007
|
|
|
3006
|
-
[ jpeg-xl 0.8.
|
|
3008
|
+
[ jpeg-xl 0.8.2 (2023-06-14) ] copyright:
|
|
3007
3009
|
|
|
3008
3010
|
Copyright (c) the JPEG XL Project Authors.
|
|
3009
3011
|
All rights reserved.
|
|
@@ -3275,7 +3277,7 @@ Library.
|
|
|
3275
3277
|
|
|
3276
3278
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
3277
3279
|
|
|
3278
|
-
[ png 1.6.
|
|
3280
|
+
[ png 1.6.40 (2023-06-21) ] copyright:
|
|
3279
3281
|
|
|
3280
3282
|
COPYRIGHT NOTICE, DISCLAIMER, and LICENSE
|
|
3281
3283
|
=========================================
|
|
@@ -3283,8 +3285,8 @@ COPYRIGHT NOTICE, DISCLAIMER, and LICENSE
|
|
|
3283
3285
|
PNG Reference Library License version 2
|
|
3284
3286
|
---------------------------------------
|
|
3285
3287
|
|
|
3286
|
-
* Copyright (c) 1995-
|
|
3287
|
-
* Copyright (c) 2018-
|
|
3288
|
+
* Copyright (c) 1995-2023 The PNG Reference Library Authors.
|
|
3289
|
+
* Copyright (c) 2018-2023 Cosmin Truta.
|
|
3288
3290
|
* Copyright (c) 2000-2002, 2004, 2006-2018 Glenn Randers-Pehrson.
|
|
3289
3291
|
* Copyright (c) 1996-1997 Andreas Dilger.
|
|
3290
3292
|
* Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.
|
|
@@ -3446,7 +3448,7 @@ Copyright (c) 2005 Adobe Systems Incorporated, licensed under MIT license
|
|
|
3446
3448
|
|
|
3447
3449
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
3448
3450
|
|
|
3449
|
-
[ tiff 4.5.
|
|
3451
|
+
[ tiff 4.5.1 (2023-06-10) ] copyright:
|
|
3450
3452
|
|
|
3451
3453
|
# LibTIFF license
|
|
3452
3454
|
|
|
@@ -3474,7 +3476,7 @@ OF THIS SOFTWARE.
|
|
|
3474
3476
|
|
|
3475
3477
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
3476
3478
|
|
|
3477
|
-
[ webp 1.3.
|
|
3479
|
+
[ webp 1.3.2 (2023-09-14) ] copyright:
|
|
3478
3480
|
|
|
3479
3481
|
Copyright (c) 2010, Google Inc. All rights reserved.
|
|
3480
3482
|
|
|
@@ -3509,7 +3511,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
3509
3511
|
|
|
3510
3512
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
3511
3513
|
|
|
3512
|
-
[ xml 2.11.
|
|
3514
|
+
[ xml 2.11.5 (2023-08-09) ] copyright:
|
|
3513
3515
|
|
|
3514
3516
|
Except where otherwise noted in the source code (e.g. the files hash.c,
|
|
3515
3517
|
list.c and the trio files, which are covered by a similar licence but
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ Follow me on twitter([@MagickNET](https://twitter.com/MagickNET)) to receive inf
|
|
|
21
21
|
|
|
22
22
|
## Release notes
|
|
23
23
|
|
|
24
|
-
The release notes can be found on [GitHub](https://github.com/dlemstra/magick-wasm/releases/tag/0.0.
|
|
24
|
+
The release notes can be found on [GitHub](https://github.com/dlemstra/magick-wasm/releases/tag/0.0.24).
|
|
25
25
|
|
|
26
26
|
## Donate
|
|
27
27
|
|
package/dist/index.d.ts
CHANGED
|
@@ -385,6 +385,7 @@ export declare enum MagickFormat {
|
|
|
385
385
|
Mpc = "MPC",
|
|
386
386
|
Mpeg = "MPEG",
|
|
387
387
|
Mpg = "MPG",
|
|
388
|
+
Mpo = "MPO",
|
|
388
389
|
Mrw = "MRW",
|
|
389
390
|
Msl = "MSL",
|
|
390
391
|
Msvg = "MSVG",
|
|
@@ -626,6 +627,19 @@ export declare enum PaintMethod {
|
|
|
626
627
|
FillToBorder = 4,
|
|
627
628
|
Reset = 5
|
|
628
629
|
}
|
|
630
|
+
export declare enum TextAlignment {
|
|
631
|
+
Undefined = 0,
|
|
632
|
+
Left = 1,
|
|
633
|
+
Center = 2,
|
|
634
|
+
Right = 3
|
|
635
|
+
}
|
|
636
|
+
export declare enum TextDecoration {
|
|
637
|
+
Undefined = 0,
|
|
638
|
+
None = 1,
|
|
639
|
+
Underline = 2,
|
|
640
|
+
Overline = 3,
|
|
641
|
+
LineThrough = 4
|
|
642
|
+
}
|
|
629
643
|
export interface IDrawingWand extends IDisposable {
|
|
630
644
|
color(x: number, y: number, paintMethod: number): void;
|
|
631
645
|
draw(drawables: IDrawable[]): void;
|
|
@@ -637,6 +651,13 @@ export interface IDrawingWand extends IDisposable {
|
|
|
637
651
|
rectangle(upperLeftX: number, upperLeftY: number, lowerRightX: number, lowerRightY: number): void;
|
|
638
652
|
roundRectangle(upperLeftX: number, upperLeftY: number, lowerRightX: number, lowerRightY: number, cornerWidth: number, cornerHeight: number): void;
|
|
639
653
|
text(x: number, y: number, value: string): void;
|
|
654
|
+
textAlignment(value: TextAlignment): void;
|
|
655
|
+
textAntialias(value: boolean): void;
|
|
656
|
+
textDecoration(value: TextDecoration): void;
|
|
657
|
+
textInterlineSpacing(value: number): void;
|
|
658
|
+
textInterwordspacing(value: number): void;
|
|
659
|
+
textKerning(value: number): void;
|
|
660
|
+
textUnderColor(value: MagickColor): void;
|
|
640
661
|
}
|
|
641
662
|
export declare class DrawingWand extends NativeInstance implements IDrawingWand {
|
|
642
663
|
private constructor();
|
|
@@ -650,6 +671,13 @@ export declare class DrawingWand extends NativeInstance implements IDrawingWand
|
|
|
650
671
|
rectangle(upperLeftX: number, upperLeftY: number, lowerRightX: number, lowerRightY: number): void;
|
|
651
672
|
roundRectangle(upperLeftX: number, upperLeftY: number, lowerRightX: number, lowerRightY: number, cornerWidth: number, cornerHeight: number): void;
|
|
652
673
|
text(x: number, y: number, value: string): void;
|
|
674
|
+
textAlignment(value: TextAlignment): void;
|
|
675
|
+
textAntialias(value: boolean): void;
|
|
676
|
+
textDecoration(value: TextDecoration): void;
|
|
677
|
+
textInterlineSpacing(value: number): void;
|
|
678
|
+
textInterwordspacing(value: number): void;
|
|
679
|
+
textKerning(value: number): void;
|
|
680
|
+
textUnderColor(value: MagickColor): void;
|
|
653
681
|
}
|
|
654
682
|
export interface IDrawable {
|
|
655
683
|
draw(wand: IDrawingWand): void;
|
|
@@ -711,6 +739,43 @@ export declare class DrawableRoundRectangle implements IDrawable {
|
|
|
711
739
|
constructor(upperLeftX: number, upperLeftY: number, lowerRightX: number, lowerRightY: number, cornerWidth: number, cornerHeight: number);
|
|
712
740
|
draw(wand: IDrawingWand): void;
|
|
713
741
|
}
|
|
742
|
+
export declare class DrawableTextAlignment implements IDrawable {
|
|
743
|
+
private readonly _alignment;
|
|
744
|
+
constructor(alignment: TextAlignment);
|
|
745
|
+
draw(wand: IDrawingWand): void;
|
|
746
|
+
}
|
|
747
|
+
export declare class DrawableTextAntialias implements IDrawable {
|
|
748
|
+
private readonly _isEnabled;
|
|
749
|
+
private constructor();
|
|
750
|
+
static get Disabled(): DrawableTextAntialias;
|
|
751
|
+
static get Enabled(): DrawableTextAntialias;
|
|
752
|
+
draw(wand: IDrawingWand): void;
|
|
753
|
+
}
|
|
754
|
+
export declare class DrawableTextDecoration implements IDrawable {
|
|
755
|
+
private readonly _decoration;
|
|
756
|
+
constructor(decoration: TextDecoration);
|
|
757
|
+
draw(wand: IDrawingWand): void;
|
|
758
|
+
}
|
|
759
|
+
export declare class DrawableTextInterlineSpacing implements IDrawable {
|
|
760
|
+
private readonly _spacing;
|
|
761
|
+
constructor(spacing: number);
|
|
762
|
+
draw(wand: IDrawingWand): void;
|
|
763
|
+
}
|
|
764
|
+
export declare class DrawableTextInterwordSpacing implements IDrawable {
|
|
765
|
+
private readonly _spacing;
|
|
766
|
+
constructor(spacing: number);
|
|
767
|
+
draw(wand: IDrawingWand): void;
|
|
768
|
+
}
|
|
769
|
+
export declare class DrawableTextKerning implements IDrawable {
|
|
770
|
+
private readonly _kerning;
|
|
771
|
+
constructor(kerning: number);
|
|
772
|
+
draw(wand: IDrawingWand): void;
|
|
773
|
+
}
|
|
774
|
+
export declare class DrawableTextUnderColor implements IDrawable {
|
|
775
|
+
private readonly _color;
|
|
776
|
+
constructor(color: MagickColor);
|
|
777
|
+
draw(wand: IDrawingWand): void;
|
|
778
|
+
}
|
|
714
779
|
export declare class DrawableText implements IDrawable {
|
|
715
780
|
private readonly _x;
|
|
716
781
|
private readonly _y;
|
|
@@ -902,8 +967,13 @@ export declare enum Interlace {
|
|
|
902
967
|
Png = 7
|
|
903
968
|
}
|
|
904
969
|
export declare class MagickSettings {
|
|
970
|
+
antiAlias?: boolean;
|
|
905
971
|
backgroundColor?: MagickColor;
|
|
972
|
+
colorSpace?: ColorSpace;
|
|
906
973
|
colorType?: ColorType;
|
|
974
|
+
compression?: CompressionMethod;
|
|
975
|
+
debug?: boolean;
|
|
976
|
+
depth?: number;
|
|
907
977
|
endian?: Endian;
|
|
908
978
|
fillColor?: MagickColor;
|
|
909
979
|
font?: string;
|
|
@@ -1009,6 +1079,80 @@ export declare class MagickImageCollection extends Array<MagickImage> implements
|
|
|
1009
1079
|
private throwIfEmpty;
|
|
1010
1080
|
private checkResult;
|
|
1011
1081
|
}
|
|
1082
|
+
export declare enum Kernel {
|
|
1083
|
+
Undefined = "Undefined",
|
|
1084
|
+
Unity = "Unity",
|
|
1085
|
+
Gaussian = "Gaussian",
|
|
1086
|
+
DoG = "DoG",
|
|
1087
|
+
LoG = "LoG",
|
|
1088
|
+
Blur = "Blur",
|
|
1089
|
+
Comet = "Comet",
|
|
1090
|
+
Binomial = "Binomial",
|
|
1091
|
+
Laplacian = "Laplacian",
|
|
1092
|
+
Sobel = "Sobel",
|
|
1093
|
+
FreiChen = "FreiChen",
|
|
1094
|
+
Roberts = "Roberts",
|
|
1095
|
+
Prewitt = "Prewitt",
|
|
1096
|
+
Compass = "Compass",
|
|
1097
|
+
Kirsch = "Kirsch",
|
|
1098
|
+
Diamond = "Diamond",
|
|
1099
|
+
Square = "Square",
|
|
1100
|
+
Rectangle = "Rectangle",
|
|
1101
|
+
Octagon = "Octagon",
|
|
1102
|
+
Disk = "Disk",
|
|
1103
|
+
Plus = "Plus",
|
|
1104
|
+
Cross = "Cross",
|
|
1105
|
+
Ring = "Ring",
|
|
1106
|
+
Peaks = "Peaks",
|
|
1107
|
+
Edges = "Edges",
|
|
1108
|
+
Corners = "Corners",
|
|
1109
|
+
Diagonals = "Diagonals",
|
|
1110
|
+
LineEnds = "LineEnds",
|
|
1111
|
+
LineJunctions = "LineJunctions",
|
|
1112
|
+
Ridges = "Ridges",
|
|
1113
|
+
ConvexHull = "ConvexHull",
|
|
1114
|
+
ThinSE = "ThinSE",
|
|
1115
|
+
Skeleton = "Skeleton",
|
|
1116
|
+
Chebyshev = "Chebyshev",
|
|
1117
|
+
Manhattan = "Manhattan",
|
|
1118
|
+
Octagonal = "Octagonal",
|
|
1119
|
+
Euclidean = "Euclidean",
|
|
1120
|
+
UserDefined = "UserDefined"
|
|
1121
|
+
}
|
|
1122
|
+
export declare enum MorphologyMethod {
|
|
1123
|
+
Undefined = 0,
|
|
1124
|
+
Convolve = 1,
|
|
1125
|
+
Correlate = 2,
|
|
1126
|
+
Erode = 3,
|
|
1127
|
+
Dilate = 4,
|
|
1128
|
+
ErodeIntensity = 5,
|
|
1129
|
+
DilateIntensity = 6,
|
|
1130
|
+
IterativeDistance = 7,
|
|
1131
|
+
Open = 8,
|
|
1132
|
+
Close = 9,
|
|
1133
|
+
OpenIntensity = 10,
|
|
1134
|
+
CloseIntensity = 11,
|
|
1135
|
+
Smooth = 12,
|
|
1136
|
+
EdgeIn = 13,
|
|
1137
|
+
EdgeOut = 14,
|
|
1138
|
+
Edge = 15,
|
|
1139
|
+
TopHat = 16,
|
|
1140
|
+
BottomHat = 17,
|
|
1141
|
+
HitAndMiss = 18,
|
|
1142
|
+
Thinning = 19,
|
|
1143
|
+
Thicken = 20,
|
|
1144
|
+
Distance = 21,
|
|
1145
|
+
Voronoi = 22
|
|
1146
|
+
}
|
|
1147
|
+
export declare class MorphologySettings {
|
|
1148
|
+
channels: Channels;
|
|
1149
|
+
convolveBias: Percentage | undefined;
|
|
1150
|
+
convolveScale: MagickGeometry | undefined;
|
|
1151
|
+
iterations: number;
|
|
1152
|
+
readonly method: MorphologyMethod;
|
|
1153
|
+
readonly kernel: string;
|
|
1154
|
+
constructor(method: MorphologyMethod, kernel: Kernel | string, args?: string);
|
|
1155
|
+
}
|
|
1012
1156
|
export declare enum OrientationType {
|
|
1013
1157
|
Undefined = 0,
|
|
1014
1158
|
TopLeft = 1,
|
|
@@ -1043,6 +1187,18 @@ export declare class PixelCollection extends NativeInstance implements IPixelCol
|
|
|
1043
1187
|
private static createArray;
|
|
1044
1188
|
private use;
|
|
1045
1189
|
}
|
|
1190
|
+
export declare enum PixelIntensityMethod {
|
|
1191
|
+
Undefined = 0,
|
|
1192
|
+
Average = 1,
|
|
1193
|
+
Brightness = 2,
|
|
1194
|
+
Lightness = 3,
|
|
1195
|
+
MS = 4,
|
|
1196
|
+
Rec601Luma = 5,
|
|
1197
|
+
Rec601Luminance = 6,
|
|
1198
|
+
Rec709Luma = 7,
|
|
1199
|
+
Rec709Luminance = 8,
|
|
1200
|
+
RMS = 9
|
|
1201
|
+
}
|
|
1046
1202
|
export declare enum PixelInterpolateMethod {
|
|
1047
1203
|
Undefined = 0,
|
|
1048
1204
|
Average = 1,
|
|
@@ -1211,6 +1367,8 @@ export interface IMagickImage extends IDisposable {
|
|
|
1211
1367
|
getWriteMask<TReturnType>(func: (mask: IMagickImage | null) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1212
1368
|
getPixels<TReturnType>(func: (pixels: IPixelCollection) => TReturnType): TReturnType;
|
|
1213
1369
|
getPixels<TReturnType>(func: (pixels: IPixelCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1370
|
+
grayscale(): void;
|
|
1371
|
+
grayscale(method: PixelIntensityMethod): void;
|
|
1214
1372
|
histogram(): Map<string, number>;
|
|
1215
1373
|
inverseContrast(): void;
|
|
1216
1374
|
inverseOpaque(target: MagickColor, fill: MagickColor): void;
|
|
@@ -1229,6 +1387,8 @@ export interface IMagickImage extends IDisposable {
|
|
|
1229
1387
|
modulate(brightness: Percentage): void;
|
|
1230
1388
|
modulate(brightness: Percentage, saturation: Percentage): void;
|
|
1231
1389
|
modulate(brightness: Percentage, saturation: Percentage, hue: Percentage): void;
|
|
1390
|
+
motionBlur(radius: number, sigma: number, angle: number): void;
|
|
1391
|
+
morphology(settings: MorphologySettings): void;
|
|
1232
1392
|
negate(): void;
|
|
1233
1393
|
negate(channels: Channels): void;
|
|
1234
1394
|
negateGrayScale(): void;
|
|
@@ -1255,6 +1415,9 @@ export interface IMagickImage extends IDisposable {
|
|
|
1255
1415
|
separate<TReturnType>(func: (images: IMagickImageCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1256
1416
|
separate<TReturnType>(func: (images: IMagickImageCollection) => TReturnType, channels: Channels): TReturnType;
|
|
1257
1417
|
separate<TReturnType>(func: (images: IMagickImageCollection) => Promise<TReturnType>, channels: Channels): Promise<TReturnType>;
|
|
1418
|
+
sepiaTone(): void;
|
|
1419
|
+
sepiaTone(threshold: number): void;
|
|
1420
|
+
sepiaTone(threshold: Percentage): void;
|
|
1258
1421
|
setArtifact(name: string, value: string): void;
|
|
1259
1422
|
setArtifact(name: string, value: boolean): void;
|
|
1260
1423
|
setAttribute(name: string, value: string): void;
|
|
@@ -1269,6 +1432,9 @@ export interface IMagickImage extends IDisposable {
|
|
|
1269
1432
|
sigmoidalContrast(contrast: number, midpoint: number): void;
|
|
1270
1433
|
sigmoidalContrast(contrast: number, midpoint: number, channels: Channels): void;
|
|
1271
1434
|
splice(geometry: MagickGeometry): void;
|
|
1435
|
+
solarize(): void;
|
|
1436
|
+
solarize(factor: number): void;
|
|
1437
|
+
solarize(factor: Percentage): void;
|
|
1272
1438
|
statistics(): IStatistics;
|
|
1273
1439
|
statistics(channels: Channels): IStatistics;
|
|
1274
1440
|
strip(): void;
|
|
@@ -1439,6 +1605,7 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
1439
1605
|
getWriteMask<TReturnType>(func: (mask: IMagickImage | null) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1440
1606
|
getPixels<TReturnType>(func: (pixels: IPixelCollection) => TReturnType): TReturnType;
|
|
1441
1607
|
getPixels<TReturnType>(func: (pixels: IPixelCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1608
|
+
grayscale(method?: PixelIntensityMethod): void;
|
|
1442
1609
|
histogram(): Map<string, number>;
|
|
1443
1610
|
inverseContrast: () => void;
|
|
1444
1611
|
inverseOpaque: (target: MagickColor, fill: MagickColor) => void;
|
|
@@ -1460,6 +1627,8 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
1460
1627
|
modulate(brightness: Percentage): void;
|
|
1461
1628
|
modulate(brightness: Percentage, saturation: Percentage): void;
|
|
1462
1629
|
modulate(brightness: Percentage, saturation: Percentage, hue: Percentage): void;
|
|
1630
|
+
motionBlur(radius: number, sigma: number, angle: number): void;
|
|
1631
|
+
morphology(settings: MorphologySettings): void;
|
|
1463
1632
|
oilPaint(): void;
|
|
1464
1633
|
oilPaint(radius: number): void;
|
|
1465
1634
|
opaque: (target: MagickColor, fill: MagickColor) => void;
|
|
@@ -1481,6 +1650,7 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
1481
1650
|
separate<TReturnType>(func: (images: IMagickImageCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1482
1651
|
separate<TReturnType>(func: (images: IMagickImageCollection) => TReturnType, channels: Channels): TReturnType;
|
|
1483
1652
|
separate<TReturnType>(func: (images: IMagickImageCollection) => Promise<TReturnType>, channels: Channels): Promise<TReturnType>;
|
|
1653
|
+
sepiaTone(): void;
|
|
1484
1654
|
setArtifact(name: string, value: string): void;
|
|
1485
1655
|
setArtifact(name: string, value: boolean): void;
|
|
1486
1656
|
setAttribute(name: string, value: string): void;
|
|
@@ -1494,6 +1664,7 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
1494
1664
|
sigmoidalContrast(contrast: number, midpointPercentage: Percentage): void;
|
|
1495
1665
|
sigmoidalContrast(contrast: number, midpoint: number): void;
|
|
1496
1666
|
sigmoidalContrast(contrast: number, midpoint: number, channels: Channels): void;
|
|
1667
|
+
solarize(): void;
|
|
1497
1668
|
splice(geometry: MagickGeometry): void;
|
|
1498
1669
|
statistics(): IStatistics;
|
|
1499
1670
|
statistics(channels: Channels): IStatistics;
|
|
@@ -1558,6 +1729,35 @@ export declare class ImageMagick {
|
|
|
1558
1729
|
static readFromCanvas<TReturnType>(canvas: HTMLCanvasElement, func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1559
1730
|
}
|
|
1560
1731
|
export declare function initializeImageMagick(wasmLocationOrData?: string | ByteArray): Promise<void>;
|
|
1732
|
+
export declare enum LogEventTypes {
|
|
1733
|
+
None = 0,
|
|
1734
|
+
Accelerate = 1,
|
|
1735
|
+
Annotate = 2,
|
|
1736
|
+
Blob = 4,
|
|
1737
|
+
Cache = 8,
|
|
1738
|
+
Coder = 16,
|
|
1739
|
+
Configure = 32,
|
|
1740
|
+
Deprecate = 64,
|
|
1741
|
+
Draw = 128,
|
|
1742
|
+
Exception = 256,
|
|
1743
|
+
Image = 512,
|
|
1744
|
+
Locale = 1024,
|
|
1745
|
+
Module = 2048,
|
|
1746
|
+
Pixel = 4096,
|
|
1747
|
+
Policy = 8192,
|
|
1748
|
+
Resource = 16384,
|
|
1749
|
+
Trace = 32768,
|
|
1750
|
+
Transform = 65536,
|
|
1751
|
+
User = 131072,
|
|
1752
|
+
Wand = 262144,
|
|
1753
|
+
Detailed = 2147450879,
|
|
1754
|
+
All = 2147483647
|
|
1755
|
+
}
|
|
1756
|
+
export declare class LogEvent {
|
|
1757
|
+
eventType: LogEventTypes;
|
|
1758
|
+
message: string;
|
|
1759
|
+
constructor(eventType: LogEventTypes, message?: string);
|
|
1760
|
+
}
|
|
1561
1761
|
export declare class MagickColors {
|
|
1562
1762
|
static get None(): MagickColor;
|
|
1563
1763
|
static get Transparent(): MagickColor;
|
|
@@ -1753,12 +1953,17 @@ export declare class MagickFormatInfo {
|
|
|
1753
1953
|
private static convertFormat;
|
|
1754
1954
|
}
|
|
1755
1955
|
export declare class Magick {
|
|
1956
|
+
private static _logDelegate?;
|
|
1756
1957
|
static get delegates(): string;
|
|
1757
1958
|
static get features(): string;
|
|
1758
1959
|
static get imageMagickVersion(): string;
|
|
1759
1960
|
static get supportedFormats(): ReadonlyArray<MagickFormatInfo>;
|
|
1961
|
+
static onLog?: (event: LogEvent) => void;
|
|
1760
1962
|
static addFont(name: string, data: Uint8Array): void;
|
|
1761
1963
|
static setRandomSeed: (seed: number) => void;
|
|
1964
|
+
static setLogEvents(eventTypes: LogEventTypes): void;
|
|
1965
|
+
private static logDelegate;
|
|
1966
|
+
private static getEventTypeString;
|
|
1762
1967
|
}
|
|
1763
1968
|
export declare class Quantum {
|
|
1764
1969
|
static get depth(): number;
|