@pbk20191/icodec 0.6.7 → 0.6.9
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/mozjpeg.wasm +0 -0
- package/dist/pngquant_bg.wasm +0 -0
- package/dist/webp-enc.wasm +0 -0
- package/lib/heic.d.ts +2 -0
- package/lib/heic.js +6 -0
- package/package.json +1 -1
package/dist/mozjpeg.wasm
CHANGED
|
Binary file
|
package/dist/pngquant_bg.wasm
CHANGED
|
Binary file
|
package/dist/webp-enc.wasm
CHANGED
|
Binary file
|
package/lib/heic.d.ts
CHANGED
|
@@ -67,3 +67,5 @@ export declare function loadEncoder(input?: WasmSource): Promise<any>;
|
|
|
67
67
|
export declare function loadDecoder(input?: WasmSource): Promise<any>;
|
|
68
68
|
export declare function encode(image: ImageDataLike, options?: Options): Uint8Array<ArrayBufferLike>;
|
|
69
69
|
export declare function decode(input: BufferSource): ImageData;
|
|
70
|
+
export declare function unloadDecoder(): void;
|
|
71
|
+
export declare function unloadEncoder(): void;
|
package/lib/heic.js
CHANGED
|
@@ -41,3 +41,9 @@ export function encode(image, options) {
|
|
|
41
41
|
export function decode(input) {
|
|
42
42
|
return check(decoderWASM.decode(input), "HEIC Decode");
|
|
43
43
|
}
|
|
44
|
+
export function unloadDecoder() {
|
|
45
|
+
decoderWASM = undefined;
|
|
46
|
+
}
|
|
47
|
+
export function unloadEncoder() {
|
|
48
|
+
encoderWASM = undefined;
|
|
49
|
+
}
|