@imagemagick/magick-wasm 0.0.31 → 0.0.33

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