lumeland / imagemagick-deno

Deno port of the WASM library for ImageMagick
https://deno.land/x/imagemagick_deno
Apache License 2.0
44 stars 3 forks source link

feat: optionally skip caching of wasm file #16

Closed ZibanPirate closed 2 months ago

ZibanPirate commented 2 months ago

deploying imagemagick to deno cloud crashes the app, with this error (caching issues):

Error: cache PUT request failed: 500 Internal Server Error
    at async Cache.put (ext:deno_cache/01_cache.js:155:5)
    at async initialize (https://deno.land/x/imagemagick_deno@0.0.26/mod.ts:33:3)
    at async Object.configResolved (file:///src/plugins/image-resize.ts:96:7)
    at async Promise.all (index 1)
    at async getServerContext (https://deno.land/x/fresh@1.6.8/src/server/context.ts:77:5)
    at async start (https://deno.land/x/fresh@1.6.8/src/server/mod.ts:110:15)
    at async file:///src/main.ts:13:1

it fails here: https://github.com/lumeland/imagemagick-deno/blob/81859c71aa19eb0e7278928b459cab5a1395f312/deno/mod.ts#L33