@imagemagick/magick-wasm 0.0.22 → 0.0.23

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 CHANGED
@@ -7,7 +7,7 @@ Licensed under the Apache License, Version 2.0.
7
7
 
8
8
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
9
9
 
10
- [ ImageMagick 7.1.1-11 (2023-05-29) ] copyright:
10
+ [ ImageMagick 7.1.1-13 (2023-07-16) ] copyright:
11
11
 
12
12
  Before we get to the text of the license, lets just review what the license says in simple terms:
13
13
 
@@ -171,7 +171,7 @@ THE SOFTWARE.
171
171
 
172
172
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
173
173
 
174
- [ de265 1.0.11 (2023-02-01) ] copyright:
174
+ [ de265 1.0.12 (2023-06-13) ] copyright:
175
175
 
176
176
  * The library `libde265` is distributed under the terms of the GNU Lesser General Public License.
177
177
  * The sample applications are distributed under the terms of the MIT license.
@@ -1047,35 +1047,37 @@ SOFTWARE.
1047
1047
 
1048
1048
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
1049
1049
 
1050
- [ exr 3.1.7 (2023-03-30) ] copyright:
1051
-
1052
- Copyright (c) 2006-2019 OpenEXR a Series of LF Projects, LLC. All rights reserved.
1053
-
1054
- Redistribution and use in source and binary forms, with or without modification,
1055
- are permitted provided that the following conditions are met:
1056
-
1057
- - Redistributions of source code must retain the above copyright notice, this list of
1058
- conditions and the following disclaimer.
1059
- - Redistributions in binary form must reproduce the above copyright notice, this
1060
- list of conditions and the following disclaimer in the documentation and/or other
1061
- materials provided with the distribution.
1062
- - Neither the name of the copyright holder nor the names of its contributors may
1063
- be used to endorse or promote products derived from this software without
1064
- specific prior written permission.
1065
-
1066
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
1067
- CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
1068
- INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
1069
- MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1070
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
1071
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1072
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
1073
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
1074
- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1075
- HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
1076
- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
1077
- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
1078
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1050
+ [ openexr 3.1.9 (2023-06-26) ] copyright:
1051
+
1052
+ <!-- SPDX-License-Identifier: BSD-3-Clause -->
1053
+ <!-- Copyright (c) Contributors to the OpenEXR Project -->
1054
+
1055
+ Copyright (c) Contributors to the OpenEXR Project. All rights reserved.
1056
+
1057
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1058
+
1059
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
1060
+
1061
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
1062
+
1063
+ 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
1064
+
1065
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1066
+
1067
+ [ imath 3.1.9 (2023-06-01) ] copyright:
1068
+
1069
+ Copyright Contributors to the OpenEXR Project. All rights reserved.
1070
+
1071
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1072
+
1073
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
1074
+
1075
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
1076
+
1077
+ 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
1078
+
1079
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1080
+
1079
1081
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
1080
1082
 
1081
1083
  [ ffi 3.4.4 (2022-10-23) ] copyright:
@@ -1104,7 +1106,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1104
1106
 
1105
1107
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
1106
1108
 
1107
- [ freetype 2.13.0 (2023-02-09) ] copyright:
1109
+ [ freetype 2.13.1 (2023-06-24) ] copyright:
1108
1110
 
1109
1111
  The FreeType Project LICENSE
1110
1112
  ----------------------------
@@ -1785,7 +1787,7 @@ That's all there is to it!
1785
1787
 
1786
1788
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
1787
1789
 
1788
- [ heif 1.16.1 (2023-05-02) ] copyright:
1790
+ [ heif 1.16.2 (2023-05-22) ] copyright:
1789
1791
 
1790
1792
  * The library `libheif` is distributed under the terms of the GNU Lesser General Public License.
1791
1793
  * The sample applications are distributed under the terms of the MIT License.
@@ -2866,7 +2868,7 @@ SOFTWARE.
2866
2868
  limitations under the License.
2867
2869
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2868
2870
 
