@imagemagick/magick-wasm 0.0.30 → 0.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +17 -12
- package/README.md +1 -1
- package/dist/index.d.ts +106 -61
- package/dist/index.js +1325 -1248
- package/dist/index.umd.cjs +13 -13
- package/dist/magick.wasm +0 -0
- package/package.json +8 -8
package/NOTICE
CHANGED
|
@@ -7,7 +7,7 @@ Licensed under the Apache License, Version 2.0.
|
|
|
7
7
|
|
|
8
8
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
9
9
|
|
|
10
|
-
[ ImageMagick 7.1.1-
|
|
10
|
+
[ ImageMagick 7.1.1-39 (2024-10-05) ] copyright:
|
|
11
11
|
|
|
12
12
|
ImageMagick License
|
|
13
13
|
https://imagemagick.org/script/license.php
|
|
@@ -118,7 +118,7 @@ To apply the ImageMagick License to your work, attach the following boilerplate
|
|
|
118
118
|
|
|
119
119
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
120
120
|
|
|
121
|
-
[ aom 3.
|
|
121
|
+
[ aom 3.10.0 (2024-08-27) ] copyright:
|
|
122
122
|
|
|
123
123
|
Copyright (c) 2016, Alliance for Open Media. All rights reserved.
|
|
124
124
|
|
|
@@ -1050,9 +1050,10 @@ SOFTWARE.
|
|
|
1050
1050
|
|
|
1051
1051
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
1052
1052
|
|
|
1053
|
-
[ deflate 1.
|
|
1053
|
+
[ deflate 1.21.0 (2024-08-04) ] copyright:
|
|
1054
1054
|
|
|
1055
1055
|
Copyright 2016 Eric Biggers
|
|
1056
|
+
Copyright 2024 Google LLC
|
|
1056
1057
|
|
|
1057
1058
|
Permission is hereby granted, free of charge, to any person
|
|
1058
1059
|
obtaining a copy of this software and associated documentation files
|
|
@@ -1090,7 +1091,7 @@ Redistribution and use in source and binary forms, with or without modification,
|
|
|
1090
1091
|
|
|
1091
1092
|
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.
|
|
1092
1093
|
|
|
1093
|
-
[ imath 3.1.
|
|
1094
|
+
[ imath 3.1.12 (2024-09-11) ] copyright:
|
|
1094
1095
|
|
|
1095
1096
|
Copyright Contributors to the OpenEXR Project. All rights reserved.
|
|
1096
1097
|
|
|
@@ -1132,7 +1133,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
1132
1133
|
|
|
1133
1134
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
1134
1135
|
|
|
1135
|
-
[ freetype 2.13.
|
|
1136
|
+
[ freetype 2.13.3 (2024-08-12) ] copyright:
|
|
1136
1137
|
|
|
1137
1138
|
The FreeType Project LICENSE
|
|
1138
1139
|
----------------------------
|
|
@@ -1813,7 +1814,7 @@ That's all there is to it!
|
|
|
1813
1814
|
|
|
1814
1815
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
1815
1816
|
|
|
1816
|
-
[ heif 1.18.
|
|
1817
|
+
[ heif 1.18.2 (2024-08-07) ] copyright:
|
|
1817
1818
|
|
|
1818
1819
|
* The library `libheif` is distributed under the terms of the GNU Lesser General Public License.
|
|
1819
1820
|
* The sample applications are distributed under the terms of the MIT License.
|
|
@@ -3034,7 +3035,11 @@ that were granted to the IJG for code derived from their software.
|
|
|
3034
3035
|
|
|
3035
3036
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
3036
3037
|
|
|
3037
|
-
|
|
3038
|
+
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
3039
|
+
|
|
3040
|
+
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
3041
|
+
|
|
3042
|
+
[ jpeg-xl 0.11.0 (2024-09-13) ] copyright:
|
|
3038
3043
|
|
|
3039
3044
|
Copyright (c) the JPEG XL Project Authors.
|
|
3040
3045
|
All rights reserved.
|
|
@@ -3307,7 +3312,7 @@ Library.
|
|
|
3307
3312
|
|
|
3308
3313
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
3309
3314
|
|
|
3310
|
-
[ png 1.6.
|
|
3315
|
+
[ png 1.6.44 (2024-09-12) ] copyright:
|
|
3311
3316
|
|
|
3312
3317
|
COPYRIGHT NOTICE, DISCLAIMER, and LICENSE
|
|
3313
3318
|
=========================================
|
|
@@ -3446,11 +3451,11 @@ be appreciated.
|
|
|
3446
3451
|
|
|
3447
3452
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
3448
3453
|
|
|
3449
|
-
[ raw 0.21.
|
|
3454
|
+
[ raw 0.21.3 (2024-09-24) ] copyright:
|
|
3450
3455
|
|
|
3451
3456
|
** LibRaw: Raw images processing library **
|
|
3452
3457
|
|
|
3453
|
-
Copyright (C) 2008-
|
|
3458
|
+
Copyright (C) 2008-2021 LibRaw LLC (http://www.libraw.org, info@libraw.org)
|
|
3454
3459
|
|
|
3455
3460
|
LibRaw is free software; you can redistribute it and/or modify
|
|
3456
3461
|
it under the terms of the one of two licenses as you choose:
|
|
@@ -3478,7 +3483,7 @@ Copyright (c) 2005 Adobe Systems Incorporated, licensed under MIT license
|
|
|
3478
3483
|
|
|
3479
3484
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
3480
3485
|
|
|
3481
|
-
[ tiff 4.
|
|
3486
|
+
[ tiff 4.7.0 (2024-09-11) ] copyright:
|
|
3482
3487
|
|
|
3483
3488
|
# LibTIFF license
|
|
3484
3489
|
|
|
@@ -3541,7 +3546,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
3541
3546
|
|
|
3542
3547
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
3543
3548
|
|
|
3544
|
-
[ xml 2.13.
|
|
3549
|
+
[ xml 2.13.4 (2024-09-18) ] copyright:
|
|
3545
3550
|
|
|
3546
3551
|
Except where otherwise noted in the source code (e.g. the files dict.c and
|
|
3547
3552
|
list.c, which are covered by a similar licence but with different Copyright
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ Follow me on twitter([@MagickNET](https://twitter.com/MagickNET)) to receive inf
|
|
|
21
21
|
|
|
22
22
|
## Release notes
|
|
23
23
|
|
|
24
|
-
The release notes can be found on [GitHub](https://github.com/dlemstra/magick-wasm/releases/tag/0.0.
|
|
24
|
+
The release notes can be found on [GitHub](https://github.com/dlemstra/magick-wasm/releases/tag/0.0.31).
|
|
25
25
|
|
|
26
26
|
## Donate
|
|
27
27
|
|
package/dist/index.d.ts
CHANGED
|
@@ -684,7 +684,13 @@ export declare enum ColorSpace {
|
|
|
684
684
|
YIQ = 30,
|
|
685
685
|
YPbPr = 31,
|
|
686
686
|
YUV = 32,
|
|
687
|
-
LinearGray = 33
|
|
687
|
+
LinearGray = 33,
|
|
688
|
+
Jzazbz = 34,
|
|
689
|
+
DisplayP3 = 35,
|
|
690
|
+
Adobe98 = 36,
|
|
691
|
+
ProPhoto = 37,
|
|
692
|
+
Oklab = 38,
|
|
693
|
+
Oklch = 39
|
|
688
694
|
}
|
|
689
695
|
export declare enum ComplexOperator {
|
|
690
696
|
Undefined = 0,
|
|
@@ -743,6 +749,64 @@ export declare class MagickErrorInfo {
|
|
|
743
749
|
readonly normalizedMaximumError: number;
|
|
744
750
|
readonly normalizedMeanError: number;
|
|
745
751
|
}
|
|
752
|
+
export interface IMagickGeometry {
|
|
753
|
+
readonly aspectRatio: boolean;
|
|
754
|
+
fillArea: boolean;
|
|
755
|
+
greater: boolean;
|
|
756
|
+
height: number;
|
|
757
|
+
ignoreAspectRatio: boolean;
|
|
758
|
+
isPercentage: boolean;
|
|
759
|
+
less: boolean;
|
|
760
|
+
limitPixels: boolean;
|
|
761
|
+
width: number;
|
|
762
|
+
x: number;
|
|
763
|
+
y: number;
|
|
764
|
+
}
|
|
765
|
+
export declare class MagickGeometry implements IMagickGeometry {
|
|
766
|
+
private readonly _includeXyInToString;
|
|
767
|
+
private _width;
|
|
768
|
+
private _height;
|
|
769
|
+
private _x;
|
|
770
|
+
private _y;
|
|
771
|
+
private _aspectRatio;
|
|
772
|
+
private _fillArea;
|
|
773
|
+
private _greater;
|
|
774
|
+
private _isPercentage;
|
|
775
|
+
private _ignoreAspectRatio;
|
|
776
|
+
private _less;
|
|
777
|
+
private _limitPixels;
|
|
778
|
+
constructor(value: string);
|
|
779
|
+
constructor(widthAndHeight: number);
|
|
780
|
+
constructor(width: number, height: number);
|
|
781
|
+
constructor(x: number, y: number, width: number, height: number);
|
|
782
|
+
get aspectRatio(): boolean;
|
|
783
|
+
get fillArea(): boolean;
|
|
784
|
+
set fillArea(value: boolean);
|
|
785
|
+
get greater(): boolean;
|
|
786
|
+
set greater(value: boolean);
|
|
787
|
+
get height(): number;
|
|
788
|
+
set height(value: number);
|
|
789
|
+
get ignoreAspectRatio(): boolean;
|
|
790
|
+
set ignoreAspectRatio(value: boolean);
|
|
791
|
+
get isPercentage(): boolean;
|
|
792
|
+
set isPercentage(value: boolean);
|
|
793
|
+
get less(): boolean;
|
|
794
|
+
set less(value: boolean);
|
|
795
|
+
get limitPixels(): boolean;
|
|
796
|
+
set limitPixels(value: boolean);
|
|
797
|
+
get width(): number;
|
|
798
|
+
set width(value: number);
|
|
799
|
+
get x(): number;
|
|
800
|
+
set x(value: number);
|
|
801
|
+
get y(): number;
|
|
802
|
+
set y(value: number);
|
|
803
|
+
toString(): string;
|
|
804
|
+
private initialize;
|
|
805
|
+
private initializeFromAspectRation;
|
|
806
|
+
private parseNumber;
|
|
807
|
+
private isNumber;
|
|
808
|
+
private hasFlag;
|
|
809
|
+
}
|
|
746
810
|
export declare enum ColorType {
|
|
747
811
|
Undefined = 0,
|
|
748
812
|
Bilevel = 1,
|
|
@@ -820,8 +884,8 @@ export declare class MagickSettings {
|
|
|
820
884
|
strokeWidth?: number;
|
|
821
885
|
textInterlineSpacing?: number;
|
|
822
886
|
textKerning?: number;
|
|
823
|
-
getDefine(name: string): string;
|
|
824
|
-
getDefine(format: MagickFormat, name: string): string;
|
|
887
|
+
getDefine(name: string): string | null;
|
|
888
|
+
getDefine(format: MagickFormat, name: string): string | null;
|
|
825
889
|
setDefine(name: string, value: string): void;
|
|
826
890
|
setDefine(format: MagickFormat, name: string, value: string): void;
|
|
827
891
|
setDefine(format: MagickFormat, name: string, value: number): void;
|
|
@@ -831,68 +895,15 @@ export declare class MagickSettings {
|
|
|
831
895
|
}
|
|
832
896
|
export declare class MagickReadSettings extends MagickSettings {
|
|
833
897
|
constructor(partialSettings?: Partial<MagickReadSettings>);
|
|
898
|
+
extractArea?: MagickGeometry;
|
|
899
|
+
frameIndex?: number;
|
|
900
|
+
frameCount?: number;
|
|
834
901
|
height?: number;
|
|
902
|
+
get syncImageWithExifProfile(): boolean;
|
|
903
|
+
set syncImageWithExifProfile(value: boolean);
|
|
835
904
|
width?: number;
|
|
836
905
|
private getSize;
|
|
837
906
|
}
|
|
838
|
-
export interface IMagickGeometry {
|
|
839
|
-
readonly aspectRatio: boolean;
|
|
840
|
-
fillArea: boolean;
|
|
841
|
-
greater: boolean;
|
|
842
|
-
height: number;
|
|
843
|
-
ignoreAspectRatio: boolean;
|
|
844
|
-
isPercentage: boolean;
|
|
845
|
-
less: boolean;
|
|
846
|
-
limitPixels: boolean;
|
|
847
|
-
width: number;
|
|
848
|
-
x: number;
|
|
849
|
-
y: number;
|
|
850
|
-
}
|
|
851
|
-
export declare class MagickGeometry implements IMagickGeometry {
|
|
852
|
-
private readonly _includeXyInToString;
|
|
853
|
-
private _width;
|
|
854
|
-
private _height;
|
|
855
|
-
private _x;
|
|
856
|
-
private _y;
|
|
857
|
-
private _aspectRatio;
|
|
858
|
-
private _fillArea;
|
|
859
|
-
private _greater;
|
|
860
|
-
private _isPercentage;
|
|
861
|
-
private _ignoreAspectRatio;
|
|
862
|
-
private _less;
|
|
863
|
-
private _limitPixels;
|
|
864
|
-
constructor(value: string);
|
|
865
|
-
constructor(widthAndHeight: number);
|
|
866
|
-
constructor(width: number, height: number);
|
|
867
|
-
constructor(x: number, y: number, width: number, height: number);
|
|
868
|
-
get aspectRatio(): boolean;
|
|
869
|
-
get fillArea(): boolean;
|
|
870
|
-
set fillArea(value: boolean);
|
|
871
|
-
get greater(): boolean;
|
|
872
|
-
set greater(value: boolean);
|
|
873
|
-
get height(): number;
|
|
874
|
-
set height(value: number);
|
|
875
|
-
get ignoreAspectRatio(): boolean;
|
|
876
|
-
set ignoreAspectRatio(value: boolean);
|
|
877
|
-
get isPercentage(): boolean;
|
|
878
|
-
set isPercentage(value: boolean);
|
|
879
|
-
get less(): boolean;
|
|
880
|
-
set less(value: boolean);
|
|
881
|
-
get limitPixels(): boolean;
|
|
882
|
-
set limitPixels(value: boolean);
|
|
883
|
-
get width(): number;
|
|
884
|
-
set width(value: number);
|
|
885
|
-
get x(): number;
|
|
886
|
-
set x(value: number);
|
|
887
|
-
get y(): number;
|
|
888
|
-
set y(value: number);
|
|
889
|
-
toString(): string;
|
|
890
|
-
private initialize;
|
|
891
|
-
private initializeFromAspectRation;
|
|
892
|
-
private parseNumber;
|
|
893
|
-
private isNumber;
|
|
894
|
-
private hasFlag;
|
|
895
|
-
}
|
|
896
907
|
export declare class MontageSettings {
|
|
897
908
|
backgroundColor?: IMagickColor;
|
|
898
909
|
borderColor?: IMagickColor;
|
|
@@ -1390,6 +1401,16 @@ export declare class MorphologySettings {
|
|
|
1390
1401
|
readonly kernel: string;
|
|
1391
1402
|
readonly method: MorphologyMethod;
|
|
1392
1403
|
}
|
|
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
|
+
}
|
|
1393
1414
|
declare enum OrientationType$1 {
|
|
1394
1415
|
Undefined = 0,
|
|
1395
1416
|
TopLeft = 1,
|
|
@@ -1656,6 +1677,7 @@ export interface IMagickImage extends IDisposable {
|
|
|
1656
1677
|
readonly isOpaque: boolean;
|
|
1657
1678
|
label: string | null;
|
|
1658
1679
|
matteColor: IMagickColor;
|
|
1680
|
+
metaChannelCount: number;
|
|
1659
1681
|
orientation: OrientationType$1;
|
|
1660
1682
|
onProgress?: (event: ProgressEvent$1) => void;
|
|
1661
1683
|
onWarning?: (event: WarningEvent) => void;
|
|
@@ -1671,6 +1693,16 @@ export interface IMagickImage extends IDisposable {
|
|
|
1671
1693
|
adaptiveBlur(): void;
|
|
1672
1694
|
adaptiveBlur(radius: number): void;
|
|
1673
1695
|
adaptiveBlur(radius: number, sigma: number): void;
|
|
1696
|
+
adaptiveResize(geometry: IMagickGeometry): void;
|
|
1697
|
+
adaptiveResize(width: number, height: number): void;
|
|
1698
|
+
adaptiveSharpen(): void;
|
|
1699
|
+
adaptiveSharpen(channels: Channels): void;
|
|
1700
|
+
adaptiveSharpen(radius: number, sigma: number): void;
|
|
1701
|
+
adaptiveSharpen(radius: number, sigma: number, channels: Channels): void;
|
|
1702
|
+
addNoise(noiseType: NoiseType): void;
|
|
1703
|
+
addNoise(noiseType: NoiseType, channels: Channels): void;
|
|
1704
|
+
addNoise(noiseType: NoiseType, attenuate: number): void;
|
|
1705
|
+
addNoise(noiseType: NoiseType, attenuate: number, channels: Channels): void;
|
|
1674
1706
|
alpha(value: AlphaOption$1): void;
|
|
1675
1707
|
autoGamma(): void;
|
|
1676
1708
|
autoGamma(channels: Channels): void;
|
|
@@ -1929,6 +1961,8 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
1929
1961
|
set label(value: string | null);
|
|
1930
1962
|
get matteColor(): IMagickColor;
|
|
1931
1963
|
set matteColor(value: IMagickColor);
|
|
1964
|
+
get metaChannelCount(): number;
|
|
1965
|
+
set metaChannelCount(value: number);
|
|
1932
1966
|
get orientation(): OrientationType$1;
|
|
1933
1967
|
set orientation(value: OrientationType$1);
|
|
1934
1968
|
get onProgress(): ((event: ProgressEvent$1) => number) | undefined;
|
|
@@ -1951,6 +1985,16 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
1951
1985
|
adaptiveBlur(): void;
|
|
1952
1986
|
adaptiveBlur(radius: number): void;
|
|
1953
1987
|
adaptiveBlur(radius: number, sigma: number): void;
|
|
1988
|
+
adaptiveResize(geometry: IMagickGeometry): void;
|
|
1989
|
+
adaptiveResize(width: number, height: number): void;
|
|
1990
|
+
adaptiveSharpen(): void;
|
|
1991
|
+
adaptiveSharpen(channels: Channels): void;
|
|
1992
|
+
adaptiveSharpen(radius: number, sigma: number): void;
|
|
1993
|
+
adaptiveSharpen(radius: number, sigma: number, channels: Channels): void;
|
|
1994
|
+
addNoise(noiseType: NoiseType): void;
|
|
1995
|
+
addNoise(noiseType: NoiseType, channels: Channels): void;
|
|
1996
|
+
addNoise(noiseType: NoiseType, attenuate: number): void;
|
|
1997
|
+
addNoise(noiseType: NoiseType, attenuate: number, channels: Channels): void;
|
|
1954
1998
|
alpha(value: AlphaOption$1): void;
|
|
1955
1999
|
autoGamma(): void;
|
|
1956
2000
|
autoLevel(): void;
|
|
@@ -2470,6 +2514,7 @@ export declare class Magick {
|
|
|
2470
2514
|
static get supportedFormats(): ReadonlyArray<IMagickFormatInfo>;
|
|
2471
2515
|
static onLog?: (event: LogEvent) => void;
|
|
2472
2516
|
static addFont(name: string, data: Uint8Array): void;
|
|
2517
|
+
static resetRandomSeed: () => void;
|
|
2473
2518
|
static setRandomSeed: (seed: number) => void;
|
|
2474
2519
|
static setLogEvents(eventTypes: LogEventTypes): void;
|
|
2475
2520
|
private static getEventTypeString;
|