@imagemagick/magick-wasm 0.0.37 → 0.0.39
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 +47 -42
- package/README.md +1 -1
- package/dist/index.d.ts +17 -7
- package/dist/index.js +8798 -13042
- package/dist/index.umd.cjs +3 -3
- package/dist/magick.wasm +0 -0
- package/package.json +10 -10
package/NOTICE
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
[ ImageMagick 7.1.2-
|
|
1
|
+
[ ImageMagick 7.1.2-17 (2026-03-15) ]
|
|
2
2
|
|
|
3
3
|
ImageMagick License
|
|
4
|
-
https://imagemagick.org/
|
|
4
|
+
https://imagemagick.org/license/
|
|
5
5
|
|
|
6
6
|
Before we get to the text of the license, lets just review what the license says in simple terms:
|
|
7
7
|
|
|
@@ -99,7 +99,7 @@ To apply the ImageMagick License to your work, attach the following boilerplate
|
|
|
99
99
|
this file except in compliance with the License. You may obtain a copy
|
|
100
100
|
of the License at
|
|
101
101
|
|
|
102
|
-
https://imagemagick.org/
|
|
102
|
+
https://imagemagick.org/license/
|
|
103
103
|
|
|
104
104
|
Unless required by applicable law or agreed to in writing, software
|
|
105
105
|
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
@@ -136,7 +136,7 @@ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
|
136
136
|
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
137
137
|
POSSIBILITY OF SUCH DAMAGE.
|
|
138
138
|
|
|
139
|
-
[ brotli 1.
|
|
139
|
+
[ brotli 1.2.0 (2025-10-27) ]
|
|
140
140
|
|
|
141
141
|
Copyright (c) 2009, 2010, 2013-2016 by the Brotli Authors.
|
|
142
142
|
|
|
@@ -1032,32 +1032,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
1032
1032
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1033
1033
|
SOFTWARE.
|
|
1034
1034
|
|
|
1035
|
-
[
|
|
1036
|
-
|
|
1037
|
-
Copyright 2016 Eric Biggers
|
|
1038
|
-
Copyright 2024 Google LLC
|
|
1039
|
-
|
|
1040
|
-
Permission is hereby granted, free of charge, to any person
|
|
1041
|
-
obtaining a copy of this software and associated documentation files
|
|
1042
|
-
(the "Software"), to deal in the Software without restriction,
|
|
1043
|
-
including without limitation the rights to use, copy, modify, merge,
|
|
1044
|
-
publish, distribute, sublicense, and/or sell copies of the Software,
|
|
1045
|
-
and to permit persons to whom the Software is furnished to do so,
|
|
1046
|
-
subject to the following conditions:
|
|
1047
|
-
|
|
1048
|
-
The above copyright notice and this permission notice shall be
|
|
1049
|
-
included in all copies or substantial portions of the Software.
|
|
1050
|
-
|
|
1051
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
1052
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
1053
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
1054
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
|
1055
|
-
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
|
1056
|
-
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
1057
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1058
|
-
SOFTWARE.
|
|
1059
|
-
|
|
1060
|
-
[ exr 3.4.2 (2025-10-16) ]
|
|
1035
|
+
[ exr 3.4.6 (2026-03-01) ]
|
|
1061
1036
|
|
|
1062
1037
|
Copyright (c) Contributors to the OpenEXR Project. All rights reserved.
|
|
1063
1038
|
|
|
@@ -1095,7 +1070,7 @@ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
|
1095
1070
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
1096
1071
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1097
1072
|
|
|
1098
|
-
[ freetype 2.14.
|
|
1073
|
+
[ freetype 2.14.2 (2026-03-01) ]
|
|
1099
1074
|
|
|
1100
1075
|
The FreeType Project LICENSE
|
|
1101
1076
|
----------------------------
|
|
@@ -1772,7 +1747,7 @@ necessary. Here is a sample; alter the names:
|
|
|
1772
1747
|
|
|
1773
1748
|
That's all there is to it!
|
|
1774
1749
|
|
|
1775
|
-
[ heif 1.
|
|
1750
|
+
[ heif 1.21.2 (2026-01-16) ]
|
|
1776
1751
|
|
|
1777
1752
|
* The library `libheif` is distributed under the terms of the GNU Lesser General Public License.
|
|
1778
1753
|
* The sample applications and the Go and C++ wrappers are distributed under the terms of the MIT License.
|
|
@@ -2863,7 +2838,7 @@ Redistribution and use in source and binary forms, with or without modification,
|
|
|
2863
2838
|
|
|
2864
2839
|
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.
|
|
2865
2840
|
|
|
2866
|
-
[ jpeg-turbo 3.1.
|
|
2841
|
+
[ jpeg-turbo 3.1.3 (2025-12-10) ]
|
|
2867
2842
|
|
|
2868
2843
|
libjpeg-turbo Licenses
|
|
2869
2844
|
======================
|
|
@@ -3001,7 +2976,7 @@ attribution and endorsement protections to other entities. Thus, it was
|
|
|
3001
2976
|
desirable to choose a license that granted us the same protections for new code
|
|
3002
2977
|
that were granted to the IJG for code derived from their software.
|
|
3003
2978
|
|
|
3004
|
-
[ jpeg-xl 0.11.
|
|
2979
|
+
[ jpeg-xl 0.11.2 (2026-02-10) ]
|
|
3005
2980
|
|
|
3006
2981
|
Copyright (c) the JPEG XL Project Authors.
|
|
3007
2982
|
All rights reserved.
|
|
@@ -3031,7 +3006,7 @@ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
|
3031
3006
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
3032
3007
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
3033
3008
|
|
|
3034
|
-
[ lcms 2.
|
|
3009
|
+
[ lcms 2.18.0 (2026-01-09) ]
|
|
3035
3010
|
|
|
3036
3011
|
MIT License
|
|
3037
3012
|
|
|
@@ -3266,7 +3241,37 @@ Library.
|
|
|
3266
3241
|
* POSSIBILITY OF SUCH DAMAGE.
|
|
3267
3242
|
*/
|
|
3268
3243
|
|
|
3269
|
-
[
|
|
3244
|
+
[ openjph 0.26.3 (2026-02-17) ]
|
|
3245
|
+
|
|
3246
|
+
BSD 2-Clause License
|
|
3247
|
+
|
|
3248
|
+
Copyright (c) 2019, Aous Naman
|
|
3249
|
+
Copyright (c) 2019, Kakadu Software Pty Ltd, Australia
|
|
3250
|
+
Copyright (c) 2019, The University of New South Wales, Sydney, Australia
|
|
3251
|
+
All rights reserved.
|
|
3252
|
+
|
|
3253
|
+
Redistribution and use in source and binary forms, with or without
|
|
3254
|
+
modification, are permitted provided that the following conditions are met:
|
|
3255
|
+
|
|
3256
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
3257
|
+
list of conditions and the following disclaimer.
|
|
3258
|
+
|
|
3259
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
3260
|
+
this list of conditions and the following disclaimer in the documentation
|
|
3261
|
+
and/or other materials provided with the distribution.
|
|
3262
|
+
|
|
3263
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
3264
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
3265
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
3266
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
3267
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
3268
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
3269
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
3270
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
3271
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
3272
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
3273
|
+
|
|
3274
|
+
[ png 1.6.55 (2026-02-09) ]
|
|
3270
3275
|
|
|
3271
3276
|
COPYRIGHT NOTICE, DISCLAIMER, and LICENSE
|
|
3272
3277
|
=========================================
|
|
@@ -3274,8 +3279,8 @@ COPYRIGHT NOTICE, DISCLAIMER, and LICENSE
|
|
|
3274
3279
|
PNG Reference Library License version 2
|
|
3275
3280
|
---------------------------------------
|
|
3276
3281
|
|
|
3277
|
-
* Copyright (c) 1995-
|
|
3278
|
-
* Copyright (c) 2018-
|
|
3282
|
+
* Copyright (c) 1995-2026 The PNG Reference Library Authors.
|
|
3283
|
+
* Copyright (c) 2018-2026 Cosmin Truta.
|
|
3279
3284
|
* Copyright (c) 2000-2002, 2004, 2006-2018 Glenn Randers-Pehrson.
|
|
3280
3285
|
* Copyright (c) 1996-1997 Andreas Dilger.
|
|
3281
3286
|
* Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.
|
|
@@ -3403,7 +3408,7 @@ to supporting the PNG file format in commercial products. If you use
|
|
|
3403
3408
|
this source code in a product, acknowledgment is not required but would
|
|
3404
3409
|
be appreciated.
|
|
3405
3410
|
|
|
3406
|
-
[ raw 0.
|
|
3411
|
+
[ raw 0.22.0 (2026-01-13) ]
|
|
3407
3412
|
|
|
3408
3413
|
GNU LESSER GENERAL PUBLIC LICENSE
|
|
3409
3414
|
Version 2.1, February 1999
|
|
@@ -3948,7 +3953,7 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
3948
3953
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
3949
3954
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
3950
3955
|
|
|
3951
|
-
[ xml 2.15.
|
|
3956
|
+
[ xml 2.15.2 (2026-03-03) ]
|
|
3952
3957
|
|
|
3953
3958
|
Except where otherwise noted in the source code (e.g. the files dict.c and
|
|
3954
3959
|
list.c, which are covered by a similar licence but with different Copyright
|
|
@@ -3975,11 +3980,11 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
3975
3980
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
3976
3981
|
THE SOFTWARE.
|
|
3977
3982
|
|
|
3978
|
-
[ zlib 1.3.
|
|
3983
|
+
[ zlib 1.3.2 (2026-02-17) ]
|
|
3979
3984
|
|
|
3980
3985
|
Copyright notice:
|
|
3981
3986
|
|
|
3982
|
-
(C) 1995-
|
|
3987
|
+
(C) 1995-2026 Jean-loup Gailly and Mark Adler
|
|
3983
3988
|
|
|
3984
3989
|
This software is provided 'as-is', without any express or implied
|
|
3985
3990
|
warranty. In no event will the authors be held liable for any damages
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ Follow me on bluesky ([@dirk.lemstra.org](https://bsky.app/profile/dirk.lemstra.
|
|
|
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.39).
|
|
25
25
|
|
|
26
26
|
## Donate
|
|
27
27
|
|
package/dist/index.d.ts
CHANGED
|
@@ -341,6 +341,13 @@ export declare const Gravity: {
|
|
|
341
341
|
readonly Southeast: 9;
|
|
342
342
|
};
|
|
343
343
|
export type Gravity = typeof Gravity[keyof typeof Gravity];
|
|
344
|
+
export declare class Percentage {
|
|
345
|
+
private _value;
|
|
346
|
+
constructor(value: number);
|
|
347
|
+
multiply(value: number): number;
|
|
348
|
+
toDouble(): number;
|
|
349
|
+
toString(): string;
|
|
350
|
+
}
|
|
344
351
|
export interface IMagickColor {
|
|
345
352
|
r: number;
|
|
346
353
|
g: number;
|
|
@@ -348,6 +355,7 @@ export interface IMagickColor {
|
|
|
348
355
|
a: number;
|
|
349
356
|
k: number;
|
|
350
357
|
isCmyk: boolean;
|
|
358
|
+
fuzzyEquals(other: IMagickColor, fuzz: Percentage): boolean;
|
|
351
359
|
toShortString(): string;
|
|
352
360
|
toString(): string;
|
|
353
361
|
}
|
|
@@ -362,6 +370,7 @@ export declare class MagickColor implements IMagickColor {
|
|
|
362
370
|
a: number;
|
|
363
371
|
k: number;
|
|
364
372
|
isCmyk: boolean;
|
|
373
|
+
fuzzyEquals(other: IMagickColor, fuzz: Percentage): boolean;
|
|
365
374
|
toShortString(): string;
|
|
366
375
|
toString(): string;
|
|
367
376
|
private initialize;
|
|
@@ -530,13 +539,6 @@ export declare class DrawableFillColor implements IDrawable {
|
|
|
530
539
|
get color(): IMagickColor;
|
|
531
540
|
draw(wand: IDrawingWand): void;
|
|
532
541
|
}
|
|
533
|
-
export declare class Percentage {
|
|
534
|
-
private _value;
|
|
535
|
-
constructor(value: number);
|
|
536
|
-
multiply(value: number): number;
|
|
537
|
-
toDouble(): number;
|
|
538
|
-
toString(): string;
|
|
539
|
-
}
|
|
540
542
|
export declare class DrawableFillOpacity implements IDrawable {
|
|
541
543
|
private readonly _opacity;
|
|
542
544
|
constructor(opacity: Percentage);
|
|
@@ -1978,6 +1980,7 @@ export interface IMagickImage extends IDisposable {
|
|
|
1978
1980
|
clut(image: IMagickImage, method: PixelInterpolateMethod): void;
|
|
1979
1981
|
clut(image: IMagickImage, method: PixelInterpolateMethod, channels: Channels): void;
|
|
1980
1982
|
colorAlpha(color: IMagickColor): void;
|
|
1983
|
+
colorDecisionList(colorCorrectionCollection: string): void;
|
|
1981
1984
|
compare(image: IMagickImage, metric: ErrorMetric): number;
|
|
1982
1985
|
compare<TReturnType>(image: IMagickImage, settings: CompareSettings, func: (compareResult: CompareResult) => TReturnType): TReturnType;
|
|
1983
1986
|
compare<TReturnType>(image: IMagickImage, settings: CompareSettings, func: (compareResult: CompareResult) => Promise<TReturnType>): Promise<TReturnType>;
|
|
@@ -2028,6 +2031,8 @@ export interface IMagickImage extends IDisposable {
|
|
|
2028
2031
|
cycleColormap(amount: number): void;
|
|
2029
2032
|
deskew(threshold: Percentage): number;
|
|
2030
2033
|
deskew(threshold: Percentage, autoCrop: boolean): number;
|
|
2034
|
+
determineBitDepth(): number;
|
|
2035
|
+
determineBitDepth(channels: Channels): number;
|
|
2031
2036
|
distort(method: DistortMethod, params: number[]): void;
|
|
2032
2037
|
distort(settings: DistortSettings, params: number[]): void;
|
|
2033
2038
|
draw(drawables: IDrawable[]): void;
|
|
@@ -2130,6 +2135,7 @@ export interface IMagickImage extends IDisposable {
|
|
|
2130
2135
|
sepiaTone(threshold: Percentage): void;
|
|
2131
2136
|
setArtifact(name: string, value: boolean | IMagickColor | number | string): void;
|
|
2132
2137
|
setAttribute(name: string, value: string): void;
|
|
2138
|
+
setCompression(compression: CompressionMethod): void;
|
|
2133
2139
|
setProfile(profile: IImageProfile): void;
|
|
2134
2140
|
setProfile(name: string, data: ByteArray): void;
|
|
2135
2141
|
setWriteMask(image: IMagickImage): void;
|
|
@@ -2320,6 +2326,7 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
2320
2326
|
clut(image: IMagickImage, method: PixelInterpolateMethod): void;
|
|
2321
2327
|
clut(image: IMagickImage, method: PixelInterpolateMethod, channels: Channels): void;
|
|
2322
2328
|
colorAlpha(color: IMagickColor): void;
|
|
2329
|
+
colorDecisionList(colorCorrectionCollection: string): void;
|
|
2323
2330
|
compare(image: IMagickImage, metric: ErrorMetric): number;
|
|
2324
2331
|
compare(image: IMagickImage, metric: ErrorMetric, channels: Channels): number;
|
|
2325
2332
|
compare<TReturnType>(image: IMagickImage, settings: CompareSettings, func: (compareResult: CompareResult) => TReturnType): TReturnType;
|
|
@@ -2374,6 +2381,8 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
2374
2381
|
cycleColormap(amount: number): void;
|
|
2375
2382
|
deskew(threshold: Percentage): number;
|
|
2376
2383
|
deskew(threshold: Percentage, autoCrop: boolean): number;
|
|
2384
|
+
determineBitDepth(): number;
|
|
2385
|
+
determineBitDepth(channels: Channels): number;
|
|
2377
2386
|
distort(method: DistortMethod, params: number[]): void;
|
|
2378
2387
|
distort(settings: DistortSettings, params: number[]): void;
|
|
2379
2388
|
draw(drawables: IDrawable[]): void;
|
|
@@ -2471,6 +2480,7 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
2471
2480
|
sepiaTone(): void;
|
|
2472
2481
|
setArtifact(name: string, value: boolean | IMagickColor | number | string): void;
|
|
2473
2482
|
setAttribute(name: string, value: string): void;
|
|
2483
|
+
setCompression(compression: CompressionMethod): void;
|
|
2474
2484
|
setProfile(profile: IImageProfile): void;
|
|
2475
2485
|
setProfile(pname: string, data: ByteArray): void;
|
|
2476
2486
|
setWriteMask(image: IMagickImage): void;
|