Contextual Reconstructive Entropy
Optimize L(x|M,C,ε) — ship fewer bytes given shared model, content context, and perceptual error. Shannon still holds; the problem we solve is better.
Contextual Reconstructive Entropy · PIXU format · Zero dependencies · TypeScript

npm install @pantanal/pixuimport { compress, buildDownloadName } from '@pantanal/pixu';
const result = await compress(file, {
format: 'image/pixu',
enableSmartQuality: true,
stripMetadata: true,
});
console.log(result.compressionRatio);
console.log(buildDownloadName('photo', result.format)); // photo.webp or photo.jpgPixu minimizes shipped bytes under Contextual Reconstructive Entropy —
Pick a sample photo or upload your own — same layout as the framework examples.
Pick a sample or upload your own image
PixuCompressor with real sample images
Click or drag image here to compress
Supports JPEG, PNG, WEBP, AVIF, PIXU
Or try a real sample
| Framework | Port | Command |
|---|---|---|
| Vue 3 | 3000 | cd examples/vue && npm run dev |
| React | 3001 | cd examples/react && npm run dev |
| Angular | 4200 | cd examples/angular && npm start |
| Svelte | 3002 | cd examples/svelte && npm run dev |
| Jacaré | 3003 | cd examples/jacare && npm run dev |
Build the library first: npm run build from the repo root.