Jake Archibald
7346511fa1
Merge v2 codecs ( #844 )
...
* wip
* doh, whitespace
* Updating emscripten, restoring export name
* Updating oxipng
* Build wasm
* Fix oxipng; upgrade Rust
* More v2-codec integration
* AVIF now working
* Non-working JXL
* Build hqx with Rust 1.40; refactor build-rust*.sh
* Set web target
* wp2 wip
* wp2 decode options
* Better logo height when loading the logo into squoosh
* Build oxi
* JAKE IS AN IDIOT
* wip oxipng
* Fixing case sensitive imports
* adding log
* another log
* Abort tasks when compress component removed
* Adding progressive option to JXL
* Fix bug going to & from original image
* Exposing epf in jxl
* logs
* Bypass initial CSS plugin
* Revert "logs"
* Adding root
* Fix for finding TSC on Windows
* Use spawn again
* Converting to module paths
* Remove spawnP
* silly
* oops
* logs
* Fixing glob paths in CSS plugin
* Path normalising
* Normalise paths for CSS plugin
* Normalise again
* Use correct func
* Adding lossless mode and near lossless (but hidden in UI)
* Removing useless comments
* Some logging
* Update JXL to v0.1. (#846 )
* Rebuild JXL
* Adding slight loss option
Co-authored-by: Ingvar Stepanyan <rreverser@google.com >
Co-authored-by: Luca Versari <veluca93@gmail.com >
2020-11-19 10:55:43 +00:00
Jake Archibald
f92e3c2194
Move encode options definition to the wasm
2020-09-16 12:30:26 +01:00
Jake Archibald
a6477b82fc
wip
...
# Conflicts:
# codecs/cpp.Dockerfile
# codecs/imagequant/example.html
# codecs/webp/dec/webp_dec.d.ts
# codecs/webp/dec/webp_dec.js
# codecs/webp/dec/webp_dec.wasm
# codecs/webp/enc/webp_enc.d.ts
# codecs/webp/enc/webp_enc.js
# codecs/webp/enc/webp_enc.wasm
# package-lock.json
# package.json
# src/codecs/tiny.webp
# src_old/codecs/encoders.ts
# src_old/codecs/processor-worker/tiny.avif
# src_old/codecs/processor-worker/tiny.webp
# src_old/codecs/tiny.webp
# src_old/components/compress/index.tsx
# src_old/lib/util.ts
# src_old/sw/util.ts
2020-09-16 10:08:50 +01:00
Jake Archibald
9d81a9cd57
Merge branch 'dev' into avif-options
2020-08-26 12:39:40 +01:00
Surma
d4f8b7f38b
Add LICENSES to codecs
2020-08-21 13:44:36 +01:00
Ingvar Stepanyan
8036579a3c
RawImage -> ImageData; report errors with null
2020-08-05 15:10:33 +01:00
Ingvar Stepanyan
1a26057452
Switch from napa to curl
...
Instead of using 127 deps brought by napa just to download the one dependency we actually care about, just use curl & tar directly from Makefile.
2020-07-30 13:28:41 +01:00
Ingvar Stepanyan
d1cff7d84e
Consolidate C++ builds
...
Use a shared base image with fixed Emscripten version, autotools and optimisation flags for all C++ codecs.
Additionally, move build commands for codecs themselves to Makefile - they're already platform-specific, and Make allows for better caching and parallelisation that custom ad-hoc scripts.
This is essentially same as #777 but for C++.
2020-07-28 18:05:09 +01:00
Ingvar Stepanyan
e342766cbf
Switch vals to thread_locals
...
It's not possible to share them across threads, so in case we decide to use multithreading in the future, it's best to mark them as thread_local right away, even if it's a no-op right now.
2020-07-28 16:35:00 +01:00
Ingvar Stepanyan
f1cd6a87da
Update JS/Wasm
2020-07-28 16:35:00 +01:00
Ingvar Stepanyan
93cbe557cd
Simplify memory management for other C++ codecs
2020-07-28 16:35:00 +01:00
Ingvar Stepanyan
1ae93b527c
Revert docker run --rm change
2020-05-13 19:39:27 +01:00
Ingvar Stepanyan
a95cb740bf
Format C / C++ with Chromium style
2020-05-13 19:39:27 +01:00
Ingvar Stepanyan
de543b3206
Further speed improvements
...
- Store Emscripten cache inside node_modules/.em_cache. Docker image ships without LTO libs, so Emscripten has to rebuild stdlibs on every build otherwise.
- Merge webp_enc + webp_dec build scripts. Core libwebp library is same in both cases, so there's no point in storing and building two copies of it.
2020-05-13 19:39:27 +01:00