-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update imagequant processor * Update mozjpeg encoder * Update optipng encoder * Update webp decoder * Update webp encoder * Remove old codec build tasks * Add warning about docker image updates
- Loading branch information
1 parent
d2f60ba
commit 577c77c
Showing
19 changed files
with
177 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
export OPTIMIZE="-Os" | ||
export LDFLAGS="${OPTIMIZE}" | ||
export CFLAGS="${OPTIMIZE}" | ||
export CPPFLAGS="${OPTIMIZE}" | ||
|
||
echo "=============================================" | ||
echo "Compiling libimagequant" | ||
echo "=============================================" | ||
( | ||
emcc \ | ||
--bind \ | ||
${OPTIMIZE} \ | ||
-s ALLOW_MEMORY_GROWTH=1 \ | ||
-s MODULARIZE=1 \ | ||
-s 'EXPORT_NAME="imagequant"' \ | ||
-I node_modules/libimagequant \ | ||
--std=c99 \ | ||
-c \ | ||
node_modules/libimagequant/{libimagequant,pam,mediancut,blur,mempool,kmeans,nearest}.c | ||
) | ||
echo "=============================================" | ||
echo "Compiling wasm module" | ||
echo "=============================================" | ||
( | ||
emcc \ | ||
--bind \ | ||
${OPTIMIZE} \ | ||
-s ALLOW_MEMORY_GROWTH=1 \ | ||
-s MODULARIZE=1 \ | ||
-s 'EXPORT_NAME="imagequant"' \ | ||
-I node_modules/libimagequant \ | ||
-o ./imagequant.js \ | ||
--std=c++11 *.o \ | ||
-x c++ \ | ||
imagequant.cpp | ||
) | ||
echo "=============================================" | ||
echo "Compiling wasm module done" | ||
echo "=============================================" | ||
|
||
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" | ||
echo "Did you update your docker image?" | ||
echo "Run \`docker pull trzeci/emscripten\`" | ||
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" |
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
export OPTIMIZE="-Os" | ||
export LDFLAGS="${OPTIMIZE}" | ||
export CFLAGS="${OPTIMIZE}" | ||
export CPPFLAGS="${OPTIMIZE}" | ||
|
||
echo "=============================================" | ||
echo "Compiling wasm bindings" | ||
echo "=============================================" | ||
( | ||
emcc \ | ||
${OPTIMIZE} \ | ||
--bind \ | ||
-s ALLOW_MEMORY_GROWTH=1 \ | ||
-s MODULARIZE=1 \ | ||
-s 'EXPORT_NAME="webp_dec"' \ | ||
--std=c++11 \ | ||
-I node_modules/libwebp \ | ||
-o ./webp_dec.js \ | ||
node_modules/libwebp/src/{dec,dsp,demux,enc,mux,utils}/*.c \ | ||
-x c++ \ | ||
webp_dec.cpp | ||
) | ||
echo "=============================================" | ||
echo "Compiling wasm bindings done" | ||
echo "=============================================" | ||
|
||
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" | ||
echo "Did you update your docker image?" | ||
echo "Run \`docker pull trzeci/emscripten\`" | ||
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
export OPTIMIZE="-Os" | ||
export LDFLAGS="${OPTIMIZE}" | ||
export CFLAGS="${OPTIMIZE}" | ||
export CPPFLAGS="${OPTIMIZE}" | ||
|
||
echo "=============================================" | ||
echo "Compiling wasm bindings" | ||
echo "=============================================" | ||
( | ||
emcc \ | ||
${OPTIMIZE} \ | ||
--bind \ | ||
-s ALLOW_MEMORY_GROWTH=1 \ | ||
-s MODULARIZE=1 \ | ||
-s 'EXPORT_NAME="webp_enc"' \ | ||
--std=c++11 \ | ||
-I node_modules/libwebp \ | ||
-o ./webp_enc.js \ | ||
node_modules/libwebp/src/{dec,dsp,demux,enc,mux,utils}/*.c \ | ||
-x c++ \ | ||
webp_enc.cpp | ||
) | ||
echo "=============================================" | ||
echo "Compiling wasm bindings done" | ||
echo "=============================================" | ||
|
||
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" | ||
echo "Did you update your docker image?" | ||
echo "Run \`docker pull trzeci/emscripten\`" | ||
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters