KnicKnic / WASM-ImageMagick

Webassembly compilation of https://github.com/ImageMagick/ImageMagick & samples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Not an Issue] - use emscripten ports for libpng and zlib instead of own forks

cancerberoSgx opened this issue · comments

This is not an issue - just a heads up.

emcc supports official ports for relevatn libraries like zlib and libpng. Perhaps is a good idea to use those instead of compiling and maintaining our own project forks ? https://kripken.github.io/emscripten-site/docs/compiling/Building-Projects.html#emscripten-ports

Supposedly is just a matter of using -s USE_ZLIB=1 -s USE_LIBPNG=1 and that should be all.

zlib form emscripten port can be used but not libpng which needs to be patched in order to work with emcc cancerberoSgx/png@62b9724

Although more relevant ports have been added to emscripten like libjpeg, I think the best approach is to use ImageMagick's project's for library delegates so I'm closing this