No description
  • Rust 39.7%
  • TypeScript 37.6%
  • Vue 11.7%
  • Python 5.9%
  • JavaScript 2.5%
  • Other 2.5%
Find a file
Meisterlala 133ad40fb3
Update README with first load time information
Added note about first load time for the online tool.
2026-10-21 00:34:54 +02:00
crates perf(coolchic): batch GPU training with resident SOAP state 2026-10-20 13:06:42 +02:00
deploy Initial commit 2026-10-20 00:32:37 +02:00
docs fix(coolchic): stream uploads without exhausting Vulkan host-visible memory 2026-10-20 15:44:56 +02:00
public feat(website): update metadata and add favicon, apple-touch-icon, and sitemap for SEO 2026-10-20 21:32:59 +02:00
scripts feat(website): update metadata and add favicon, apple-touch-icon, and sitemap for SEO 2026-10-20 21:32:59 +02:00
src feat(website): update metadata and add favicon, apple-touch-icon, and sitemap for SEO 2026-10-20 21:32:59 +02:00
tests feat(website): update metadata and add favicon, apple-touch-icon, and sitemap for SEO 2026-10-20 21:32:59 +02:00
.dockerignore Initial commit 2026-10-20 00:32:37 +02:00
.gitignore perf(coolchic): automatically parallelize WASM training across CPU workers 2026-10-20 04:22:41 +02:00
Dockerfile Clean up docs and legacy GPU code; improve GPU controls and container builds 2026-10-20 12:29:49 +02:00
index.html feat(website): update metadata and add favicon, apple-touch-icon, and sitemap for SEO 2026-10-20 21:32:59 +02:00
LICENSE Initial commit 2026-10-20 00:32:37 +02:00
package-lock.json feat(coolchic): implement reference-parity GPU resident tensor graph 2026-10-20 05:36:49 +02:00
package.json feat(coolchic): implement reference-parity GPU resident tensor graph 2026-10-20 05:36:49 +02:00
playwright.config.ts Initial commit 2026-10-20 00:32:37 +02:00
README.md Update README with first load time information 2026-10-21 00:34:54 +02:00
tsconfig.json Initial commit 2026-10-20 00:32:37 +02:00
vite.config.ts perf(coolchic): fuse GPU training kernels and replay captured compute graphs 2026-10-20 06:14:21 +02:00

Image compression playground

View it all online at https://compress.meisterlala.dev (first load might take 1min, it scales from 0)

Compare JPEG AI, JPEG, AVIF, JPEG XL and Cool-chic v5 in your browser. Images stay on your device; there is no backend. Previews and metrics use decoded output bytes. Download compressed files or decoded PNGs; work is saved locally across reloads.

Run

Requires Node 22.12+, npm, Git, Rust 1.89+ and wasm-pack.

rustup target add wasm32-unknown-unknown
cargo install wasm-pack --locked
rustup toolchain install nightly-2026-02-28 --profile minimal --component rust-src --target wasm32-unknown-unknown
npm ci
npm run build:wasm
npm run dev

Open http://localhost:5173. For JPEG AI, first run npm run models (about 440 MiB of pinned checkpoints), then download the desired models in the app. Target-bitrate search needs all four models for the selected operating point.

Rebuild WASM after Rust changes. Vite and npm run build:web do not compile Rust. Generated WASM and model bundles are not committed.

Codecs and limits

  • JPEG AI: SOP/BOP/HOP, CPU encoding, optional WebGPU decoding.
  • JPEG: MozJPEG, progressive encoding and chroma subsampling.
  • AVIF / JPEG XL: lossy and lossless encoding.
  • Cool-chic v5: per-image training, LOP/MOP/HOP/VHOP, rate and iteration controls. Optional GPU training; automatic CPU SIMD/threading. See the codec README and acceleration docs.

Neural encoding can be slow. Quality and bitrate controls differ across codecs. Metrics are PSNR, luma SSIM and bits per pixel; file sizes exclude shared JPEG AI models. This is a playground, not a standardized benchmark.

Inputs are 8-bit sRGB still images: alpha is composited on white, metadata is removed. No HDR or animation. Limits: 40 MiB input, 40 million pixels; Cool-chic allows 4 million pixels and dimensions below 16384. Neural jobs estimated above 3 GiB are rejected; above 1.5 GiB require confirmation. Estimates cannot guarantee available memory, and browser decoding may allocate before checks. Downscaling is explicit. Browser storage can be evicted; saved work is not a backup.

Build and test

npm run check
npm test
npm run models
npm run build           # WASM, source archive, then frontend → dist/
npm run test:e2e        # production build; Playwright Chromium required
npm run preview        # http://localhost:4173

Serve dist/ at the origin root over HTTPS with WASM MIME support and COOP/COEP headers for shared-memory acceleration. Vite and deploy/nginx.conf supply these. Without shared-memory support, Cool-chic uses single-thread SIMD WASM. Missing WebGPU disables GPU training, not CPU threading. Docker serves a prebuilt dist/:

docker build -t image-compression-demo .
docker run --rm -p 8080:80 image-compression-demo

Build and push a multi-architecture image

With the build prerequisites above and Docker Buildx installed:

docker login registry.meisterlala.dev
./scripts/build-and-push.sh          # :latest
./scripts/build-and-push.sh v0.1.0   # explicit tag

The script runs npm ci, prepares models, and builds WASM and the frontend on the host, then pushes registry.meisterlala.dev/image-compression for linux/amd64 and linux/arm64. Override IMAGE, PLATFORMS, or BUILDER via environment variables. The first model download is about 440 MiB.

Code: src/ (Vue/workers), crates/codec/ (JPEG AI/metrics), crates/coolchic/ (Cool-chic), scripts/ (builds/verification). See persistence for local state APIs.

License

AGPL-3.0-only. Keep /source.tar.gz and /legal/ with production deployments. Third-party terms also apply; open-source licenses do not provide patent clearance.