English · 简体中文 · Español · Русский · 日本語
Keeps image-heavy Pi sessions small, so a pile of screenshots no longer ends in a 413 "request too large" error. In a modelled session of 12 large figures, every request stays under 16 MB and the session sends about half the image tokens (182k instead of 373k). On a public test set of 12 screenshots, plots and photos, WebP made the images a third smaller (3.22 → 2.16 MB).
pi-image-compact.mp4
Also on YouTube.
pi install npm:pi-image-compactFour independent extensions; turn any of them off with pi config: compress · budget · prune · status
npm install && npm testI am still learning, so ideas, issues and pull requests are all very welcome.
MIT


