You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use magick-wasm in a use case where I will be downloading/proxying a lot of favicons from the web in a Deno app. They will be in either PNG or legacy ICO/ICON format. Locally installed versions of imagemagick can handle these files fine but I'm having difficulty with magick-wasm.
Both of those files give an error about NoDecodeDelegateForThisImageFormat @ error/blob.c/BlobToImage/460. If I use the magick-image test page, it will load that PNG, but not the ICO.
Thank you! Does the convert cli do extra detection to handle ICO files? I've never had to tell imagemagick it was an icon from the CLI. It is easy enough for me to check the magic bytes at the beginning of the array to determine if I need to handle it like an ICO though.
Adding MagickFormat.Ico did get me past that error, but now I'm experiencing this:
The cli uses the file extension because the ico format has no magic bytes. Not sure how to add that to this api yet but that might be something support could be added for in the future
And if I remember correctly I was able to read your file without any issues. Will give it a try with your code later tonight to figure out what I did differently.
magick-wasm version
0.22
Description
I am trying to use magick-wasm in a use case where I will be downloading/proxying a lot of favicons from the web in a Deno app. They will be in either PNG or legacy ICO/ICON format. Locally installed versions of imagemagick can handle these files fine but I'm having difficulty with magick-wasm.
Two example files:
Version and delegate information:
Both of those files give an error about
NoDecodeDelegateForThisImageFormat @ error/blob.c/BlobToImage/460
. If I use themagick-image
test page, it will load that PNG, but not the ICO.This is the code I'm using:
Questions:
Steps to Reproduce
dist
folder for 0.22Images
No response
The text was updated successfully, but these errors were encountered: