@imagemagick/magick-wasm 0.0.32 → 0.0.34
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 +17 -17
- package/README.md +3 -3
- package/dist/index.d.ts +1101 -988
- package/dist/index.js +10962 -8512
- package/dist/index.umd.cjs +17 -24
- package/dist/magick.wasm +0 -0
- package/package.json +11 -12
package/dist/index.d.ts
CHANGED
|
@@ -17,280 +17,282 @@ export declare class ConfigurationFiles implements IConfigurationFiles {
|
|
|
17
17
|
readonly log: IConfigurationFile;
|
|
18
18
|
readonly policy: IConfigurationFile;
|
|
19
19
|
}
|
|
20
|
-
export declare
|
|
21
|
-
Unknown
|
|
22
|
-
ThreeFr
|
|
23
|
-
ThreeG2
|
|
24
|
-
ThreeGp
|
|
25
|
-
A
|
|
26
|
-
Aai
|
|
27
|
-
Ai
|
|
28
|
-
APng
|
|
29
|
-
Art
|
|
30
|
-
Arw
|
|
31
|
-
Ashlar
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
20
|
+
export declare const MagickFormat: {
|
|
21
|
+
readonly Unknown: "UNKNOWN";
|
|
22
|
+
readonly ThreeFr: "3FR";
|
|
23
|
+
readonly ThreeG2: "3G2";
|
|
24
|
+
readonly ThreeGp: "3GP";
|
|
25
|
+
readonly A: "A";
|
|
26
|
+
readonly Aai: "AAI";
|
|
27
|
+
readonly Ai: "AI";
|
|
28
|
+
readonly APng: "APNG";
|
|
29
|
+
readonly Art: "ART";
|
|
30
|
+
readonly Arw: "ARW";
|
|
31
|
+
readonly Ashlar: "ASHLAR";
|
|
32
|
+
readonly Avci: "AVCI";
|
|
33
|
+
readonly Avi: "AVI";
|
|
34
|
+
readonly Avif: "AVIF";
|
|
35
|
+
readonly Avs: "AVS";
|
|
36
|
+
readonly B: "B";
|
|
37
|
+
readonly Bayer: "BAYER";
|
|
38
|
+
readonly Bayera: "BAYERA";
|
|
39
|
+
readonly Bgr: "BGR";
|
|
40
|
+
readonly Bgra: "BGRA";
|
|
41
|
+
readonly Bgro: "BGRO";
|
|
42
|
+
readonly Bmp: "BMP";
|
|
43
|
+
readonly Bmp2: "BMP2";
|
|
44
|
+
readonly Bmp3: "BMP3";
|
|
45
|
+
readonly Brf: "BRF";
|
|
46
|
+
readonly C: "C";
|
|
47
|
+
readonly Cal: "CAL";
|
|
48
|
+
readonly Cals: "CALS";
|
|
49
|
+
readonly Canvas: "CANVAS";
|
|
50
|
+
readonly Caption: "CAPTION";
|
|
51
|
+
readonly Cin: "CIN";
|
|
52
|
+
readonly Cip: "CIP";
|
|
53
|
+
readonly Clip: "CLIP";
|
|
54
|
+
readonly Cmyk: "CMYK";
|
|
55
|
+
readonly Cmyka: "CMYKA";
|
|
56
|
+
readonly Cr2: "CR2";
|
|
57
|
+
readonly Cr3: "CR3";
|
|
58
|
+
readonly Crw: "CRW";
|
|
59
|
+
readonly Cube: "CUBE";
|
|
60
|
+
readonly Cur: "CUR";
|
|
61
|
+
readonly Cut: "CUT";
|
|
62
|
+
readonly Data: "DATA";
|
|
63
|
+
readonly Dcm: "DCM";
|
|
64
|
+
readonly Dcr: "DCR";
|
|
65
|
+
readonly Dcraw: "DCRAW";
|
|
66
|
+
readonly Dcx: "DCX";
|
|
67
|
+
readonly Dds: "DDS";
|
|
68
|
+
readonly Dfont: "DFONT";
|
|
69
|
+
readonly Dng: "DNG";
|
|
70
|
+
readonly Dpx: "DPX";
|
|
71
|
+
readonly Dxt1: "DXT1";
|
|
72
|
+
readonly Dxt5: "DXT5";
|
|
73
|
+
readonly Epdf: "EPDF";
|
|
74
|
+
readonly Epi: "EPI";
|
|
75
|
+
readonly Eps: "EPS";
|
|
76
|
+
readonly Eps2: "EPS2";
|
|
77
|
+
readonly Eps3: "EPS3";
|
|
78
|
+
readonly Epsf: "EPSF";
|
|
79
|
+
readonly Epsi: "EPSI";
|
|
80
|
+
readonly Ept: "EPT";
|
|
81
|
+
readonly Ept2: "EPT2";
|
|
82
|
+
readonly Ept3: "EPT3";
|
|
83
|
+
readonly Erf: "ERF";
|
|
84
|
+
readonly Exr: "EXR";
|
|
85
|
+
readonly Farbfeld: "FARBFELD";
|
|
86
|
+
readonly Fax: "FAX";
|
|
87
|
+
readonly Ff: "FF";
|
|
88
|
+
readonly Fff: "FFF";
|
|
89
|
+
readonly File: "FILE";
|
|
90
|
+
readonly Fits: "FITS";
|
|
91
|
+
readonly Fl32: "FL32";
|
|
92
|
+
readonly Flv: "FLV";
|
|
93
|
+
readonly Fractal: "FRACTAL";
|
|
94
|
+
readonly Ftp: "FTP";
|
|
95
|
+
readonly Fts: "FTS";
|
|
96
|
+
readonly Ftxt: "FTXT";
|
|
97
|
+
readonly G: "G";
|
|
98
|
+
readonly G3: "G3";
|
|
99
|
+
readonly G4: "G4";
|
|
100
|
+
readonly Gif: "GIF";
|
|
101
|
+
readonly Gif87: "GIF87";
|
|
102
|
+
readonly Gradient: "GRADIENT";
|
|
103
|
+
readonly Gray: "GRAY";
|
|
104
|
+
readonly Graya: "GRAYA";
|
|
105
|
+
readonly Group4: "GROUP4";
|
|
106
|
+
readonly Hald: "HALD";
|
|
107
|
+
readonly Hdr: "HDR";
|
|
108
|
+
readonly Heic: "HEIC";
|
|
109
|
+
readonly Heif: "HEIF";
|
|
110
|
+
readonly Histogram: "HISTOGRAM";
|
|
111
|
+
readonly Hrz: "HRZ";
|
|
112
|
+
readonly Htm: "HTM";
|
|
113
|
+
readonly Html: "HTML";
|
|
114
|
+
readonly Http: "HTTP";
|
|
115
|
+
readonly Https: "HTTPS";
|
|
116
|
+
readonly Icb: "ICB";
|
|
117
|
+
readonly Ico: "ICO";
|
|
118
|
+
readonly Icon: "ICON";
|
|
119
|
+
readonly Iiq: "IIQ";
|
|
120
|
+
readonly Info: "INFO";
|
|
121
|
+
readonly Inline: "INLINE";
|
|
122
|
+
readonly Ipl: "IPL";
|
|
123
|
+
readonly Isobrl: "ISOBRL";
|
|
124
|
+
readonly Isobrl6: "ISOBRL6";
|
|
125
|
+
readonly J2c: "J2C";
|
|
126
|
+
readonly J2k: "J2K";
|
|
127
|
+
readonly Jng: "JNG";
|
|
128
|
+
readonly Jnx: "JNX";
|
|
129
|
+
readonly Jp2: "JP2";
|
|
130
|
+
readonly Jpc: "JPC";
|
|
131
|
+
readonly Jpe: "JPE";
|
|
132
|
+
readonly Jpeg: "JPEG";
|
|
133
|
+
readonly Jpg: "JPG";
|
|
134
|
+
readonly Jpm: "JPM";
|
|
135
|
+
readonly Jps: "JPS";
|
|
136
|
+
readonly Jpt: "JPT";
|
|
137
|
+
readonly Json: "JSON";
|
|
138
|
+
readonly Jxl: "JXL";
|
|
139
|
+
readonly K: "K";
|
|
140
|
+
readonly K25: "K25";
|
|
141
|
+
readonly Kdc: "KDC";
|
|
142
|
+
readonly Label: "LABEL";
|
|
143
|
+
readonly M: "M";
|
|
144
|
+
readonly M2v: "M2V";
|
|
145
|
+
readonly M4v: "M4V";
|
|
146
|
+
readonly Mac: "MAC";
|
|
147
|
+
readonly Map: "MAP";
|
|
148
|
+
readonly Mask: "MASK";
|
|
149
|
+
readonly Mat: "MAT";
|
|
150
|
+
readonly Matte: "MATTE";
|
|
151
|
+
readonly Mdc: "MDC";
|
|
152
|
+
readonly Mef: "MEF";
|
|
153
|
+
readonly Miff: "MIFF";
|
|
154
|
+
readonly Mkv: "MKV";
|
|
155
|
+
readonly Mng: "MNG";
|
|
156
|
+
readonly Mono: "MONO";
|
|
157
|
+
readonly Mov: "MOV";
|
|
158
|
+
readonly Mos: "MOS";
|
|
159
|
+
readonly Mp4: "MP4";
|
|
160
|
+
readonly Mpc: "MPC";
|
|
161
|
+
readonly Mpeg: "MPEG";
|
|
162
|
+
readonly Mpg: "MPG";
|
|
163
|
+
readonly Mpo: "MPO";
|
|
164
|
+
readonly Mrw: "MRW";
|
|
165
|
+
readonly Msl: "MSL";
|
|
166
|
+
readonly Msvg: "MSVG";
|
|
167
|
+
readonly Mtv: "MTV";
|
|
168
|
+
readonly Mvg: "MVG";
|
|
169
|
+
readonly Nef: "NEF";
|
|
170
|
+
readonly Nrw: "NRW";
|
|
171
|
+
readonly Null: "NULL";
|
|
172
|
+
readonly O: "O";
|
|
173
|
+
readonly Ora: "ORA";
|
|
174
|
+
readonly Orf: "ORF";
|
|
175
|
+
readonly Otb: "OTB";
|
|
176
|
+
readonly Otf: "OTF";
|
|
177
|
+
readonly Pal: "PAL";
|
|
178
|
+
readonly Palm: "PALM";
|
|
179
|
+
readonly Pam: "PAM";
|
|
180
|
+
readonly Pango: "PANGO";
|
|
181
|
+
readonly Pattern: "PATTERN";
|
|
182
|
+
readonly Pbm: "PBM";
|
|
183
|
+
readonly Pcd: "PCD";
|
|
184
|
+
readonly Pcds: "PCDS";
|
|
185
|
+
readonly Pcl: "PCL";
|
|
186
|
+
readonly Pct: "PCT";
|
|
187
|
+
readonly Pcx: "PCX";
|
|
188
|
+
readonly Pdb: "PDB";
|
|
189
|
+
readonly Pdf: "PDF";
|
|
190
|
+
readonly Pdfa: "PDFA";
|
|
191
|
+
readonly Pef: "PEF";
|
|
192
|
+
readonly Pes: "PES";
|
|
193
|
+
readonly Pfa: "PFA";
|
|
194
|
+
readonly Pfb: "PFB";
|
|
195
|
+
readonly Pfm: "PFM";
|
|
196
|
+
readonly Pgm: "PGM";
|
|
197
|
+
readonly Pgx: "PGX";
|
|
198
|
+
readonly Phm: "PHM";
|
|
199
|
+
readonly Picon: "PICON";
|
|
200
|
+
readonly Pict: "PICT";
|
|
201
|
+
readonly Pix: "PIX";
|
|
202
|
+
readonly Pjpeg: "PJPEG";
|
|
203
|
+
readonly Plasma: "PLASMA";
|
|
204
|
+
readonly Png: "PNG";
|
|
205
|
+
readonly Png00: "PNG00";
|
|
206
|
+
readonly Png24: "PNG24";
|
|
207
|
+
readonly Png32: "PNG32";
|
|
208
|
+
readonly Png48: "PNG48";
|
|
209
|
+
readonly Png64: "PNG64";
|
|
210
|
+
readonly Png8: "PNG8";
|
|
211
|
+
readonly Pnm: "PNM";
|
|
212
|
+
readonly Pocketmod: "POCKETMOD";
|
|
213
|
+
readonly Ppm: "PPM";
|
|
214
|
+
readonly Ps: "PS";
|
|
215
|
+
readonly Ps2: "PS2";
|
|
216
|
+
readonly Ps3: "PS3";
|
|
217
|
+
readonly Psb: "PSB";
|
|
218
|
+
readonly Psd: "PSD";
|
|
219
|
+
readonly Ptif: "PTIF";
|
|
220
|
+
readonly Pwp: "PWP";
|
|
221
|
+
readonly Qoi: "QOI";
|
|
222
|
+
readonly R: "R";
|
|
223
|
+
readonly RadialGradient: "RADIAL-GRADIENT";
|
|
224
|
+
readonly Raf: "RAF";
|
|
225
|
+
readonly Ras: "RAS";
|
|
226
|
+
readonly Raw: "RAW";
|
|
227
|
+
readonly Rgb: "RGB";
|
|
228
|
+
readonly Rgb565: "RGB565";
|
|
229
|
+
readonly Rgba: "RGBA";
|
|
230
|
+
readonly Rgbo: "RGBO";
|
|
231
|
+
readonly Rgf: "RGF";
|
|
232
|
+
readonly Rla: "RLA";
|
|
233
|
+
readonly Rle: "RLE";
|
|
234
|
+
readonly Rmf: "RMF";
|
|
235
|
+
readonly Rw2: "RW2";
|
|
236
|
+
readonly Rwl: "RWL";
|
|
237
|
+
readonly Scr: "SCR";
|
|
238
|
+
readonly Screenshot: "SCREENSHOT";
|
|
239
|
+
readonly Sct: "SCT";
|
|
240
|
+
readonly Sfw: "SFW";
|
|
241
|
+
readonly Sgi: "SGI";
|
|
242
|
+
readonly Shtml: "SHTML";
|
|
243
|
+
readonly Six: "SIX";
|
|
244
|
+
readonly Sixel: "SIXEL";
|
|
245
|
+
readonly SparseColor: "SPARSE-COLOR";
|
|
246
|
+
readonly Sr2: "SR2";
|
|
247
|
+
readonly Srf: "SRF";
|
|
248
|
+
readonly Srw: "SRW";
|
|
249
|
+
readonly Stegano: "STEGANO";
|
|
250
|
+
readonly Sti: "STI";
|
|
251
|
+
readonly StrImg: "STRIMG";
|
|
252
|
+
readonly Sun: "SUN";
|
|
253
|
+
readonly Svg: "SVG";
|
|
254
|
+
readonly Svgz: "SVGZ";
|
|
255
|
+
readonly Text: "TEXT";
|
|
256
|
+
readonly Tga: "TGA";
|
|
257
|
+
readonly Thumbnail: "THUMBNAIL";
|
|
258
|
+
readonly Tif: "TIF";
|
|
259
|
+
readonly Tiff: "TIFF";
|
|
260
|
+
readonly Tiff64: "TIFF64";
|
|
261
|
+
readonly Tile: "TILE";
|
|
262
|
+
readonly Tim: "TIM";
|
|
263
|
+
readonly Tm2: "TM2";
|
|
264
|
+
readonly Ttc: "TTC";
|
|
265
|
+
readonly Ttf: "TTF";
|
|
266
|
+
readonly Txt: "TXT";
|
|
267
|
+
readonly Ubrl: "UBRL";
|
|
268
|
+
readonly Ubrl6: "UBRL6";
|
|
269
|
+
readonly Uil: "UIL";
|
|
270
|
+
readonly Uyvy: "UYVY";
|
|
271
|
+
readonly Vda: "VDA";
|
|
272
|
+
readonly Vicar: "VICAR";
|
|
273
|
+
readonly Vid: "VID";
|
|
274
|
+
readonly Viff: "VIFF";
|
|
275
|
+
readonly Vips: "VIPS";
|
|
276
|
+
readonly Vst: "VST";
|
|
277
|
+
readonly WebM: "WEBM";
|
|
278
|
+
readonly WebP: "WEBP";
|
|
279
|
+
readonly Wbmp: "WBMP";
|
|
280
|
+
readonly Wmv: "WMV";
|
|
281
|
+
readonly Wpg: "WPG";
|
|
282
|
+
readonly X3f: "X3F";
|
|
283
|
+
readonly Xbm: "XBM";
|
|
284
|
+
readonly Xc: "XC";
|
|
285
|
+
readonly Xcf: "XCF";
|
|
286
|
+
readonly Xpm: "XPM";
|
|
287
|
+
readonly Xps: "XPS";
|
|
288
|
+
readonly Xv: "XV";
|
|
289
|
+
readonly Y: "Y";
|
|
290
|
+
readonly Yaml: "YAML";
|
|
291
|
+
readonly Ycbcr: "YCBCR";
|
|
292
|
+
readonly Ycbcra: "YCBCRA";
|
|
293
|
+
readonly Yuv: "YUV";
|
|
294
|
+
};
|
|
295
|
+
export type MagickFormat = typeof MagickFormat[keyof typeof MagickFormat];
|
|
294
296
|
export interface IDefine {
|
|
295
297
|
readonly format: MagickFormat;
|
|
296
298
|
readonly name: string;
|
|
@@ -317,19 +319,20 @@ export declare abstract class DefinesCreator implements IDefines {
|
|
|
317
319
|
export interface IDisposable {
|
|
318
320
|
dispose(): void;
|
|
319
321
|
}
|
|
320
|
-
export declare
|
|
321
|
-
Undefined
|
|
322
|
-
Forget
|
|
323
|
-
Northwest
|
|
324
|
-
North
|
|
325
|
-
Northeast
|
|
326
|
-
West
|
|
327
|
-
Center
|
|
328
|
-
East
|
|
329
|
-
Southwest
|
|
330
|
-
South
|
|
331
|
-
Southeast
|
|
332
|
-
}
|
|
322
|
+
export declare const Gravity: {
|
|
323
|
+
readonly Undefined: 0;
|
|
324
|
+
readonly Forget: 0;
|
|
325
|
+
readonly Northwest: 1;
|
|
326
|
+
readonly North: 2;
|
|
327
|
+
readonly Northeast: 3;
|
|
328
|
+
readonly West: 4;
|
|
329
|
+
readonly Center: 5;
|
|
330
|
+
readonly East: 6;
|
|
331
|
+
readonly Southwest: 7;
|
|
332
|
+
readonly South: 8;
|
|
333
|
+
readonly Southeast: 9;
|
|
334
|
+
};
|
|
335
|
+
export type Gravity = typeof Gravity[keyof typeof Gravity];
|
|
333
336
|
export interface IMagickColor {
|
|
334
337
|
r: number;
|
|
335
338
|
g: number;
|
|
@@ -363,27 +366,30 @@ export declare abstract class NativeInstance {
|
|
|
363
366
|
dispose(): void;
|
|
364
367
|
private disposeInstance;
|
|
365
368
|
}
|
|
366
|
-
export declare
|
|
367
|
-
Undefined
|
|
368
|
-
Point
|
|
369
|
-
Replace
|
|
370
|
-
Floodfill
|
|
371
|
-
FillToBorder
|
|
372
|
-
Reset
|
|
373
|
-
}
|
|
374
|
-
export
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
369
|
+
export declare const PaintMethod: {
|
|
370
|
+
readonly Undefined: 0;
|
|
371
|
+
readonly Point: 1;
|
|
372
|
+
readonly Replace: 2;
|
|
373
|
+
readonly Floodfill: 3;
|
|
374
|
+
readonly FillToBorder: 4;
|
|
375
|
+
readonly Reset: 5;
|
|
376
|
+
};
|
|
377
|
+
export type PaintMethod = typeof PaintMethod[keyof typeof PaintMethod];
|
|
378
|
+
export declare const TextAlignment: {
|
|
379
|
+
readonly Undefined: 0;
|
|
380
|
+
readonly Left: 1;
|
|
381
|
+
readonly Center: 2;
|
|
382
|
+
readonly Right: 3;
|
|
383
|
+
};
|
|
384
|
+
export type TextAlignment = typeof TextAlignment[keyof typeof TextAlignment];
|
|
385
|
+
export declare const TextDecoration: {
|
|
386
|
+
readonly Undefined: 0;
|
|
387
|
+
readonly None: 1;
|
|
388
|
+
readonly Underline: 2;
|
|
389
|
+
readonly Overline: 3;
|
|
390
|
+
readonly LineThrough: 4;
|
|
391
|
+
};
|
|
392
|
+
export type TextDecoration = typeof TextDecoration[keyof typeof TextDecoration];
|
|
387
393
|
export interface IDrawingWand extends IDisposable {
|
|
388
394
|
color(x: number, y: number, paintMethod: number): void;
|
|
389
395
|
draw(drawables: IDrawable[]): void;
|
|
@@ -451,6 +457,7 @@ export declare class Percentage {
|
|
|
451
457
|
constructor(value: number);
|
|
452
458
|
multiply(value: number): number;
|
|
453
459
|
toDouble(): number;
|
|
460
|
+
toString(): string;
|
|
454
461
|
}
|
|
455
462
|
export declare class DrawableFillOpacity implements IDrawable {
|
|
456
463
|
private readonly _opacity;
|
|
@@ -558,160 +565,166 @@ export declare class DrawableText implements IDrawable {
|
|
|
558
565
|
constructor(x: number, y: number, value: string);
|
|
559
566
|
draw(wand: IDrawingWand): void;
|
|
560
567
|
}
|
|
561
|
-
declare
|
|
562
|
-
Undefined
|
|
563
|
-
Activate
|
|
564
|
-
Associate
|
|
565
|
-
Background
|
|
566
|
-
Copy
|
|
567
|
-
Deactivate
|
|
568
|
-
Discrete
|
|
569
|
-
Disassociate
|
|
570
|
-
Extract
|
|
571
|
-
Off
|
|
572
|
-
On
|
|
573
|
-
Opaque
|
|
574
|
-
Remove
|
|
575
|
-
Set
|
|
576
|
-
Shape
|
|
577
|
-
Transparent
|
|
578
|
-
OffIfOpaque
|
|
579
|
-
}
|
|
580
|
-
export
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
568
|
+
export declare const AlphaAction: {
|
|
569
|
+
readonly Undefined: 0;
|
|
570
|
+
readonly Activate: 1;
|
|
571
|
+
readonly Associate: 2;
|
|
572
|
+
readonly Background: 3;
|
|
573
|
+
readonly Copy: 4;
|
|
574
|
+
readonly Deactivate: 5;
|
|
575
|
+
readonly Discrete: 6;
|
|
576
|
+
readonly Disassociate: 7;
|
|
577
|
+
readonly Extract: 8;
|
|
578
|
+
readonly Off: 9;
|
|
579
|
+
readonly On: 10;
|
|
580
|
+
readonly Opaque: 11;
|
|
581
|
+
readonly Remove: 12;
|
|
582
|
+
readonly Set: 13;
|
|
583
|
+
readonly Shape: 14;
|
|
584
|
+
readonly Transparent: 15;
|
|
585
|
+
readonly OffIfOpaque: 16;
|
|
586
|
+
};
|
|
587
|
+
export type AlphaAction = typeof AlphaAction[keyof typeof AlphaAction];
|
|
588
|
+
export declare const Channels: {
|
|
589
|
+
readonly Undefined: 0;
|
|
590
|
+
readonly Red: 1;
|
|
591
|
+
readonly Gray: 1;
|
|
592
|
+
readonly Cyan: 1;
|
|
593
|
+
readonly Green: 2;
|
|
594
|
+
readonly Magenta: 2;
|
|
595
|
+
readonly Blue: 4;
|
|
596
|
+
readonly Yellow: 4;
|
|
597
|
+
readonly Black: 8;
|
|
598
|
+
readonly Alpha: 16;
|
|
599
|
+
readonly Opacity: 16;
|
|
600
|
+
readonly Index: 32;
|
|
601
|
+
readonly Composite: 31;
|
|
602
|
+
readonly TrueAlpha: 256;
|
|
603
|
+
readonly RGB: number;
|
|
604
|
+
readonly CMYK: number;
|
|
605
|
+
readonly CMYKA: number;
|
|
606
|
+
readonly Meta0: number;
|
|
607
|
+
readonly Meta1: number;
|
|
608
|
+
readonly Meta2: number;
|
|
609
|
+
readonly Meta3: number;
|
|
610
|
+
readonly Meta4: number;
|
|
611
|
+
readonly Meta5: number;
|
|
612
|
+
readonly Meta6: number;
|
|
613
|
+
readonly Meta7: number;
|
|
614
|
+
readonly Meta8: number;
|
|
615
|
+
readonly Meta9: number;
|
|
616
|
+
readonly Meta10: number;
|
|
617
|
+
readonly Meta11: number;
|
|
618
|
+
readonly Meta12: number;
|
|
619
|
+
readonly Meta13: number;
|
|
620
|
+
readonly Meta14: number;
|
|
621
|
+
readonly Meta15: number;
|
|
622
|
+
readonly Meta16: number;
|
|
623
|
+
readonly Meta17: number;
|
|
624
|
+
readonly Meta18: number;
|
|
625
|
+
readonly Meta19: number;
|
|
626
|
+
readonly Meta20: number;
|
|
627
|
+
readonly Meta21: number;
|
|
628
|
+
readonly All: 134217727;
|
|
629
|
+
};
|
|
630
|
+
export type Channels = typeof Channels[keyof typeof Channels];
|
|
631
|
+
export declare const ColorSpace: {
|
|
632
|
+
readonly Undefined: 0;
|
|
633
|
+
readonly CMY: 1;
|
|
634
|
+
readonly CMYK: 2;
|
|
635
|
+
readonly Gray: 3;
|
|
636
|
+
readonly HCL: 4;
|
|
637
|
+
readonly HCLp: 5;
|
|
638
|
+
readonly HSB: 6;
|
|
639
|
+
readonly HSI: 7;
|
|
640
|
+
readonly HSL: 8;
|
|
641
|
+
readonly HSV: 9;
|
|
642
|
+
readonly HWB: 10;
|
|
643
|
+
readonly Lab: 11;
|
|
644
|
+
readonly LCH: 12;
|
|
645
|
+
readonly LCHab: 13;
|
|
646
|
+
readonly LCHuv: 14;
|
|
647
|
+
readonly Log: 15;
|
|
648
|
+
readonly LMS: 16;
|
|
649
|
+
readonly Luv: 17;
|
|
650
|
+
readonly OHTA: 18;
|
|
651
|
+
readonly Rec601YCbCr: 19;
|
|
652
|
+
readonly Rec709YCbCr: 20;
|
|
653
|
+
readonly RGB: 21;
|
|
654
|
+
readonly scRGB: 22;
|
|
655
|
+
readonly sRGB: 23;
|
|
656
|
+
readonly Transparent: 24;
|
|
657
|
+
readonly XyY: 25;
|
|
658
|
+
readonly XYZ: 26;
|
|
659
|
+
readonly YCbCr: 27;
|
|
660
|
+
readonly YCC: 28;
|
|
661
|
+
readonly YDbDr: 29;
|
|
662
|
+
readonly YIQ: 30;
|
|
663
|
+
readonly YPbPr: 31;
|
|
664
|
+
readonly YUV: 32;
|
|
665
|
+
readonly LinearGray: 33;
|
|
666
|
+
readonly Jzazbz: 34;
|
|
667
|
+
readonly DisplayP3: 35;
|
|
668
|
+
readonly Adobe98: 36;
|
|
669
|
+
readonly ProPhoto: 37;
|
|
670
|
+
readonly Oklab: 38;
|
|
671
|
+
readonly Oklch: 39;
|
|
672
|
+
readonly CAT02LMSC: 40;
|
|
673
|
+
};
|
|
674
|
+
export type ColorSpace = typeof ColorSpace[keyof typeof ColorSpace];
|
|
675
|
+
export declare const ComplexOperator: {
|
|
676
|
+
readonly Undefined: 0;
|
|
677
|
+
readonly Add: 1;
|
|
678
|
+
readonly Conjugate: 2;
|
|
679
|
+
readonly Divide: 3;
|
|
680
|
+
readonly MagnitudePhase: 4;
|
|
681
|
+
readonly Multiply: 5;
|
|
682
|
+
readonly RealImaginary: 6;
|
|
683
|
+
readonly Subtract: 7;
|
|
684
|
+
};
|
|
685
|
+
export type ComplexOperator = typeof ComplexOperator[keyof typeof ComplexOperator];
|
|
674
686
|
export declare class ComplexSettings {
|
|
675
687
|
constructor(complexOperator: ComplexOperator);
|
|
676
688
|
readonly complexOperator: ComplexOperator;
|
|
677
689
|
signalToNoiseRatio?: number;
|
|
678
690
|
}
|
|
679
|
-
export declare
|
|
680
|
-
Undefined
|
|
681
|
-
Abs
|
|
682
|
-
Add
|
|
683
|
-
AddModulus
|
|
684
|
-
And
|
|
685
|
-
Cosine
|
|
686
|
-
Divide
|
|
687
|
-
Exponential
|
|
688
|
-
GaussianNoise
|
|
689
|
-
ImpulseNoise
|
|
690
|
-
LaplacianNoise
|
|
691
|
-
LeftShift
|
|
692
|
-
Log
|
|
693
|
-
Max
|
|
694
|
-
Mean
|
|
695
|
-
Median
|
|
696
|
-
Min
|
|
697
|
-
MultiplicativeNoise
|
|
698
|
-
Multiply
|
|
699
|
-
Or
|
|
700
|
-
PoissonNoise
|
|
701
|
-
Pow
|
|
702
|
-
RightShift
|
|
703
|
-
RootMeanSquare
|
|
704
|
-
Set
|
|
705
|
-
Sine
|
|
706
|
-
Subtract
|
|
707
|
-
Sum
|
|
708
|
-
ThresholdBlack
|
|
709
|
-
Threshold
|
|
710
|
-
ThresholdWhite
|
|
711
|
-
UniformNoise
|
|
712
|
-
Xor
|
|
713
|
-
InverseLog
|
|
714
|
-
}
|
|
691
|
+
export declare const EvaluateOperator: {
|
|
692
|
+
readonly Undefined: 0;
|
|
693
|
+
readonly Abs: 1;
|
|
694
|
+
readonly Add: 2;
|
|
695
|
+
readonly AddModulus: 3;
|
|
696
|
+
readonly And: 4;
|
|
697
|
+
readonly Cosine: 5;
|
|
698
|
+
readonly Divide: 6;
|
|
699
|
+
readonly Exponential: 7;
|
|
700
|
+
readonly GaussianNoise: 8;
|
|
701
|
+
readonly ImpulseNoise: 9;
|
|
702
|
+
readonly LaplacianNoise: 10;
|
|
703
|
+
readonly LeftShift: 11;
|
|
704
|
+
readonly Log: 12;
|
|
705
|
+
readonly Max: 13;
|
|
706
|
+
readonly Mean: 14;
|
|
707
|
+
readonly Median: 15;
|
|
708
|
+
readonly Min: 16;
|
|
709
|
+
readonly MultiplicativeNoise: 17;
|
|
710
|
+
readonly Multiply: 18;
|
|
711
|
+
readonly Or: 19;
|
|
712
|
+
readonly PoissonNoise: 20;
|
|
713
|
+
readonly Pow: 21;
|
|
714
|
+
readonly RightShift: 22;
|
|
715
|
+
readonly RootMeanSquare: 23;
|
|
716
|
+
readonly Set: 24;
|
|
717
|
+
readonly Sine: 25;
|
|
718
|
+
readonly Subtract: 26;
|
|
719
|
+
readonly Sum: 27;
|
|
720
|
+
readonly ThresholdBlack: 28;
|
|
721
|
+
readonly Threshold: 29;
|
|
722
|
+
readonly ThresholdWhite: 30;
|
|
723
|
+
readonly UniformNoise: 31;
|
|
724
|
+
readonly Xor: 32;
|
|
725
|
+
readonly InverseLog: 33;
|
|
726
|
+
};
|
|
727
|
+
export type EvaluateOperator = typeof EvaluateOperator[keyof typeof EvaluateOperator];
|
|
715
728
|
export declare class MagickErrorInfo {
|
|
716
729
|
private constructor();
|
|
717
730
|
readonly meanErrorPerPixel: number;
|
|
@@ -776,55 +789,58 @@ export declare class MagickGeometry implements IMagickGeometry {
|
|
|
776
789
|
private isNumber;
|
|
777
790
|
private hasFlag;
|
|
778
791
|
}
|
|
779
|
-
export declare
|
|
780
|
-
Undefined
|
|
781
|
-
Bilevel
|
|
782
|
-
Grayscale
|
|
783
|
-
GrayscaleAlpha
|
|
784
|
-
Palette
|
|
785
|
-
PaletteAlpha
|
|
786
|
-
TrueColor
|
|
787
|
-
TrueColorAlpha
|
|
788
|
-
ColorSeparation
|
|
789
|
-
ColorSeparationAlpha
|
|
790
|
-
Optimize
|
|
791
|
-
PaletteBilevelAlpha
|
|
792
|
-
}
|
|
793
|
-
export
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
792
|
+
export declare const ColorType: {
|
|
793
|
+
readonly Undefined: 0;
|
|
794
|
+
readonly Bilevel: 1;
|
|
795
|
+
readonly Grayscale: 2;
|
|
796
|
+
readonly GrayscaleAlpha: 3;
|
|
797
|
+
readonly Palette: 4;
|
|
798
|
+
readonly PaletteAlpha: 5;
|
|
799
|
+
readonly TrueColor: 6;
|
|
800
|
+
readonly TrueColorAlpha: 7;
|
|
801
|
+
readonly ColorSeparation: 8;
|
|
802
|
+
readonly ColorSeparationAlpha: 9;
|
|
803
|
+
readonly Optimize: 10;
|
|
804
|
+
readonly PaletteBilevelAlpha: 11;
|
|
805
|
+
};
|
|
806
|
+
export type ColorType = typeof ColorType[keyof typeof ColorType];
|
|
807
|
+
export declare const CompressionMethod: {
|
|
808
|
+
readonly Undefined: 0;
|
|
809
|
+
readonly B44A: 1;
|
|
810
|
+
readonly B44: 2;
|
|
811
|
+
readonly BZip: 3;
|
|
812
|
+
readonly DXT1: 4;
|
|
813
|
+
readonly DXT3: 5;
|
|
814
|
+
readonly DXT5: 6;
|
|
815
|
+
readonly Fax: 7;
|
|
816
|
+
readonly Group4: 8;
|
|
817
|
+
readonly JBIG1: 9;
|
|
818
|
+
readonly JBIG2: 10;
|
|
819
|
+
readonly JPEG2000: 11;
|
|
820
|
+
readonly JPEG: 12;
|
|
821
|
+
readonly LosslessJPEG: 13;
|
|
822
|
+
readonly LZMA: 14;
|
|
823
|
+
readonly LZW: 15;
|
|
824
|
+
readonly NoCompression: 16;
|
|
825
|
+
readonly Piz: 17;
|
|
826
|
+
readonly Pxr24: 18;
|
|
827
|
+
readonly RLE: 19;
|
|
828
|
+
readonly Zip: 20;
|
|
829
|
+
readonly ZipS: 21;
|
|
830
|
+
readonly Zstd: 22;
|
|
831
|
+
readonly WebP: 23;
|
|
832
|
+
readonly DWAA: 24;
|
|
833
|
+
readonly DWAB: 25;
|
|
834
|
+
readonly BC7: 26;
|
|
835
|
+
readonly BC5: 27;
|
|
836
|
+
};
|
|
837
|
+
export type CompressionMethod = typeof CompressionMethod[keyof typeof CompressionMethod];
|
|
838
|
+
export declare const DensityUnit: {
|
|
839
|
+
readonly Undefined: 0;
|
|
840
|
+
readonly PixelsPerInch: 1;
|
|
841
|
+
readonly PixelsPerCentimeter: 2;
|
|
842
|
+
};
|
|
843
|
+
export type DensityUnit = typeof DensityUnit[keyof typeof DensityUnit];
|
|
828
844
|
export declare class Density {
|
|
829
845
|
constructor(xy: number);
|
|
830
846
|
constructor(xy: number, unit: DensityUnit);
|
|
@@ -835,21 +851,23 @@ export declare class Density {
|
|
|
835
851
|
toString(units?: DensityUnit): string;
|
|
836
852
|
private static toString;
|
|
837
853
|
}
|
|
838
|
-
export declare
|
|
839
|
-
Undefined
|
|
840
|
-
LSB
|
|
841
|
-
MSB
|
|
842
|
-
}
|
|
843
|
-
export
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
854
|
+
export declare const Endian: {
|
|
855
|
+
readonly Undefined: 0;
|
|
856
|
+
readonly LSB: 1;
|
|
857
|
+
readonly MSB: 2;
|
|
858
|
+
};
|
|
859
|
+
export type Endian = typeof Endian[keyof typeof Endian];
|
|
860
|
+
export declare const Interlace: {
|
|
861
|
+
readonly Undefined: 0;
|
|
862
|
+
readonly NoInterlace: 1;
|
|
863
|
+
readonly Line: 2;
|
|
864
|
+
readonly Plane: 3;
|
|
865
|
+
readonly Partition: 4;
|
|
866
|
+
readonly Gif: 5;
|
|
867
|
+
readonly Jpeg: 6;
|
|
868
|
+
readonly Png: 7;
|
|
869
|
+
};
|
|
870
|
+
export type Interlace = typeof Interlace[keyof typeof Interlace];
|
|
853
871
|
export declare class MagickSettings {
|
|
854
872
|
antiAlias?: boolean;
|
|
855
873
|
backgroundColor?: IMagickColor;
|
|
@@ -909,12 +927,13 @@ export declare class MontageSettings {
|
|
|
909
927
|
title?: string;
|
|
910
928
|
transparentColor?: IMagickColor;
|
|
911
929
|
}
|
|
912
|
-
export declare
|
|
913
|
-
Undefined
|
|
914
|
-
No
|
|
915
|
-
Riemersma
|
|
916
|
-
FloydSteinberg
|
|
917
|
-
}
|
|
930
|
+
export declare const DitherMethod: {
|
|
931
|
+
readonly Undefined: 0;
|
|
932
|
+
readonly No: 1;
|
|
933
|
+
readonly Riemersma: 2;
|
|
934
|
+
readonly FloydSteinberg: 3;
|
|
935
|
+
};
|
|
936
|
+
export type DitherMethod = typeof DitherMethod[keyof typeof DitherMethod];
|
|
918
937
|
export declare class QuantizeSettings {
|
|
919
938
|
constructor();
|
|
920
939
|
colors: number;
|
|
@@ -1050,12 +1069,13 @@ export type ImageCallback<TReturnType> = (image: IMagickImage) => TReturnType |
|
|
|
1050
1069
|
export type AsyncImageCollectionCallback<TReturnType> = (images: IMagickImageCollection) => Promise<TReturnType>;
|
|
1051
1070
|
export type SyncImageCollectionCallback<TReturnType> = (images: IMagickImageCollection) => TReturnType;
|
|
1052
1071
|
export type ImageCollectionCallback<TReturnType> = (images: IMagickImageCollection) => TReturnType | Promise<TReturnType>;
|
|
1053
|
-
export declare
|
|
1054
|
-
Undefined
|
|
1055
|
-
Kapur
|
|
1056
|
-
OTSU
|
|
1057
|
-
Triangle
|
|
1058
|
-
}
|
|
1072
|
+
export declare const AutoThresholdMethod: {
|
|
1073
|
+
readonly Undefined: 0;
|
|
1074
|
+
readonly Kapur: 1;
|
|
1075
|
+
readonly OTSU: 2;
|
|
1076
|
+
readonly Triangle: 3;
|
|
1077
|
+
};
|
|
1078
|
+
export type AutoThresholdMethod = typeof AutoThresholdMethod[keyof typeof AutoThresholdMethod];
|
|
1059
1079
|
export declare class PrimaryInfo {
|
|
1060
1080
|
constructor(x: number, y: number, z: number);
|
|
1061
1081
|
readonly x: number;
|
|
@@ -1069,11 +1089,12 @@ export declare class ChromaticityInfo {
|
|
|
1069
1089
|
readonly blue: PrimaryInfo;
|
|
1070
1090
|
readonly white: PrimaryInfo;
|
|
1071
1091
|
}
|
|
1072
|
-
export declare
|
|
1073
|
-
Undefined
|
|
1074
|
-
Direct
|
|
1075
|
-
Pseudo
|
|
1076
|
-
}
|
|
1092
|
+
export declare const ClassType: {
|
|
1093
|
+
readonly Undefined: 0;
|
|
1094
|
+
readonly Direct: 1;
|
|
1095
|
+
readonly Pseudo: 2;
|
|
1096
|
+
};
|
|
1097
|
+
export type ClassType = typeof ClassType[keyof typeof ClassType];
|
|
1077
1098
|
export interface IImageProfile {
|
|
1078
1099
|
readonly name: string;
|
|
1079
1100
|
readonly data: Uint8Array;
|
|
@@ -1093,7 +1114,6 @@ export interface IColorProfile extends IImageProfile {
|
|
|
1093
1114
|
export declare class ColorProfile extends ImageProfile implements IColorProfile {
|
|
1094
1115
|
private _data?;
|
|
1095
1116
|
constructor(data: Uint8Array);
|
|
1096
|
-
constructor(name: string, data: Uint8Array);
|
|
1097
1117
|
get colorSpace(): ColorSpace;
|
|
1098
1118
|
get copyright(): string | null;
|
|
1099
1119
|
get description(): string | null;
|
|
@@ -1101,26 +1121,32 @@ export declare class ColorProfile extends ImageProfile implements IColorProfile
|
|
|
1101
1121
|
get model(): string | null;
|
|
1102
1122
|
private initialize;
|
|
1103
1123
|
}
|
|
1124
|
+
export declare const ColorTransformMode: {
|
|
1125
|
+
readonly HighRes: 0;
|
|
1126
|
+
readonly Quantum: 1;
|
|
1127
|
+
};
|
|
1128
|
+
export type ColorTransformMode = typeof ColorTransformMode[keyof typeof ColorTransformMode];
|
|
1104
1129
|
export declare class CompareResult {
|
|
1105
1130
|
private constructor();
|
|
1106
1131
|
readonly difference: IMagickImage;
|
|
1107
1132
|
readonly distortion: number;
|
|
1108
1133
|
}
|
|
1109
|
-
export declare
|
|
1110
|
-
Undefined
|
|
1111
|
-
Absolute
|
|
1112
|
-
Fuzz
|
|
1113
|
-
MeanAbsolute
|
|
1114
|
-
MeanErrorPerPixel
|
|
1115
|
-
MeanSquared
|
|
1116
|
-
NormalizedCrossCorrelation
|
|
1117
|
-
PeakAbsolute
|
|
1118
|
-
PeakSignalToNoiseRatio
|
|
1119
|
-
PerceptualHash
|
|
1120
|
-
RootMeanSquared
|
|
1121
|
-
StructuralSimilarity
|
|
1122
|
-
StructuralDissimilarity
|
|
1123
|
-
}
|
|
1134
|
+
export declare const ErrorMetric: {
|
|
1135
|
+
readonly Undefined: 0;
|
|
1136
|
+
readonly Absolute: 1;
|
|
1137
|
+
readonly Fuzz: 2;
|
|
1138
|
+
readonly MeanAbsolute: 3;
|
|
1139
|
+
readonly MeanErrorPerPixel: 4;
|
|
1140
|
+
readonly MeanSquared: 5;
|
|
1141
|
+
readonly NormalizedCrossCorrelation: 6;
|
|
1142
|
+
readonly PeakAbsolute: 7;
|
|
1143
|
+
readonly PeakSignalToNoiseRatio: 8;
|
|
1144
|
+
readonly PerceptualHash: 9;
|
|
1145
|
+
readonly RootMeanSquared: 10;
|
|
1146
|
+
readonly StructuralSimilarity: 11;
|
|
1147
|
+
readonly StructuralDissimilarity: 12;
|
|
1148
|
+
};
|
|
1149
|
+
export type ErrorMetric = typeof ErrorMetric[keyof typeof ErrorMetric];
|
|
1124
1150
|
export declare class CompareSettings {
|
|
1125
1151
|
constructor(metric: ErrorMetric);
|
|
1126
1152
|
readonly metric: ErrorMetric;
|
|
@@ -1128,90 +1154,91 @@ export declare class CompareSettings {
|
|
|
1128
1154
|
lowlightColor?: IMagickColor;
|
|
1129
1155
|
masklightColor?: IMagickColor;
|
|
1130
1156
|
}
|
|
1131
|
-
export declare
|
|
1132
|
-
Undefined
|
|
1133
|
-
Alpha
|
|
1134
|
-
Atop
|
|
1135
|
-
Blend
|
|
1136
|
-
Blur
|
|
1137
|
-
Bumpmap
|
|
1138
|
-
ChangeMask
|
|
1139
|
-
Clear
|
|
1140
|
-
ColorBurn
|
|
1141
|
-
ColorDodge
|
|
1142
|
-
Colorize
|
|
1143
|
-
CopyBlack
|
|
1144
|
-
CopyBlue
|
|
1145
|
-
Copy
|
|
1146
|
-
CopyCyan
|
|
1147
|
-
CopyGreen
|
|
1148
|
-
CopyMagenta
|
|
1149
|
-
CopyAlpha
|
|
1150
|
-
CopyRed
|
|
1151
|
-
CopyYellow
|
|
1152
|
-
Darken
|
|
1153
|
-
DarkenIntensity
|
|
1154
|
-
Difference
|
|
1155
|
-
Displace
|
|
1156
|
-
Dissolve
|
|
1157
|
-
Distort
|
|
1158
|
-
DivideDst
|
|
1159
|
-
DivideSrc
|
|
1160
|
-
DstAtop
|
|
1161
|
-
Dst
|
|
1162
|
-
DstIn
|
|
1163
|
-
DstOut
|
|
1164
|
-
DstOver
|
|
1165
|
-
Exclusion
|
|
1166
|
-
HardLight
|
|
1167
|
-
HardMix
|
|
1168
|
-
Hue
|
|
1169
|
-
In
|
|
1170
|
-
Intensity
|
|
1171
|
-
Lighten
|
|
1172
|
-
LightenIntensity
|
|
1173
|
-
LinearBurn
|
|
1174
|
-
LinearDodge
|
|
1175
|
-
LinearLight
|
|
1176
|
-
Luminize
|
|
1177
|
-
Mathematics
|
|
1178
|
-
MinusDst
|
|
1179
|
-
MinusSrc
|
|
1180
|
-
Modulate
|
|
1181
|
-
ModulusAdd
|
|
1182
|
-
ModulusSubtract
|
|
1183
|
-
Multiply
|
|
1184
|
-
No
|
|
1185
|
-
Out
|
|
1186
|
-
Over
|
|
1187
|
-
Overlay
|
|
1188
|
-
PegtopLight
|
|
1189
|
-
PinLight
|
|
1190
|
-
Plus
|
|
1191
|
-
Replace
|
|
1192
|
-
Saturate
|
|
1193
|
-
Screen
|
|
1194
|
-
SoftLight
|
|
1195
|
-
SrcAtop
|
|
1196
|
-
Src
|
|
1197
|
-
SrcIn
|
|
1198
|
-
SrcOut
|
|
1199
|
-
SrcOver
|
|
1200
|
-
Threshold
|
|
1201
|
-
VividLight
|
|
1202
|
-
Xor
|
|
1203
|
-
Stereo
|
|
1204
|
-
Freeze
|
|
1205
|
-
Interpolate
|
|
1206
|
-
Negate
|
|
1207
|
-
Reflect
|
|
1208
|
-
SoftBurn
|
|
1209
|
-
SoftDodge
|
|
1210
|
-
Stamp
|
|
1211
|
-
RMSE
|
|
1212
|
-
SaliencyBlend
|
|
1213
|
-
SeamlessBlend
|
|
1214
|
-
}
|
|
1157
|
+
export declare const CompositeOperator: {
|
|
1158
|
+
readonly Undefined: 0;
|
|
1159
|
+
readonly Alpha: 1;
|
|
1160
|
+
readonly Atop: 2;
|
|
1161
|
+
readonly Blend: 3;
|
|
1162
|
+
readonly Blur: 4;
|
|
1163
|
+
readonly Bumpmap: 5;
|
|
1164
|
+
readonly ChangeMask: 6;
|
|
1165
|
+
readonly Clear: 7;
|
|
1166
|
+
readonly ColorBurn: 8;
|
|
1167
|
+
readonly ColorDodge: 9;
|
|
1168
|
+
readonly Colorize: 10;
|
|
1169
|
+
readonly CopyBlack: 11;
|
|
1170
|
+
readonly CopyBlue: 12;
|
|
1171
|
+
readonly Copy: 13;
|
|
1172
|
+
readonly CopyCyan: 14;
|
|
1173
|
+
readonly CopyGreen: 15;
|
|
1174
|
+
readonly CopyMagenta: 16;
|
|
1175
|
+
readonly CopyAlpha: 17;
|
|
1176
|
+
readonly CopyRed: 18;
|
|
1177
|
+
readonly CopyYellow: 19;
|
|
1178
|
+
readonly Darken: 20;
|
|
1179
|
+
readonly DarkenIntensity: 21;
|
|
1180
|
+
readonly Difference: 22;
|
|
1181
|
+
readonly Displace: 23;
|
|
1182
|
+
readonly Dissolve: 24;
|
|
1183
|
+
readonly Distort: 25;
|
|
1184
|
+
readonly DivideDst: 26;
|
|
1185
|
+
readonly DivideSrc: 27;
|
|
1186
|
+
readonly DstAtop: 28;
|
|
1187
|
+
readonly Dst: 29;
|
|
1188
|
+
readonly DstIn: 30;
|
|
1189
|
+
readonly DstOut: 31;
|
|
1190
|
+
readonly DstOver: 32;
|
|
1191
|
+
readonly Exclusion: 33;
|
|
1192
|
+
readonly HardLight: 34;
|
|
1193
|
+
readonly HardMix: 35;
|
|
1194
|
+
readonly Hue: 36;
|
|
1195
|
+
readonly In: 37;
|
|
1196
|
+
readonly Intensity: 38;
|
|
1197
|
+
readonly Lighten: 39;
|
|
1198
|
+
readonly LightenIntensity: 40;
|
|
1199
|
+
readonly LinearBurn: 41;
|
|
1200
|
+
readonly LinearDodge: 42;
|
|
1201
|
+
readonly LinearLight: 43;
|
|
1202
|
+
readonly Luminize: 44;
|
|
1203
|
+
readonly Mathematics: 45;
|
|
1204
|
+
readonly MinusDst: 46;
|
|
1205
|
+
readonly MinusSrc: 47;
|
|
1206
|
+
readonly Modulate: 48;
|
|
1207
|
+
readonly ModulusAdd: 49;
|
|
1208
|
+
readonly ModulusSubtract: 50;
|
|
1209
|
+
readonly Multiply: 51;
|
|
1210
|
+
readonly No: 52;
|
|
1211
|
+
readonly Out: 53;
|
|
1212
|
+
readonly Over: 54;
|
|
1213
|
+
readonly Overlay: 55;
|
|
1214
|
+
readonly PegtopLight: 56;
|
|
1215
|
+
readonly PinLight: 57;
|
|
1216
|
+
readonly Plus: 58;
|
|
1217
|
+
readonly Replace: 59;
|
|
1218
|
+
readonly Saturate: 60;
|
|
1219
|
+
readonly Screen: 61;
|
|
1220
|
+
readonly SoftLight: 62;
|
|
1221
|
+
readonly SrcAtop: 63;
|
|
1222
|
+
readonly Src: 64;
|
|
1223
|
+
readonly SrcIn: 65;
|
|
1224
|
+
readonly SrcOut: 66;
|
|
1225
|
+
readonly SrcOver: 67;
|
|
1226
|
+
readonly Threshold: 68;
|
|
1227
|
+
readonly VividLight: 69;
|
|
1228
|
+
readonly Xor: 70;
|
|
1229
|
+
readonly Stereo: 71;
|
|
1230
|
+
readonly Freeze: 72;
|
|
1231
|
+
readonly Interpolate: 73;
|
|
1232
|
+
readonly Negate: 74;
|
|
1233
|
+
readonly Reflect: 75;
|
|
1234
|
+
readonly SoftBurn: 76;
|
|
1235
|
+
readonly SoftDodge: 77;
|
|
1236
|
+
readonly Stamp: 78;
|
|
1237
|
+
readonly RMSE: 79;
|
|
1238
|
+
readonly SaliencyBlend: 80;
|
|
1239
|
+
readonly SeamlessBlend: 81;
|
|
1240
|
+
};
|
|
1241
|
+
export type CompositeOperator = typeof CompositeOperator[keyof typeof CompositeOperator];
|
|
1215
1242
|
export declare class Point {
|
|
1216
1243
|
constructor(xy: number);
|
|
1217
1244
|
constructor(x: number, y: number);
|
|
@@ -1250,28 +1277,29 @@ export declare class ConnectedComponentsSettings {
|
|
|
1250
1277
|
perimeterThreshold?: Threshold;
|
|
1251
1278
|
constructor(connectivity: Connectivity);
|
|
1252
1279
|
}
|
|
1253
|
-
export declare
|
|
1254
|
-
Undefined
|
|
1255
|
-
Affine
|
|
1256
|
-
AffineProjection
|
|
1257
|
-
ScaleRotateTranslate
|
|
1258
|
-
Perspective
|
|
1259
|
-
PerspectiveProjection
|
|
1260
|
-
BilinearForward
|
|
1261
|
-
BilinearReverse
|
|
1262
|
-
Polynomial
|
|
1263
|
-
Arc
|
|
1264
|
-
Polar
|
|
1265
|
-
DePolar
|
|
1266
|
-
Cylinder2Plane
|
|
1267
|
-
Plane2Cylinder
|
|
1268
|
-
Barrel
|
|
1269
|
-
BarrelInverse
|
|
1270
|
-
Shepards
|
|
1271
|
-
Resize
|
|
1272
|
-
Sentinel
|
|
1273
|
-
RigidAffine
|
|
1274
|
-
}
|
|
1280
|
+
export declare const DistortMethod: {
|
|
1281
|
+
readonly Undefined: 0;
|
|
1282
|
+
readonly Affine: 1;
|
|
1283
|
+
readonly AffineProjection: 2;
|
|
1284
|
+
readonly ScaleRotateTranslate: 3;
|
|
1285
|
+
readonly Perspective: 4;
|
|
1286
|
+
readonly PerspectiveProjection: 5;
|
|
1287
|
+
readonly BilinearForward: 6;
|
|
1288
|
+
readonly BilinearReverse: 7;
|
|
1289
|
+
readonly Polynomial: 8;
|
|
1290
|
+
readonly Arc: 9;
|
|
1291
|
+
readonly Polar: 10;
|
|
1292
|
+
readonly DePolar: 11;
|
|
1293
|
+
readonly Cylinder2Plane: 12;
|
|
1294
|
+
readonly Plane2Cylinder: 13;
|
|
1295
|
+
readonly Barrel: 14;
|
|
1296
|
+
readonly BarrelInverse: 15;
|
|
1297
|
+
readonly Shepards: 16;
|
|
1298
|
+
readonly Resize: 17;
|
|
1299
|
+
readonly Sentinel: 18;
|
|
1300
|
+
readonly RigidAffine: 19;
|
|
1301
|
+
};
|
|
1302
|
+
export type DistortMethod = typeof DistortMethod[keyof typeof DistortMethod];
|
|
1275
1303
|
export declare class DistortSettings {
|
|
1276
1304
|
constructor(method: DistortMethod);
|
|
1277
1305
|
readonly method: DistortMethod;
|
|
@@ -1279,111 +1307,115 @@ export declare class DistortSettings {
|
|
|
1279
1307
|
scale?: number;
|
|
1280
1308
|
viewport?: IMagickGeometry;
|
|
1281
1309
|
}
|
|
1282
|
-
export declare
|
|
1283
|
-
Undefined
|
|
1284
|
-
Point
|
|
1285
|
-
Box
|
|
1286
|
-
Triangle
|
|
1287
|
-
Hermite
|
|
1288
|
-
Hann
|
|
1289
|
-
Hamming
|
|
1290
|
-
Blackman
|
|
1291
|
-
Gaussian
|
|
1292
|
-
Quadratic
|
|
1293
|
-
Cubic
|
|
1294
|
-
Catrom
|
|
1295
|
-
Mitchell
|
|
1296
|
-
Jinc
|
|
1297
|
-
Sinc
|
|
1298
|
-
SincFast
|
|
1299
|
-
Kaiser
|
|
1300
|
-
Welch
|
|
1301
|
-
Parzen
|
|
1302
|
-
Bohman
|
|
1303
|
-
Bartlett
|
|
1304
|
-
Lagrange
|
|
1305
|
-
Lanczos
|
|
1306
|
-
LanczosSharp
|
|
1307
|
-
Lanczos2
|
|
1308
|
-
Lanczos2Sharp
|
|
1309
|
-
Robidoux
|
|
1310
|
-
RobidouxSharp
|
|
1311
|
-
Cosine
|
|
1312
|
-
Spline
|
|
1313
|
-
LanczosRadius
|
|
1314
|
-
CubicSpline
|
|
1315
|
-
}
|
|
1316
|
-
export
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1310
|
+
export declare const FilterType: {
|
|
1311
|
+
readonly Undefined: 0;
|
|
1312
|
+
readonly Point: 1;
|
|
1313
|
+
readonly Box: 2;
|
|
1314
|
+
readonly Triangle: 3;
|
|
1315
|
+
readonly Hermite: 4;
|
|
1316
|
+
readonly Hann: 5;
|
|
1317
|
+
readonly Hamming: 6;
|
|
1318
|
+
readonly Blackman: 7;
|
|
1319
|
+
readonly Gaussian: 8;
|
|
1320
|
+
readonly Quadratic: 9;
|
|
1321
|
+
readonly Cubic: 10;
|
|
1322
|
+
readonly Catrom: 11;
|
|
1323
|
+
readonly Mitchell: 12;
|
|
1324
|
+
readonly Jinc: 13;
|
|
1325
|
+
readonly Sinc: 14;
|
|
1326
|
+
readonly SincFast: 15;
|
|
1327
|
+
readonly Kaiser: 16;
|
|
1328
|
+
readonly Welch: 17;
|
|
1329
|
+
readonly Parzen: 18;
|
|
1330
|
+
readonly Bohman: 19;
|
|
1331
|
+
readonly Bartlett: 20;
|
|
1332
|
+
readonly Lagrange: 21;
|
|
1333
|
+
readonly Lanczos: 22;
|
|
1334
|
+
readonly LanczosSharp: 23;
|
|
1335
|
+
readonly Lanczos2: 24;
|
|
1336
|
+
readonly Lanczos2Sharp: 25;
|
|
1337
|
+
readonly Robidoux: 26;
|
|
1338
|
+
readonly RobidouxSharp: 27;
|
|
1339
|
+
readonly Cosine: 28;
|
|
1340
|
+
readonly Spline: 29;
|
|
1341
|
+
readonly LanczosRadius: 30;
|
|
1342
|
+
readonly CubicSpline: 31;
|
|
1343
|
+
};
|
|
1344
|
+
export type FilterType = typeof FilterType[keyof typeof FilterType];
|
|
1345
|
+
export declare const GifDisposeMethod: {
|
|
1346
|
+
readonly Undefined: 0;
|
|
1347
|
+
readonly None: 1;
|
|
1348
|
+
readonly Background: 2;
|
|
1349
|
+
readonly Previous: 3;
|
|
1350
|
+
};
|
|
1351
|
+
export type GifDisposeMethod = typeof GifDisposeMethod[keyof typeof GifDisposeMethod];
|
|
1352
|
+
export declare const Kernel: {
|
|
1353
|
+
readonly Undefined: "Undefined";
|
|
1354
|
+
readonly Unity: "Unity";
|
|
1355
|
+
readonly Gaussian: "Gaussian";
|
|
1356
|
+
readonly DoG: "DoG";
|
|
1357
|
+
readonly LoG: "LoG";
|
|
1358
|
+
readonly Blur: "Blur";
|
|
1359
|
+
readonly Comet: "Comet";
|
|
1360
|
+
readonly Binomial: "Binomial";
|
|
1361
|
+
readonly Laplacian: "Laplacian";
|
|
1362
|
+
readonly Sobel: "Sobel";
|
|
1363
|
+
readonly FreiChen: "FreiChen";
|
|
1364
|
+
readonly Roberts: "Roberts";
|
|
1365
|
+
readonly Prewitt: "Prewitt";
|
|
1366
|
+
readonly Compass: "Compass";
|
|
1367
|
+
readonly Kirsch: "Kirsch";
|
|
1368
|
+
readonly Diamond: "Diamond";
|
|
1369
|
+
readonly Square: "Square";
|
|
1370
|
+
readonly Rectangle: "Rectangle";
|
|
1371
|
+
readonly Octagon: "Octagon";
|
|
1372
|
+
readonly Disk: "Disk";
|
|
1373
|
+
readonly Plus: "Plus";
|
|
1374
|
+
readonly Cross: "Cross";
|
|
1375
|
+
readonly Ring: "Ring";
|
|
1376
|
+
readonly Peaks: "Peaks";
|
|
1377
|
+
readonly Edges: "Edges";
|
|
1378
|
+
readonly Corners: "Corners";
|
|
1379
|
+
readonly Diagonals: "Diagonals";
|
|
1380
|
+
readonly LineEnds: "LineEnds";
|
|
1381
|
+
readonly LineJunctions: "LineJunctions";
|
|
1382
|
+
readonly Ridges: "Ridges";
|
|
1383
|
+
readonly ConvexHull: "ConvexHull";
|
|
1384
|
+
readonly ThinSE: "ThinSE";
|
|
1385
|
+
readonly Skeleton: "Skeleton";
|
|
1386
|
+
readonly Chebyshev: "Chebyshev";
|
|
1387
|
+
readonly Manhattan: "Manhattan";
|
|
1388
|
+
readonly Octagonal: "Octagonal";
|
|
1389
|
+
readonly Euclidean: "Euclidean";
|
|
1390
|
+
readonly UserDefined: "UserDefined";
|
|
1391
|
+
};
|
|
1392
|
+
export type Kernel = typeof Kernel[keyof typeof Kernel];
|
|
1393
|
+
export declare const MorphologyMethod: {
|
|
1394
|
+
readonly Undefined: 0;
|
|
1395
|
+
readonly Convolve: 1;
|
|
1396
|
+
readonly Correlate: 2;
|
|
1397
|
+
readonly Erode: 3;
|
|
1398
|
+
readonly Dilate: 4;
|
|
1399
|
+
readonly ErodeIntensity: 5;
|
|
1400
|
+
readonly DilateIntensity: 6;
|
|
1401
|
+
readonly IterativeDistance: 7;
|
|
1402
|
+
readonly Open: 8;
|
|
1403
|
+
readonly Close: 9;
|
|
1404
|
+
readonly OpenIntensity: 10;
|
|
1405
|
+
readonly CloseIntensity: 11;
|
|
1406
|
+
readonly Smooth: 12;
|
|
1407
|
+
readonly EdgeIn: 13;
|
|
1408
|
+
readonly EdgeOut: 14;
|
|
1409
|
+
readonly Edge: 15;
|
|
1410
|
+
readonly TopHat: 16;
|
|
1411
|
+
readonly BottomHat: 17;
|
|
1412
|
+
readonly HitAndMiss: 18;
|
|
1413
|
+
readonly Thinning: 19;
|
|
1414
|
+
readonly Thicken: 20;
|
|
1415
|
+
readonly Distance: 21;
|
|
1416
|
+
readonly Voronoi: 22;
|
|
1417
|
+
};
|
|
1418
|
+
export type MorphologyMethod = typeof MorphologyMethod[keyof typeof MorphologyMethod];
|
|
1387
1419
|
export declare class MorphologySettings {
|
|
1388
1420
|
constructor(method: MorphologyMethod, kernel: Kernel | string, args?: string);
|
|
1389
1421
|
channels: Channels;
|
|
@@ -1393,92 +1425,118 @@ export declare class MorphologySettings {
|
|
|
1393
1425
|
readonly kernel: string;
|
|
1394
1426
|
readonly method: MorphologyMethod;
|
|
1395
1427
|
}
|
|
1396
|
-
export declare
|
|
1397
|
-
Undefined
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1428
|
+
export declare const Orientation: {
|
|
1429
|
+
readonly Undefined: 0;
|
|
1430
|
+
readonly TopLeft: 1;
|
|
1431
|
+
readonly TopRight: 2;
|
|
1432
|
+
readonly BottomRight: 3;
|
|
1433
|
+
readonly BottomLeft: 4;
|
|
1434
|
+
readonly LeftTop: 5;
|
|
1435
|
+
readonly RightTop: 6;
|
|
1436
|
+
readonly RightBottom: 7;
|
|
1437
|
+
readonly LeftBottom: 8;
|
|
1438
|
+
};
|
|
1439
|
+
export type Orientation = typeof Orientation[keyof typeof Orientation];
|
|
1440
|
+
export declare const NoiseType: {
|
|
1441
|
+
readonly Undefined: 0;
|
|
1442
|
+
readonly Uniform: 1;
|
|
1443
|
+
readonly Gaussian: 2;
|
|
1444
|
+
readonly MultiplicativeGaussian: 3;
|
|
1445
|
+
readonly Impulse: 4;
|
|
1446
|
+
readonly Laplacian: 5;
|
|
1447
|
+
readonly Poisson: 6;
|
|
1448
|
+
readonly Random: 7;
|
|
1449
|
+
};
|
|
1450
|
+
export type NoiseType = typeof NoiseType[keyof typeof NoiseType];
|
|
1451
|
+
export declare const PixelChannel: {
|
|
1452
|
+
readonly Red: 0;
|
|
1453
|
+
readonly Cyan: 0;
|
|
1454
|
+
readonly Gray: 0;
|
|
1455
|
+
readonly Green: 1;
|
|
1456
|
+
readonly Magenta: 1;
|
|
1457
|
+
readonly Blue: 2;
|
|
1458
|
+
readonly Yellow: 2;
|
|
1459
|
+
readonly Black: 3;
|
|
1460
|
+
readonly Alpha: 4;
|
|
1461
|
+
readonly Index: 5;
|
|
1462
|
+
readonly Meta0: 10;
|
|
1463
|
+
readonly Meta1: 11;
|
|
1464
|
+
readonly Meta2: 12;
|
|
1465
|
+
readonly Meta3: 13;
|
|
1466
|
+
readonly Meta4: 14;
|
|
1467
|
+
readonly Meta5: 15;
|
|
1468
|
+
readonly Meta6: 16;
|
|
1469
|
+
readonly Meta7: 17;
|
|
1470
|
+
readonly Meta8: 18;
|
|
1471
|
+
readonly Meta9: 19;
|
|
1472
|
+
readonly Meta10: 20;
|
|
1473
|
+
readonly Meta11: 21;
|
|
1474
|
+
readonly Meta12: 22;
|
|
1475
|
+
readonly Meta13: 23;
|
|
1476
|
+
readonly Meta14: 24;
|
|
1477
|
+
readonly Meta15: 25;
|
|
1478
|
+
readonly Meta16: 26;
|
|
1479
|
+
readonly Meta17: 27;
|
|
1480
|
+
readonly Meta18: 28;
|
|
1481
|
+
readonly Meta19: 29;
|
|
1482
|
+
readonly Meta20: 30;
|
|
1483
|
+
readonly Meta21: 31;
|
|
1484
|
+
readonly Meta22: 32;
|
|
1485
|
+
readonly Meta23: 33;
|
|
1486
|
+
readonly Meta24: 34;
|
|
1487
|
+
readonly Meta25: 35;
|
|
1488
|
+
readonly Meta26: 36;
|
|
1489
|
+
readonly Meta27: 37;
|
|
1490
|
+
readonly Meta28: 38;
|
|
1491
|
+
readonly Meta29: 39;
|
|
1492
|
+
readonly Meta30: 40;
|
|
1493
|
+
readonly Meta31: 41;
|
|
1494
|
+
readonly Meta32: 42;
|
|
1495
|
+
readonly Meta33: 43;
|
|
1496
|
+
readonly Meta34: 44;
|
|
1497
|
+
readonly Meta35: 45;
|
|
1498
|
+
readonly Meta36: 46;
|
|
1499
|
+
readonly Meta37: 47;
|
|
1500
|
+
readonly Meta38: 48;
|
|
1501
|
+
readonly Meta39: 49;
|
|
1502
|
+
readonly Meta40: 50;
|
|
1503
|
+
readonly Meta41: 51;
|
|
1504
|
+
readonly Meta42: 52;
|
|
1505
|
+
readonly Meta43: 53;
|
|
1506
|
+
readonly Meta44: 54;
|
|
1507
|
+
readonly Meta45: 55;
|
|
1508
|
+
readonly Meta46: 56;
|
|
1509
|
+
readonly Meta47: 57;
|
|
1510
|
+
readonly Meta48: 58;
|
|
1511
|
+
readonly Meta49: 59;
|
|
1512
|
+
readonly Meta50: 60;
|
|
1513
|
+
readonly Meta51: 61;
|
|
1514
|
+
readonly Meta52: 62;
|
|
1515
|
+
readonly Composite: 64;
|
|
1516
|
+
};
|
|
1517
|
+
export type PixelChannel = typeof PixelChannel[keyof typeof PixelChannel];
|
|
1518
|
+
export interface IChannelPerceptualHash {
|
|
1519
|
+
readonly channel: PixelChannel;
|
|
1520
|
+
huPhash(colorSpace: ColorSpace, channelIndex: number): number;
|
|
1521
|
+
sumSquaredDistance(other: IChannelPerceptualHash): number;
|
|
1522
|
+
toString(): string;
|
|
1523
|
+
}
|
|
1524
|
+
export declare class ChannelPerceptualHash implements IChannelPerceptualHash {
|
|
1525
|
+
private readonly _huPhashes;
|
|
1526
|
+
private _hash;
|
|
1527
|
+
channel: PixelChannel;
|
|
1528
|
+
constructor(channel: PixelChannel, colorSpaces: ReadonlyArray<ColorSpace>, instance: number);
|
|
1529
|
+
huPhash(colorSpace: ColorSpace, index: number): number;
|
|
1530
|
+
sumSquaredDistance(other: IChannelPerceptualHash): number;
|
|
1531
|
+
toString(): string;
|
|
1532
|
+
private parseHash;
|
|
1533
|
+
private static powerOfTen;
|
|
1534
|
+
private setHash;
|
|
1535
|
+
}
|
|
1536
|
+
export interface IPerceptualHash {
|
|
1537
|
+
getChannel(channel: number): IChannelPerceptualHash | null;
|
|
1538
|
+
sumSquaredDistance(other: IPerceptualHash): number;
|
|
1539
|
+
toString(): string;
|
|
1482
1540
|
}
|
|
1483
1541
|
export type quantumArray = Uint8Array;
|
|
1484
1542
|
export interface IPixelCollection extends IDisposable {
|
|
@@ -1502,44 +1560,47 @@ export declare class PixelCollection extends NativeInstance implements IPixelCol
|
|
|
1502
1560
|
toByteArray(x: number, y: number, width: number, height: number, mapping: string): Uint8Array | null;
|
|
1503
1561
|
private use;
|
|
1504
1562
|
}
|
|
1505
|
-
export declare
|
|
1506
|
-
Undefined
|
|
1507
|
-
Average
|
|
1508
|
-
Brightness
|
|
1509
|
-
Lightness
|
|
1510
|
-
MS
|
|
1511
|
-
Rec601Luma
|
|
1512
|
-
Rec601Luminance
|
|
1513
|
-
Rec709Luma
|
|
1514
|
-
Rec709Luminance
|
|
1515
|
-
RMS
|
|
1516
|
-
}
|
|
1517
|
-
export
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1563
|
+
export declare const PixelIntensityMethod: {
|
|
1564
|
+
readonly Undefined: 0;
|
|
1565
|
+
readonly Average: 1;
|
|
1566
|
+
readonly Brightness: 2;
|
|
1567
|
+
readonly Lightness: 3;
|
|
1568
|
+
readonly MS: 4;
|
|
1569
|
+
readonly Rec601Luma: 5;
|
|
1570
|
+
readonly Rec601Luminance: 6;
|
|
1571
|
+
readonly Rec709Luma: 7;
|
|
1572
|
+
readonly Rec709Luminance: 8;
|
|
1573
|
+
readonly RMS: 9;
|
|
1574
|
+
};
|
|
1575
|
+
export type PixelIntensityMethod = typeof PixelIntensityMethod[keyof typeof PixelIntensityMethod];
|
|
1576
|
+
export declare const PixelInterpolateMethod: {
|
|
1577
|
+
readonly Undefined: 0;
|
|
1578
|
+
readonly Average: 1;
|
|
1579
|
+
readonly Average9: 2;
|
|
1580
|
+
readonly Average16: 3;
|
|
1581
|
+
readonly Background: 4;
|
|
1582
|
+
readonly Bilinear: 5;
|
|
1583
|
+
readonly Blend: 6;
|
|
1584
|
+
readonly Catrom: 7;
|
|
1585
|
+
readonly Integer: 8;
|
|
1586
|
+
readonly Mesh: 9;
|
|
1587
|
+
readonly Nearest: 10;
|
|
1588
|
+
readonly Spline: 11;
|
|
1589
|
+
};
|
|
1590
|
+
export type PixelInterpolateMethod = typeof PixelInterpolateMethod[keyof typeof PixelInterpolateMethod];
|
|
1531
1591
|
declare class ProgressEvent$1 {
|
|
1532
1592
|
readonly origin: string | null;
|
|
1533
1593
|
readonly progress: Percentage;
|
|
1534
1594
|
cancel: boolean;
|
|
1535
1595
|
}
|
|
1536
|
-
export declare
|
|
1537
|
-
Undefined
|
|
1538
|
-
Saturation
|
|
1539
|
-
Perceptual
|
|
1540
|
-
Absolute
|
|
1541
|
-
Relative
|
|
1542
|
-
}
|
|
1596
|
+
export declare const RenderingIntent: {
|
|
1597
|
+
readonly Undefined: 0;
|
|
1598
|
+
readonly Saturation: 1;
|
|
1599
|
+
readonly Perceptual: 2;
|
|
1600
|
+
readonly Absolute: 3;
|
|
1601
|
+
readonly Relative: 4;
|
|
1602
|
+
};
|
|
1603
|
+
export type RenderingIntent = typeof RenderingIntent[keyof typeof RenderingIntent];
|
|
1543
1604
|
export interface IChannelStatistics {
|
|
1544
1605
|
readonly channel: PixelChannel;
|
|
1545
1606
|
readonly depth: number;
|
|
@@ -1556,73 +1617,75 @@ export interface IStatistics {
|
|
|
1556
1617
|
composite(): IChannelStatistics;
|
|
1557
1618
|
getChannel(channel: PixelChannel): IChannelStatistics | null;
|
|
1558
1619
|
}
|
|
1559
|
-
export declare
|
|
1560
|
-
Undefined
|
|
1561
|
-
Background
|
|
1562
|
-
Dither
|
|
1563
|
-
Edge
|
|
1564
|
-
Mirror
|
|
1565
|
-
Random
|
|
1566
|
-
Tile
|
|
1567
|
-
Transparent
|
|
1568
|
-
Mask
|
|
1569
|
-
Black
|
|
1570
|
-
Gray
|
|
1571
|
-
White
|
|
1572
|
-
HorizontalTile
|
|
1573
|
-
VerticalTile
|
|
1574
|
-
HorizontalTileEdge
|
|
1575
|
-
VerticalTileEdge
|
|
1576
|
-
CheckerTile
|
|
1577
|
-
}
|
|
1578
|
-
export
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1620
|
+
export declare const VirtualPixelMethod: {
|
|
1621
|
+
readonly Undefined: 0;
|
|
1622
|
+
readonly Background: 1;
|
|
1623
|
+
readonly Dither: 2;
|
|
1624
|
+
readonly Edge: 3;
|
|
1625
|
+
readonly Mirror: 4;
|
|
1626
|
+
readonly Random: 5;
|
|
1627
|
+
readonly Tile: 6;
|
|
1628
|
+
readonly Transparent: 7;
|
|
1629
|
+
readonly Mask: 8;
|
|
1630
|
+
readonly Black: 9;
|
|
1631
|
+
readonly Gray: 10;
|
|
1632
|
+
readonly White: 11;
|
|
1633
|
+
readonly HorizontalTile: 12;
|
|
1634
|
+
readonly VerticalTile: 13;
|
|
1635
|
+
readonly HorizontalTileEdge: 14;
|
|
1636
|
+
readonly VerticalTileEdge: 15;
|
|
1637
|
+
readonly CheckerTile: 16;
|
|
1638
|
+
};
|
|
1639
|
+
export type VirtualPixelMethod = typeof VirtualPixelMethod[keyof typeof VirtualPixelMethod];
|
|
1640
|
+
export declare const MagickErrorSeverity: {
|
|
1641
|
+
readonly Warning: 300;
|
|
1642
|
+
readonly ResourceLimitWarning: 300;
|
|
1643
|
+
readonly TypeWarning: 305;
|
|
1644
|
+
readonly OptionWarning: 310;
|
|
1645
|
+
readonly DelegateWarning: 315;
|
|
1646
|
+
readonly MissingDelegateWarning: 320;
|
|
1647
|
+
readonly CorruptImageWarning: 325;
|
|
1648
|
+
readonly FileOpenWarning: 330;
|
|
1649
|
+
readonly BlobWarning: 335;
|
|
1650
|
+
readonly StreamWarning: 340;
|
|
1651
|
+
readonly CacheWarning: 345;
|
|
1652
|
+
readonly CoderWarning: 350;
|
|
1653
|
+
readonly FilterWarning: 352;
|
|
1654
|
+
readonly ModuleWarning: 355;
|
|
1655
|
+
readonly DrawWarning: 360;
|
|
1656
|
+
readonly ImageWarning: 365;
|
|
1657
|
+
readonly WandWarning: 370;
|
|
1658
|
+
readonly RandomWarning: 375;
|
|
1659
|
+
readonly XServerWarning: 380;
|
|
1660
|
+
readonly MonitorWarning: 385;
|
|
1661
|
+
readonly RegistryWarning: 390;
|
|
1662
|
+
readonly ConfigureWarning: 395;
|
|
1663
|
+
readonly PolicyWarning: 399;
|
|
1664
|
+
readonly Error: 400;
|
|
1665
|
+
readonly ResourceLimitError: 400;
|
|
1666
|
+
readonly TypeError: 405;
|
|
1667
|
+
readonly OptionError: 410;
|
|
1668
|
+
readonly DelegateError: 415;
|
|
1669
|
+
readonly MissingDelegateError: 420;
|
|
1670
|
+
readonly CorruptImageError: 425;
|
|
1671
|
+
readonly FileOpenError: 430;
|
|
1672
|
+
readonly BlobError: 435;
|
|
1673
|
+
readonly StreamError: 440;
|
|
1674
|
+
readonly CacheError: 445;
|
|
1675
|
+
readonly CoderError: 450;
|
|
1676
|
+
readonly FilterError: 452;
|
|
1677
|
+
readonly ModuleError: 455;
|
|
1678
|
+
readonly DrawError: 460;
|
|
1679
|
+
readonly ImageError: 465;
|
|
1680
|
+
readonly WandError: 470;
|
|
1681
|
+
readonly RandomError: 475;
|
|
1682
|
+
readonly XServerError: 480;
|
|
1683
|
+
readonly MonitorError: 485;
|
|
1684
|
+
readonly RegistryError: 490;
|
|
1685
|
+
readonly ConfigureError: 495;
|
|
1686
|
+
readonly PolicyError: 499;
|
|
1687
|
+
};
|
|
1688
|
+
export type MagickErrorSeverity = typeof MagickErrorSeverity[keyof typeof MagickErrorSeverity];
|
|
1626
1689
|
export declare class MagickError extends Error {
|
|
1627
1690
|
private _relatedErrors;
|
|
1628
1691
|
readonly severity: MagickErrorSeverity;
|
|
@@ -1670,7 +1733,7 @@ export interface IMagickImage extends IDisposable {
|
|
|
1670
1733
|
label: string | null;
|
|
1671
1734
|
matteColor: IMagickColor;
|
|
1672
1735
|
metaChannelCount: number;
|
|
1673
|
-
orientation:
|
|
1736
|
+
orientation: Orientation;
|
|
1674
1737
|
onProgress?: (event: ProgressEvent$1) => void;
|
|
1675
1738
|
onWarning?: (event: WarningEvent) => void;
|
|
1676
1739
|
page: IMagickGeometry;
|
|
@@ -1691,17 +1754,32 @@ export interface IMagickImage extends IDisposable {
|
|
|
1691
1754
|
adaptiveSharpen(channels: Channels): void;
|
|
1692
1755
|
adaptiveSharpen(radius: number, sigma: number): void;
|
|
1693
1756
|
adaptiveSharpen(radius: number, sigma: number, channels: Channels): void;
|
|
1757
|
+
adaptiveThreshold(width: number, height: number): void;
|
|
1758
|
+
adaptiveThreshold(width: number, height: number, channels: Channels): void;
|
|
1759
|
+
adaptiveThreshold(width: number, height: number, bias: Percentage): void;
|
|
1760
|
+
adaptiveThreshold(width: number, height: number, bias: Percentage, channels: Channels): void;
|
|
1694
1761
|
addNoise(noiseType: NoiseType): void;
|
|
1695
1762
|
addNoise(noiseType: NoiseType, channels: Channels): void;
|
|
1696
1763
|
addNoise(noiseType: NoiseType, attenuate: number): void;
|
|
1697
1764
|
addNoise(noiseType: NoiseType, attenuate: number, channels: Channels): void;
|
|
1698
|
-
alpha(value:
|
|
1765
|
+
alpha(value: AlphaAction): void;
|
|
1766
|
+
annotate(text: string, boundingArea: MagickGeometry): void;
|
|
1767
|
+
annotate(text: string, boundingArea: MagickGeometry, gravity: Gravity): void;
|
|
1768
|
+
annotate(text: string, boundingArea: MagickGeometry, gravity: Gravity, angle: number): void;
|
|
1769
|
+
annotate(text: string, gravity: Gravity): void;
|
|
1770
|
+
annotate(text: string, gravity: Gravity, angle: number): void;
|
|
1699
1771
|
autoGamma(): void;
|
|
1700
1772
|
autoGamma(channels: Channels): void;
|
|
1701
1773
|
autoLevel(): void;
|
|
1702
1774
|
autoLevel(channels: Channels): void;
|
|
1703
1775
|
autoOrient(): void;
|
|
1704
1776
|
autoThreshold(method: AutoThresholdMethod): void;
|
|
1777
|
+
bilateralBlur(width: number, height: number): void;
|
|
1778
|
+
bilateralBlur(width: number, height: number, intensitySigma: number, spatialSigma: number): void;
|
|
1779
|
+
blackThreshold(threshold: Percentage): void;
|
|
1780
|
+
blackThreshold(threshold: Percentage, channels: Channels): void;
|
|
1781
|
+
blueShift(): void;
|
|
1782
|
+
blueShift(factor: number): void;
|
|
1705
1783
|
blur(): void;
|
|
1706
1784
|
blur(channels: Channels): void;
|
|
1707
1785
|
blur(radius: number, sigma: number): void;
|
|
@@ -1710,8 +1788,11 @@ export interface IMagickImage extends IDisposable {
|
|
|
1710
1788
|
border(width: number, height: number): void;
|
|
1711
1789
|
brightnessContrast(brightness: Percentage, contrast: Percentage): void;
|
|
1712
1790
|
brightnessContrast(brightness: Percentage, contrast: Percentage, channels: Channels): void;
|
|
1791
|
+
cannyEdge(): void;
|
|
1792
|
+
cannyEdge(radius: number, sigma: number, lower: Percentage, upper: Percentage): void;
|
|
1713
1793
|
charcoal(): void;
|
|
1714
1794
|
charcoal(radius: number, sigma: number): void;
|
|
1795
|
+
chop(geometry: MagickGeometry): void;
|
|
1715
1796
|
clahe(xTiles: number, yTiles: number, numberBins: number, clipLimit: number): void;
|
|
1716
1797
|
clahe(xTiles: Percentage, yTiles: Percentage, numberBins: number, clipLimit: number): void;
|
|
1717
1798
|
clone<TReturnType>(func: SyncImageCallback<TReturnType>): TReturnType;
|
|
@@ -1783,6 +1864,7 @@ export interface IMagickImage extends IDisposable {
|
|
|
1783
1864
|
extent(geometry: IMagickGeometry, backgroundColor: IMagickColor): void;
|
|
1784
1865
|
flip(): void;
|
|
1785
1866
|
flop(): void;
|
|
1867
|
+
formatExpression(expression: string): string | null;
|
|
1786
1868
|
gammaCorrect(gamma: number): void;
|
|
1787
1869
|
gammaCorrect(gamma: number, channels: Channels): void;
|
|
1788
1870
|
gaussianBlur(radius: number): void;
|
|
@@ -1829,6 +1911,8 @@ export interface IMagickImage extends IDisposable {
|
|
|
1829
1911
|
oilPaint(): void;
|
|
1830
1912
|
oilPaint(radius: number): void;
|
|
1831
1913
|
opaque(target: IMagickColor, fill: IMagickColor): void;
|
|
1914
|
+
perceptualHash(): IPerceptualHash;
|
|
1915
|
+
perceptualHash(colorSpaces: ReadonlyArray<ColorSpace>): IPerceptualHash;
|
|
1832
1916
|
ping(fileName: string, settings?: MagickReadSettings): void;
|
|
1833
1917
|
ping(array: ByteArray, settings?: MagickReadSettings): void;
|
|
1834
1918
|
quantize(settings?: QuantizeSettings): MagickErrorInfo | null;
|
|
@@ -1873,7 +1957,9 @@ export interface IMagickImage extends IDisposable {
|
|
|
1873
1957
|
statistics(channels: Channels): IStatistics;
|
|
1874
1958
|
strip(): void;
|
|
1875
1959
|
transformColorSpace(target: IColorProfile): boolean;
|
|
1960
|
+
transformColorSpace(target: IColorProfile, mode: ColorTransformMode): boolean;
|
|
1876
1961
|
transformColorSpace(source: IColorProfile, target: IColorProfile): boolean;
|
|
1962
|
+
transformColorSpace(source: IColorProfile, target: IColorProfile, mode: ColorTransformMode): boolean;
|
|
1877
1963
|
threshold(percentage: Percentage): void;
|
|
1878
1964
|
threshold(percentage: Percentage, channels: Channels): void;
|
|
1879
1965
|
thumbnail(width: number, height: number): void;
|
|
@@ -1887,6 +1973,8 @@ export interface IMagickImage extends IDisposable {
|
|
|
1887
1973
|
vignette(radius: number, sigma: number, x: number, y: number): void;
|
|
1888
1974
|
wave(): void;
|
|
1889
1975
|
wave(method: PixelInterpolateMethod, amplitude: number, length: number): void;
|
|
1976
|
+
whiteThreshold(threshold: Percentage): void;
|
|
1977
|
+
whiteThreshold(threshold: Percentage, channels: Channels): void;
|
|
1890
1978
|
write<TReturnType>(func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
1891
1979
|
write<TReturnType>(func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1892
1980
|
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
@@ -1938,11 +2026,11 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
1938
2026
|
set density(value: Density);
|
|
1939
2027
|
get depth(): number;
|
|
1940
2028
|
set depth(value: number);
|
|
1941
|
-
get endian():
|
|
1942
|
-
set endian(value:
|
|
2029
|
+
get endian(): Endian;
|
|
2030
|
+
set endian(value: Endian);
|
|
1943
2031
|
get fileName(): string | null;
|
|
1944
|
-
get filterType():
|
|
1945
|
-
set filterType(value:
|
|
2032
|
+
get filterType(): FilterType;
|
|
2033
|
+
set filterType(value: FilterType);
|
|
1946
2034
|
get format(): MagickFormat;
|
|
1947
2035
|
set format(value: MagickFormat);
|
|
1948
2036
|
get gamma(): number;
|
|
@@ -1961,8 +2049,8 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
1961
2049
|
set matteColor(value: IMagickColor);
|
|
1962
2050
|
get metaChannelCount(): number;
|
|
1963
2051
|
set metaChannelCount(value: number);
|
|
1964
|
-
get orientation():
|
|
1965
|
-
set orientation(value:
|
|
2052
|
+
get orientation(): Orientation;
|
|
2053
|
+
set orientation(value: Orientation);
|
|
1966
2054
|
get onProgress(): ((event: ProgressEvent$1) => number) | undefined;
|
|
1967
2055
|
set onProgress(value: ((event: ProgressEvent$1) => number) | undefined);
|
|
1968
2056
|
get onWarning(): ((event: WarningEvent) => number) | undefined;
|
|
@@ -1989,15 +2077,30 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
1989
2077
|
adaptiveSharpen(channels: Channels): void;
|
|
1990
2078
|
adaptiveSharpen(radius: number, sigma: number): void;
|
|
1991
2079
|
adaptiveSharpen(radius: number, sigma: number, channels: Channels): void;
|
|
2080
|
+
adaptiveThreshold(width: number, height: number): void;
|
|
2081
|
+
adaptiveThreshold(width: number, height: number, channels: Channels): void;
|
|
2082
|
+
adaptiveThreshold(width: number, height: number, bias: Percentage): void;
|
|
2083
|
+
adaptiveThreshold(width: number, height: number, bias: Percentage, channels: Channels): void;
|
|
1992
2084
|
addNoise(noiseType: NoiseType): void;
|
|
1993
2085
|
addNoise(noiseType: NoiseType, channels: Channels): void;
|
|
1994
2086
|
addNoise(noiseType: NoiseType, attenuate: number): void;
|
|
1995
2087
|
addNoise(noiseType: NoiseType, attenuate: number, channels: Channels): void;
|
|
1996
|
-
alpha(value:
|
|
2088
|
+
alpha(value: AlphaAction): void;
|
|
2089
|
+
annotate(text: string, boundingArea: MagickGeometry): void;
|
|
2090
|
+
annotate(text: string, boundingArea: MagickGeometry, gravity: Gravity): void;
|
|
2091
|
+
annotate(text: string, boundingArea: MagickGeometry, gravity: Gravity, angle: number): void;
|
|
2092
|
+
annotate(text: string, gravity: Gravity): void;
|
|
2093
|
+
annotate(text: string, gravity: Gravity, angle: number): void;
|
|
1997
2094
|
autoGamma(): void;
|
|
1998
2095
|
autoLevel(): void;
|
|
1999
2096
|
autoOrient(): void;
|
|
2000
2097
|
autoThreshold(method: AutoThresholdMethod): void;
|
|
2098
|
+
bilateralBlur(width: number, height: number): void;
|
|
2099
|
+
bilateralBlur(width: number, height: number, intensitySigma: number, spatialSigma: number): void;
|
|
2100
|
+
blackThreshold(threshold: Percentage): void;
|
|
2101
|
+
blackThreshold(threshold: Percentage, channels: Channels): void;
|
|
2102
|
+
blueShift(): void;
|
|
2103
|
+
blueShift(factor: number): void;
|
|
2001
2104
|
blur(): void;
|
|
2002
2105
|
blur(channels: Channels): void;
|
|
2003
2106
|
blur(radius: number, sigma: number): void;
|
|
@@ -2006,8 +2109,11 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
2006
2109
|
border(width: number, height: number): void;
|
|
2007
2110
|
brightnessContrast(brightness: Percentage, contrast: Percentage): void;
|
|
2008
2111
|
brightnessContrast(brightness: Percentage, contrast: Percentage, channels: Channels): void;
|
|
2112
|
+
cannyEdge(): void;
|
|
2113
|
+
cannyEdge(radius: number, sigma: number, lower: Percentage, upper: Percentage): void;
|
|
2009
2114
|
charcoal(): void;
|
|
2010
2115
|
charcoal(radius: number, sigma: number): void;
|
|
2116
|
+
chop(geometry: MagickGeometry): void;
|
|
2011
2117
|
clahe(xTiles: number, yTiles: number, numberBins: number, clipLimit: number): void;
|
|
2012
2118
|
clahe(xTiles: Percentage, yTiles: Percentage, numberBins: number, clipLimit: number): void;
|
|
2013
2119
|
clone<TReturnType>(func: SyncImageCallback<TReturnType>): TReturnType;
|
|
@@ -2083,6 +2189,7 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
2083
2189
|
extent(geometry: IMagickGeometry, backgroundColor: IMagickColor): void;
|
|
2084
2190
|
flip(): void;
|
|
2085
2191
|
flop(): void;
|
|
2192
|
+
formatExpression(expression: string): string | null;
|
|
2086
2193
|
gammaCorrect(gamma: number): void;
|
|
2087
2194
|
gammaCorrect(gamma: number, channels: Channels): void;
|
|
2088
2195
|
gaussianBlur(radius: number): void;
|
|
@@ -2128,6 +2235,8 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
2128
2235
|
opaque: (target: IMagickColor, fill: IMagickColor) => void;
|
|
2129
2236
|
ping(fileName: string, settings?: MagickReadSettings): void;
|
|
2130
2237
|
ping(array: ByteArray, settings?: MagickReadSettings): void;
|
|
2238
|
+
perceptualHash(): IPerceptualHash;
|
|
2239
|
+
perceptualHash(colorSpaces: ReadonlyArray<ColorSpace>): IPerceptualHash;
|
|
2131
2240
|
quantize(settingsOrUndefined?: QuantizeSettings): MagickErrorInfo | null;
|
|
2132
2241
|
read(color: IMagickColor, width: number, height: number): void;
|
|
2133
2242
|
read(fileName: string, settings?: MagickReadSettings): void;
|
|
@@ -2166,7 +2275,9 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
2166
2275
|
statistics(channels: Channels): IStatistics;
|
|
2167
2276
|
strip(): void;
|
|
2168
2277
|
transformColorSpace(target: IColorProfile): boolean;
|
|
2278
|
+
transformColorSpace(target: IColorProfile, mode: ColorTransformMode): boolean;
|
|
2169
2279
|
transformColorSpace(source: IColorProfile, target: IColorProfile): boolean;
|
|
2280
|
+
transformColorSpace(source: IColorProfile, target: IColorProfile, mode: ColorTransformMode): boolean;
|
|
2170
2281
|
threshold(percentage: Percentage): void;
|
|
2171
2282
|
threshold(percentage: Percentage, channels: Channels): void;
|
|
2172
2283
|
thumbnail(width: number, height: number): void;
|
|
@@ -2180,6 +2291,8 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
2180
2291
|
wave(method: PixelInterpolateMethod, amplitude: number, length: number): void;
|
|
2181
2292
|
vignette(): void;
|
|
2182
2293
|
vignette(radius: number, sigma: number, x: number, y: number): void;
|
|
2294
|
+
whiteThreshold(threshold: Percentage): void;
|
|
2295
|
+
whiteThreshold(threshold: Percentage, channels: Channels): void;
|
|
2183
2296
|
write<TReturnType>(func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
2184
2297
|
write<TReturnType>(func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
2185
2298
|
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
@@ -2198,6 +2311,7 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
2198
2311
|
private readFromArray;
|
|
2199
2312
|
private toBool;
|
|
2200
2313
|
private valueOrDefault;
|
|
2314
|
+
private valueOrComputedDefault;
|
|
2201
2315
|
private useException;
|
|
2202
2316
|
private useExceptionPointer;
|
|
2203
2317
|
}
|
|
@@ -2236,30 +2350,31 @@ export declare class Drawables {
|
|
|
2236
2350
|
textUnderColor(color: IMagickColor): Drawables;
|
|
2237
2351
|
draw(image: IMagickImage): Drawables;
|
|
2238
2352
|
}
|
|
2239
|
-
export declare
|
|
2240
|
-
None
|
|
2241
|
-
Accelerate
|
|
2242
|
-
Annotate
|
|
2243
|
-
Blob
|
|
2244
|
-
Cache
|
|
2245
|
-
Coder
|
|
2246
|
-
Configure
|
|
2247
|
-
Deprecate
|
|
2248
|
-
Draw
|
|
2249
|
-
Exception
|
|
2250
|
-
Image
|
|
2251
|
-
Locale
|
|
2252
|
-
Module
|
|
2253
|
-
Pixel
|
|
2254
|
-
Policy
|
|
2255
|
-
Resource
|
|
2256
|
-
Trace
|
|
2257
|
-
Transform
|
|
2258
|
-
User
|
|
2259
|
-
Wand
|
|
2260
|
-
Detailed
|
|
2261
|
-
All
|
|
2262
|
-
}
|
|
2353
|
+
export declare const LogEventTypes: {
|
|
2354
|
+
readonly None: 0;
|
|
2355
|
+
readonly Accelerate: 1;
|
|
2356
|
+
readonly Annotate: 2;
|
|
2357
|
+
readonly Blob: 4;
|
|
2358
|
+
readonly Cache: 8;
|
|
2359
|
+
readonly Coder: 16;
|
|
2360
|
+
readonly Configure: 32;
|
|
2361
|
+
readonly Deprecate: 64;
|
|
2362
|
+
readonly Draw: 128;
|
|
2363
|
+
readonly Exception: 256;
|
|
2364
|
+
readonly Image: 512;
|
|
2365
|
+
readonly Locale: 1024;
|
|
2366
|
+
readonly Module: 2048;
|
|
2367
|
+
readonly Pixel: 4096;
|
|
2368
|
+
readonly Policy: 8192;
|
|
2369
|
+
readonly Resource: 16384;
|
|
2370
|
+
readonly Trace: 32768;
|
|
2371
|
+
readonly Transform: 65536;
|
|
2372
|
+
readonly User: 131072;
|
|
2373
|
+
readonly Wand: 262144;
|
|
2374
|
+
readonly Detailed: 2147450879;
|
|
2375
|
+
readonly All: number;
|
|
2376
|
+
};
|
|
2377
|
+
export type LogEventTypes = typeof LogEventTypes[keyof typeof LogEventTypes];
|
|
2263
2378
|
export declare class LogEvent {
|
|
2264
2379
|
constructor(eventType: LogEventTypes, message?: string);
|
|
2265
2380
|
readonly eventType: LogEventTypes;
|
|
@@ -2484,7 +2599,7 @@ export interface IMagickImageInfo {
|
|
|
2484
2599
|
readonly format: MagickFormat;
|
|
2485
2600
|
readonly height: number;
|
|
2486
2601
|
readonly interlace: Interlace;
|
|
2487
|
-
readonly orientation:
|
|
2602
|
+
readonly orientation: Orientation;
|
|
2488
2603
|
readonly quality: number;
|
|
2489
2604
|
readonly width: number;
|
|
2490
2605
|
read(array: ByteArray, settings?: MagickReadSettings): void;
|
|
@@ -2505,7 +2620,7 @@ export declare class MagickImageInfo implements IMagickImageInfo {
|
|
|
2505
2620
|
get format(): MagickFormat;
|
|
2506
2621
|
get height(): number;
|
|
2507
2622
|
get interlace(): Interlace;
|
|
2508
|
-
get orientation():
|
|
2623
|
+
get orientation(): Orientation;
|
|
2509
2624
|
get quality(): number;
|
|
2510
2625
|
get width(): number;
|
|
2511
2626
|
constructor();
|
|
@@ -2531,8 +2646,6 @@ export declare class Quantum {
|
|
|
2531
2646
|
}
|
|
2532
2647
|
|
|
2533
2648
|
export {
|
|
2534
|
-
AlphaOption$1 as AlphaOption,
|
|
2535
|
-
OrientationType$1 as OrientationType,
|
|
2536
2649
|
ProgressEvent$1 as ProgressEvent,
|
|
2537
2650
|
};
|
|
2538
2651
|
|