WASM-ImageMagick icon indicating copy to clipboard operation
WASM-ImageMagick copied to clipboard

option to compile with liblqr?

Open carboniris opened this issue 6 years ago • 1 comments

How might I go about adding liquid-rescale support via libqr?

carboniris avatar Jan 04 '19 01:01 carboniris

Libqr has dependency glib. I didn't see much on compiling glib in webassembly other than https://brionv.com/log/2018/05/27/emscripten-fun-libffi-on-webassembly-part-2/ .

So either figure out how to compile glib in webassembly, or replace the glib dependency in libqr with something else (not sure how much effort required).

After that update https://github.com/KnicKnic/WASM-ImageMagick/blob/master/build.sh to reference libqr library (build.sh also builds other libraries like zlib and can be a hint on how to build stuff for webassembly).

This project uses docker to give you a good emscripten build environment, the following command will build this project when run from the root directory (assuming you have docker installed). docker build -t wasm-imagemagick-build-tools . && docker run --rm --workdir /code -v \"$PWD\":/code wasm-imagemagick-build-tools bash ./build.sh"

KnicKnic avatar Jan 04 '19 07:01 KnicKnic