[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.
If someone wants to fix this, see https://github.com/KnicKnic/WASM-ImageMagick#build-instructions and update https://github.com/KnicKnic/WASM-ImageMagick/blob/master/build.sh
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