pi-image-compact0.1.2
Pi extensions that keep screenshot-heavy sessions small: near-lossless WebP, a request image budget, pruning after compaction, and a footer indicator.
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme

English · 简体中文 · Español · Русский
pi-image-compact
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).

https://github.com/user-attachments/assets/0c29e6ea-4655-4c62-b5bc-14967bd5dcc7
Also on YouTube.
pi install npm:pi-image-compact
Four independent extensions; turn any of them off with pi config: compress · budget · prune · status

Development
npm install && npm test
Contributing
I am still learning, so ideas, issues and pull requests are all very welcome.
License
MIT