Closed danielfroz closed 5 months ago
import {
ImageMagick,
IMagickImage,
initializeImageMagick,
MagickFormat,
} from 'npm:@imagemagick/magick-wasm';
const wasmFile = import.meta.resolve('./magick.wasm');
const file = await fetch(wasmFile);
const wasm = await file.arrayBuffer();
await initializeImageMagick(wasm);
I was able to work around this issue by using npm:@imagemagick/magick-wasm and copying out the wasm file into my codebase. Now works when compiled.
Hi,
I am facing panick errors while optimizing images using the "https://deno.land/x/imagemagick_deno@0.0.26/mod.ts" package.
I added debug log statements before and after any function where has some action and noticed that this happens while working with this package.
Here is the error from the backtrace:
I am using denoland/deno:alpine-1.39.4 build at my cloud.
BTW tried to upgrade to the latest release (1.40.2)... but unfortunately Decorators implementation is breaking my code. I am using tsyringe (https://github.com/microsoft/tsyringe) in my code. So the upgrade does not work even adding "experimentalDecorators"; it compiles but at runtime it complains on "@singleton".
The error reported and also the error on release 1.40 does not happen on my computer (Mac m1). Downgraded deno to release 1.39.4 on my computer as well.
Please let me know how to fix this?