A tool to optimize images for the web, allowing conversion, resizing, and compression.
Made using:
- TypeScript
- WebAssembly
- Web Workers
Open source usage:
- @saschazar21's WebAssembly Monorepo. Particularly, wasm-image-loader, wasm-avif, wasm-webp, and wasm-mozjpeg.
Benefits:
- No server needed
- Using client's processor means no business logic/edge/lambda functions required = cost effective
- Can work offline (assuming necessary JavaScript is downloaded on initial load)
To do:
- Research “memory access out of bounds” issue that is sometimes preventing the loading of images
- Implement the Service Worker API and @Touffy's client-side streaming ZIP generator: client-zip