2869
- [ jpeg-turbo 2.1.91 (2023-02-08) ] copyright:
2871
+ [ jpeg-turbo 3.0.0 (2023-07-03) ] copyright:
2870
2872
 
2871
2873
  libjpeg-turbo Licenses
2872
2874
  ======================
@@ -3003,7 +3005,7 @@ that were granted to the IJG for code derived from their software.
3003
3005
 
3004
3006
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3005
3007
 
3006
- [ jpeg-xl 0.8.1 (2023-02-03) ] copyright:
3008
+ [ jpeg-xl 0.8.2 (2023-06-14) ] copyright:
3007
3009
 
3008
3010
  Copyright (c) the JPEG XL Project Authors.
3009
3011
  All rights reserved.
@@ -3275,7 +3277,7 @@ Library.
3275
3277
 
3276
3278
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3277
3279
 
3278
- [ png 1.6.39 (2022-11-20) ] copyright:
3280
+ [ png 1.6.40 (2023-06-21) ] copyright:
3279
3281
 
3280
3282
  COPYRIGHT NOTICE, DISCLAIMER, and LICENSE
3281
3283
  =========================================
@@ -3283,8 +3285,8 @@ COPYRIGHT NOTICE, DISCLAIMER, and LICENSE
3283
3285
  PNG Reference Library License version 2
3284
3286
  ---------------------------------------
3285
3287
 
3286
- * Copyright (c) 1995-2022 The PNG Reference Library Authors.
3287
- * Copyright (c) 2018-2022 Cosmin Truta.
3288
+ * Copyright (c) 1995-2023 The PNG Reference Library Authors.
3289
+ * Copyright (c) 2018-2023 Cosmin Truta.
3288
3290
  * Copyright (c) 2000-2002, 2004, 2006-2018 Glenn Randers-Pehrson.
3289
3291
  * Copyright (c) 1996-1997 Andreas Dilger.
3290
3292
  * Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.
@@ -3446,7 +3448,7 @@ Copyright (c) 2005 Adobe Systems Incorporated, licensed under MIT license
3446
3448
 
3447
3449
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3448
3450
 
3449
- [ tiff 4.5.0 (2022-12-13) ] copyright:
3451
+ [ tiff 4.5.1 (2023-06-10) ] copyright:
3450
3452
 
3451
3453
  # LibTIFF license
3452
3454
 
@@ -3474,7 +3476,7 @@ OF THIS SOFTWARE.
3474
3476
 
3475
3477
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
3476
3478
 
3477
- [ webp 1.3.0 (2023-01-13) ] copyright:
3479
+ [ webp 1.3.1 (2023-06-23) ] copyright:
3478
3480
 
3479
3481
  Copyright (c) 2010, Google Inc. All rights reserved.
3480
3482
 
