@imagemagick/magick-wasm 0.0.31 → 0.0.32

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-39 (2024-10-05) ] copyright:
10
+ [ ImageMagick 7.1.1-41 (2024-11-16) ] copyright:
11
11
 
12
12
  ImageMagick License
13
13
  https://imagemagick.org/script/license.php
@@ -1050,7 +1050,7 @@ SOFTWARE.
1050
1050
 
1051
1051
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
1052
1052
 
1053
- [ deflate 1.21.0 (2024-08-04) ] copyright:
1053
+ [ deflate 1.22.0 (2024-10-05) ] copyright:
1054
1054
 
1055
1055
  Copyright 2016 Eric Biggers
1056
1056
  Copyright 2024 Google LLC
@@ -1077,7 +1077,7 @@ SOFTWARE.
1077
1077
 
1078
1078
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
1079
1079
 
1080
- [ openexr 3.2.4 (2024-03-26) ] copyright:
1080
+ [ openexr 3.3.2 (2024-11-11) ] copyright:
1081
1081
 
1082
1082
  Copyright (c) Contributors to the OpenEXR Project. All rights reserved.
1083
1083
 
@@ -1814,7 +1814,7 @@ That's all there is to it!
1814
1814
 
1815
1815
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
1816
1816
 
1817
- [ heif 1.18.2 (2024-08-07) ] copyright:
1817
+ [ heif 1.19.3 (2024-11-11) ] copyright:
1818
1818
 
1819
1819
  * The library `libheif` is distributed under the terms of the GNU Lesser General Public License.
