How to use Morphology? #107
-
I just cannot import MorphologyMethod from "@imagemagick/magick-wasm"; |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 3 replies
-
This not yet available in the current API but I just pushed a patch to make this available in the next release. |
Beta Was this translation helpful? Give feedback.
-
maybe you could help a bit to build it - would be awesome.
this looks great. But if I want to use it with same old code as before (not using new Morphology - just some scaling) I am getting now |
Beta Was this translation helpful? Give feedback.
-
yes you are right I moved for new version some things and forgot to change path in initializeImageMagick() call. Works now. |
Beta Was this translation helpful? Give feedback.
-
I made some tests now and Morphology is working but it is up to 30 times slower than on same computer on command line:
compared to:
this is 34 sec in browser (same computer). |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
One reason for a longer duration could be that this all runs on a single thread and your command line uses multi threading. |
Beta Was this translation helpful? Give feedback.
This not yet available in the current API but I just pushed a patch to make this available in the next release.