package/README.md CHANGED
@@ -21,7 +21,7 @@ Follow me on twitter([@MagickNET](https://twitter.com/MagickNET)) to receive inf
21
21
 
22
22
  ## Release notes
23
23
 
24
- The release notes can be found on [GitHub](https://github.com/dlemstra/magick-wasm/releases/tag/0.0.22).
24
+ The release notes can be found on [GitHub](https://github.com/dlemstra/magick-wasm/releases/tag/0.0.23).
25
25
 
26
26
  ## Donate
27
27
 
package/dist/index.d.ts CHANGED
@@ -385,6 +385,7 @@ export declare enum MagickFormat {
385
385
  Mpc = "MPC",
386
386
  Mpeg = "MPEG",
387
387
  Mpg = "MPG",
388
+ Mpo = "MPO",
388
389
  Mrw = "MRW",
389
390
  Msl = "MSL",
390
391
  Msvg = "MSVG",
@@ -626,6 +627,19 @@ export declare enum PaintMethod {
626
627
  FillToBorder = 4,
627
628
  Reset = 5
628
629
  }
630
+ export declare enum TextAlignment {
631
+ Undefined = 0,
632
+ Left = 1,
633
+ Center = 2,
634
+ Right = 3
635
+ }
636
+ export declare enum TextDecoration {
637
+ Undefined = 0,
638
+ None = 1,
639
+ Underline = 2,
640
+ Overline = 3,
641
+ LineThrough = 4
642
+ }
629
643
  export interface IDrawingWand extends IDisposable {
630
644
  color(x: number, y: number, paintMethod: number): void;
631
645
  draw(drawables: IDrawable[]): void;
@@ -637,6 +651,13 @@ export interface IDrawingWand extends IDisposable {
637
651
  rectangle(upperLeftX: number, upperLeftY: number, lowerRightX: number, lowerRightY: number): void;
638
652
  roundRectangle(upperLeftX: number, upperLeftY: number, lowerRightX: number, lowerRightY: number, cornerWidth: number, cornerHeight: number): void;
639
653
  text(x: number, y: number, value: string): void;
654
+ textAlignment(value: TextAlignment): void;
655
+ textAntialias(value: boolean): void;
656
+ textDecoration(value: TextDecoration): void;
657
+ textInterlineSpacing(value: number): void;
658
+ textInterwordspacing(value: number): void;
659
+ textKerning(value: number): void;
660
+ textUnderColor(value: MagickColor): void;
640
661
  }
641
662
  export declare class DrawingWand extends NativeInstance implements IDrawingWand {
642
663
  private constructor();
@@ -650,6 +671,13 @@ export declare class DrawingWand extends NativeInstance implements IDrawingWand
650
671
  rectangle(upperLeftX: number, upperLeftY: number, lowerRightX: number, lowerRightY: number): void;
651
672
  roundRectangle(upperLeftX: number, upperLeftY: number, lowerRightX: number, lowerRightY: number, cornerWidth: number, cornerHeight: number): void;
652
673
  text(x: number, y: number, value: string): void;
674
+ textAlignment(value: TextAlignment): void;
675
+ textAntialias(value: boolean): void;
676
+ textDecoration(value: TextDecoration): void;
677
+ textInterlineSpacing(value: number): void;
678
+ textInterwordspacing(value: number): void;
679
+ textKerning(value: number): void;
680
+ textUnderColor(value: MagickColor): void;
653
681
  }
654
682
  export interface IDrawable {
655
683
  draw(wand: IDrawingWand): void;
@@ -711,6 +739,43 @@ export declare class DrawableRoundRectangle implements IDrawable {
711
739
  constructor(upperLeftX: number, upperLeftY: number, lowerRightX: number, lowerRightY: number, cornerWidth: number, cornerHeight: number);
712
740
  draw(wand: IDrawingWand): void;
713
741
  }
742
+ export declare class DrawableTextAlignment implements IDrawable {
743
+ private readonly _alignment;
744
+ constructor(alignment: TextAlignment);
745
+ draw(wand: IDrawingWand): void;
746
+ }
747
+ export declare class DrawableTextAntialias implements IDrawable {
748
+ private readonly _isEnabled;
749
+ private constructor();
750
+ static get Disabled(): DrawableTextAntialias;
751
+ static get Enabled(): DrawableTextAntialias;
752
+ draw(wand: IDrawingWand): void;
753
+ }
754
+ export declare class DrawableTextDecoration implements IDrawable {
755
+ private readonly _decoration;
756
+ constructor(decoration: TextDecoration);
757
+ draw(wand: IDrawingWand): void;
758
+ }
759
+ export declare class DrawableTextInterlineSpacing implements IDrawable {
760
+ private readonly _spacing;
761
+ constructor(spacing: number);
762
+ draw(wand: IDrawingWand): void;
763
+ }
764
+ export declare class DrawableTextInterwordSpacing implements IDrawable {
765
+ private readonly _spacing;
766
+ constructor(spacing: number);
767
+ draw(wand: IDrawingWand): void;
768
+ }
769
+ export declare class DrawableTextKerning implements IDrawable {
770
+ private readonly _kerning;
771
+ constructor(kerning: number);
772
+ draw(wand: IDrawingWand): void;
773
+ }
774
+ export declare class DrawableTextUnderColor implements IDrawable {
775
+ private readonly _color;
776
+ constructor(color: MagickColor);
777
+ draw(wand: IDrawingWand): void;
778
+ }
714
779
  export declare class DrawableText implements IDrawable {
715
780
  private readonly _x;
716
781
  private readonly _y;
@@ -902,8 +967,13 @@ export declare enum Interlace {
902
967
  Png = 7
903
968
  }
904
969
  export declare class MagickSettings {
970
+ antiAlias?: boolean;
905
971
  backgroundColor?: MagickColor;
972
+ colorSpace?: ColorSpace;
906
973
  colorType?: ColorType;
974
+ compression?: CompressionMethod;
975
+ debug?: boolean;
976
+ depth?: number;
907
977
  endian?: Endian;
908
978
  fillColor?: MagickColor;
909
979
  font?: string;
@@ -1043,6 +1113,18 @@ export declare class PixelCollection extends NativeInstance implements IPixelCol
1043
1113
  private static createArray;
1044
1114
  private use;
1045
1115
  }
1116
+ export declare enum PixelIntensityMethod {
1117
+ Undefined = 0,
1118
+ Average = 1,
1119
+ Brightness = 2,
1120
+ Lightness = 3,
1121
+ MS = 4,
1122
+ Rec601Luma = 5,
1123
+ Rec601Luminance = 6,
1124
+ Rec709Luma = 7,
1125
+ Rec709Luminance = 8,
1126
+ RMS = 9
1127
+ }
1046
1128
  export declare enum PixelInterpolateMethod {
1047
1129
  Undefined = 0,
1048
1130
  Average = 1,
@@ -1211,6 +1293,8 @@ export interface IMagickImage extends IDisposable {
1211
1293
  getWriteMask<TReturnType>(func: (mask: IMagickImage | null) => Promise<TReturnType>): Promise<TReturnType>;
1212
1294
  getPixels<TReturnType>(func: (pixels: IPixelCollection) => TReturnType): TReturnType;
1213
1295
  getPixels<TReturnType>(func: (pixels: IPixelCollection) => Promise<TReturnType>): Promise<TReturnType>;
1296
+ grayscale(): void;
1297
+ grayscale(method: PixelIntensityMethod): void;
1214
1298
  histogram(): Map<string, number>;
1215
1299
  inverseContrast(): void;
1216
1300
  inverseOpaque(target: MagickColor, fill: MagickColor): void;
@@ -1255,6 +1339,9 @@ export interface IMagickImage extends IDisposable {
1255
1339
  separate<TReturnType>(func: (images: IMagickImageCollection) => Promise<TReturnType>): Promise<TReturnType>;
1256
1340
  separate<TReturnType>(func: (images: IMagickImageCollection) => TReturnType, channels: Channels): TReturnType;
1257
1341
  separate<TReturnType>(func: (images: IMagickImageCollection) => Promise<TReturnType>, channels: Channels): Promise<TReturnType>;
1342
+ sepiaTone(): void;
1343
+ sepiaTone(threshold: number): void;
1344
+ sepiaTone(threshold: Percentage): void;
1258
1345
  setArtifact(name: string, value: string): void;
1259
1346
  setArtifact(name: string, value: boolean): void;
1260
1347
  setAttribute(name: string, value: string): void;
@@ -1269,6 +1356,9 @@ export interface IMagickImage extends IDisposable {
1269
1356
  sigmoidalContrast(contrast: number, midpoint: number): void;
1270
1357
  sigmoidalContrast(contrast: number, midpoint: number, channels: Channels): void;
1271
1358
  splice(geometry: MagickGeometry): void;
1359
+ solarize(): void;
1360
+ solarize(factor: number): void;
1361
+ solarize(factor: Percentage): void;
1272
1362
  statistics(): IStatistics;
1273
1363
  statistics(channels: Channels): IStatistics;
1274
1364
  strip(): void;
@@ -1439,6 +1529,7 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
1439
1529
  getWriteMask<TReturnType>(func: (mask: IMagickImage | null) => Promise<TReturnType>): Promise<TReturnType>;
1440
1530
  getPixels<TReturnType>(func: (pixels: IPixelCollection) => TReturnType): TReturnType;
1441
1531
  getPixels<TReturnType>(func: (pixels: IPixelCollection) => Promise<TReturnType>): Promise<TReturnType>;
1532
+ grayscale(method?: PixelIntensityMethod): void;
1442
1533
  histogram(): Map<string, number>;
1443
1534
  inverseContrast: () => void;
1444
1535
  inverseOpaque: (target: MagickColor, fill: MagickColor) => void;
@@ -1481,6 +1572,7 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
1481
1572
  separate<TReturnType>(func: (images: IMagickImageCollection) => Promise<TReturnType>): Promise<TReturnType>;
1482
1573
  separate<TReturnType>(func: (images: IMagickImageCollection) => TReturnType, channels: Channels): TReturnType;
1483
1574
  separate<TReturnType>(func: (images: IMagickImageCollection) => Promise<TReturnType>, channels: Channels): Promise<TReturnType>;
1575
+ sepiaTone(): void;
1484
1576
  setArtifact(name: string, value: string): void;
1485
1577
  setArtifact(name: string, value: boolean): void;
1486
1578
  setAttribute(name: string, value: string): void;
@@ -1494,6 +1586,7 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
1494
1586
  sigmoidalContrast(contrast: number, midpointPercentage: Percentage): void;
1495
1587
  sigmoidalContrast(contrast: number, midpoint: number): void;
1496
1588
  sigmoidalContrast(contrast: number, midpoint: number, channels: Channels): void;
1589
+ solarize(): void;
1497
1590
  splice(geometry: MagickGeometry): void;
1498
1591
  statistics(): IStatistics;
1499
1592
  statistics(channels: Channels): IStatistics;
@@ -1558,6 +1651,35 @@ export declare class ImageMagick {
1558
1651
  static readFromCanvas<TReturnType>(canvas: HTMLCanvasElement, func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
1559
1652
  }
1560
1653
  export declare function initializeImageMagick(wasmLocationOrData?: string | ByteArray): Promise<void>;
1654
+ export declare enum LogEventTypes {
1655
+ None = 0,
1656
+ Accelerate = 1,
1657
+ Annotate = 2,
1658
+ Blob = 4,
1659
+ Cache = 8,
1660
+ Coder = 16,
1661
+ Configure = 32,
1662
+ Deprecate = 64,
1663
+ Draw = 128,
1664
+ Exception = 256,
1665
+ Image = 512,
1666
+ Locale = 1024,
1667
+ Module = 2048,
1668
+ Pixel = 4096,
1669
+ Policy = 8192,
1670
+ Resource = 16384,
1671
+ Trace = 32768,
1672
+ Transform = 65536,
1673
+ User = 131072,
1674
+ Wand = 262144,
1675
+ Detailed = 2147450879,
1676
+ All = 2147483647
1677
+ }
1678
+ export declare class LogEvent {
1679
+ eventType: LogEventTypes;
1680
+ message: string;
1681
+ constructor(eventType: LogEventTypes, message?: string);
1682
+ }
1561
1683
  export declare class MagickColors {
1562
1684
  static get None(): MagickColor;
1563
1685
  static get Transparent(): MagickColor;
@@ -1753,12 +1875,17 @@ export declare class MagickFormatInfo {
1753
1875
  private static convertFormat;
1754
1876
  }
1755
1877
  export declare class Magick {
1878
+ private static _logDelegate?;
1756
1879
  static get delegates(): string;
1757
1880
  static get features(): string;
1758
1881
  static get imageMagickVersion(): string;
1759
1882
  static get supportedFormats(): ReadonlyArray<MagickFormatInfo>;
1883
+ static onLog?: (event: LogEvent) => void;
1760
1884
  static addFont(name: string, data: Uint8Array): void;
1761
1885
  static setRandomSeed: (seed: number) => void;
1886
+ static setLogEvents(eventTypes: LogEventTypes): void;
1887
+ private static logDelegate;
1888
+ private static getEventTypeString;
1762
1889
  }
1763
1890
  export declare class Quantum {
1764
1891
  static get depth(): number;