1820
1820
  * The sample applications are distributed under the terms of the MIT License.
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.31).
24
+ The release notes can be found on [GitHub](https://github.com/dlemstra/magick-wasm/releases/tag/0.0.32).
25
25
 
26
26
  ## Donate
27
27
 
package/dist/index.d.ts CHANGED
@@ -617,37 +617,6 @@ export declare enum Channels {
617
617
  Meta19 = 536870912,
618
618
  Meta20 = 1073741824,
619
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
620
  All = 134217727
652
621
  }
653
622
  export declare enum ColorSpace {
@@ -851,6 +820,21 @@ export declare enum CompressionMethod {
851
820
  BC7 = 26,
852
821
  BC5 = 27
853
822
  }
823
+ export declare enum DensityUnit {
824
+ Undefined = 0,
825
+ PixelsPerInch = 1,
826
+ PixelsPerCentimeter = 2
827
+ }
828
+ export declare class Density {
829
+ constructor(xy: number);
830
+ constructor(xy: number, unit: DensityUnit);
831
+ constructor(x: number, y: number, units: DensityUnit);
832
+ readonly x: number;
833
+ readonly y: number;
834
+ readonly units: DensityUnit;
835
+ toString(units?: DensityUnit): string;
836
+ private static toString;
837
+ }
854
838
  export declare enum Endian {
855
839
  Undefined = 0,
856
840
  LSB = 1,
@@ -873,6 +857,7 @@ export declare class MagickSettings {
873
857
  colorType?: ColorType;
874
858
  compression?: CompressionMethod;
875
859
  debug?: boolean;
860
+ density?: Density;
876
861
  depth?: number;
877
862
  endian?: Endian;
878
863
  fillColor?: IMagickColor;
@@ -901,6 +886,8 @@ export declare class MagickReadSettings extends MagickSettings {
901
886
  height?: number;
902
887
  get syncImageWithExifProfile(): boolean;
903
888
  set syncImageWithExifProfile(value: boolean);
889
+ get syncImageWithTiffProperties(): boolean;
890
+ set syncImageWithTiffProperties(value: boolean);
904
891
  width?: number;
905
892
  private getSize;
906
893
  }
@@ -1087,6 +1074,33 @@ export declare enum ClassType {
1087
1074
  Direct = 1,
1088
1075
  Pseudo = 2
1089
1076
  }
1077
+ export interface IImageProfile {
1078
+ readonly name: string;
1079
+ readonly data: Uint8Array;
1080
+ }
1081
+ export declare class ImageProfile implements IImageProfile {
1082
+ constructor(name: string, data: Uint8Array);
1083
+ readonly name: string;
1084
+ readonly data: Uint8Array;
1085
+ }
1086
+ export interface IColorProfile extends IImageProfile {
1087
+ readonly colorSpace: ColorSpace;
1088
+ readonly copyright: string | null;
1089
+ readonly description: string | null;
1090
+ readonly manufacturer: string | null;
1091
+ readonly model: string | null;
1092
+ }
1093
+ export declare class ColorProfile extends ImageProfile implements IColorProfile {
1094
+ private _data?;
1095
+ constructor(data: Uint8Array);
1096
+ constructor(name: string, data: Uint8Array);
1097
+ get colorSpace(): ColorSpace;
1098
+ get copyright(): string | null;
1099
+ get description(): string | null;
1100
+ get manufacturer(): string | null;
1101
+ get model(): string | null;
1102
+ private initialize;
1103
+ }
1090
1104
  export declare class CompareResult {
1091
1105
  private constructor();
1092
1106
  readonly difference: IMagickImage;
@@ -1236,19 +1250,6 @@ export declare class ConnectedComponentsSettings {
1236
1250
  perimeterThreshold?: Threshold;
1237
1251
  constructor(connectivity: Connectivity);
1238
1252
  }
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
1253
  export declare enum DistortMethod {
1253
1254
  Undefined = 0,
1254
1255
  Affine = 1,
@@ -1318,15 +1319,6 @@ export declare enum GifDisposeMethod {
1318
1319
  Background = 2,
1319
1320
  Previous = 3
1320
1321
  }
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
1322
  export declare enum Kernel {
1331
1323
  Undefined = "Undefined",
1332
1324
  Unity = "Unity",
@@ -1798,6 +1790,7 @@ export interface IMagickImage extends IDisposable {
1798
1790
  gaussianBlur(radius: number, sigma: number, channels: Channels): void;
1799
1791
  getArtifact(name: string): string | null;
1800
1792
  getAttribute(name: string): string | null;
1793
+ getColorProfile(): IColorProfile | null;
1801
1794
  getPixels<TReturnType>(func: (pixels: IPixelCollection) => TReturnType): TReturnType;
1802
1795
  getPixels<TReturnType>(func: (pixels: IPixelCollection) => Promise<TReturnType>): Promise<TReturnType>;
1803
1796
  getProfile(name: string): IImageProfile | null;
@@ -1805,6 +1798,7 @@ export interface IMagickImage extends IDisposable {
1805
1798
  getWriteMask<TReturnType>(func: (mask: IMagickImage | null) => Promise<TReturnType>): Promise<TReturnType>;
1806
1799
  grayscale(): void;
1807
1800
  grayscale(method: PixelIntensityMethod): void;
1801
+ hasProfile(name: string): boolean;
1808
1802
  histogram(): Map<string, number>;
1809
1803
  inverseContrast(): void;
1810
1804
  inverseLevel(blackPoint: Percentage, whitePoint: Percentage): void;
@@ -1878,8 +1872,12 @@ export interface IMagickImage extends IDisposable {
1878
1872
  statistics(): IStatistics;
1879
1873
  statistics(channels: Channels): IStatistics;
1880
1874
  strip(): void;
1875
+ transformColorSpace(target: IColorProfile): boolean;
1876
+ transformColorSpace(source: IColorProfile, target: IColorProfile): boolean;
1881
1877
  threshold(percentage: Percentage): void;
1882
1878
  threshold(percentage: Percentage, channels: Channels): void;
1879
+ thumbnail(width: number, height: number): void;
1880
+ thumbnail(geometry: IMagickGeometry): void;
1883
1881
  toString(): string;
1884
1882
  transparent(color: IMagickColor): void;
1885
1883
  trim(): void;
@@ -2092,12 +2090,14 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
2092
2090
  gaussianBlur(radius: number, sigma: number, channels: Channels): void;
2093
2091
  getArtifact(name: string): string | null;
2094
2092
  getAttribute(name: string): string | null;
2093
+ getColorProfile(): IColorProfile | null;
2095
2094
  getPixels<TReturnType>(func: (pixels: IPixelCollection) => TReturnType): TReturnType;
2096
2095
  getPixels<TReturnType>(func: (pixels: IPixelCollection) => Promise<TReturnType>): Promise<TReturnType>;
2097
2096
  getProfile(name: string): IImageProfile | null;
2098
2097
  getWriteMask<TReturnType>(func: (mask: IMagickImage | null) => TReturnType): TReturnType;
2099
2098
  getWriteMask<TReturnType>(func: (mask: IMagickImage | null) => Promise<TReturnType>): Promise<TReturnType>;
2100
2099
  grayscale(method?: PixelIntensityMethod): void;
2100
+ hasProfile(name: string): boolean;
2101
2101
  histogram(): Map<string, number>;
2102
2102
  inverseContrast: () => void;
2103
2103
  inverseLevel(blackPoint: Percentage, whitePoint: Percentage): void;
@@ -2165,8 +2165,12 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
2165
2165
  statistics(): IStatistics;
2166
2166
  statistics(channels: Channels): IStatistics;
2167
2167
  strip(): void;
2168
+ transformColorSpace(target: IColorProfile): boolean;
2169
+ transformColorSpace(source: IColorProfile, target: IColorProfile): boolean;
2168
2170
  threshold(percentage: Percentage): void;
2169
2171
  threshold(percentage: Percentage, channels: Channels): void;
2172
+ thumbnail(width: number, height: number): void;
2173
+ thumbnail(geometry: IMagickGeometry): void;
2170
2174
  toString: () => string;
2171
2175
  transparent(color: IMagickColor): void;
2172
2176
  trim(): void;
@@ -2183,6 +2187,7 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
2183
2187
  writeToCanvas(canvas: HTMLCanvasElement, settings?: CanvasRenderingContext2DSettings): void;
2184
2188
  protected onDispose(): void;
2185
2189
  private _contrast;
2190
+ private _getProfile;
2186
2191
  private _opaque;
2187
2192
  private _sigmoidalContrast;
2188
2193
  private _transparent;