One slider, and a clock on every file
Release 0.1.1 adds the Image Compression slider with its lossless limit, per-file progress, Compress again and Convert remaining.
What changed
- An Image Compression slider opens at 30 and reads out two numbers that add up to 100: compression on the left, file size on the right.
- Up to the tick at 40 every setting is lossless: more search effort for a smaller file, the same pixels.
- Past 40 the picture changes — colours are reduced to a palette of 256 down to 8 — and the block says Quality loss.
- Each card names its step (Decoding, Reducing colours, Compressing, Optimising) and counts the seconds it has taken.
- Compress again re-runs the list at a new setting; Convert remaining finishes a cancelled run and keeps the finished files.
The slider
The first release squeezed every file as hard as it could. That is the right default and the wrong only setting: the lossless search costs seconds per megapixel, and a reader who wants a thumbnail does not need to wait for it.
Version 0.1.1 adds one slider, shown once there is a file to apply it to. It opens at 30 and reads out two numbers that always add up to 100 — Image Compression on the left, File Size on the right — with the track split at the thumb in the two colours of those labels, so moving it visibly trades one for the other. The file size is the setting’s nominal share, not a measurement: a real conversion of a large file takes minutes, far too long to redo on every move.
There is a tick at 40. Below it every position is lossless: more search effort for a smaller file, and the same pixels. Past it the picture changes, colours are reduced to a palette of 256, 128, 64, 32, 16 or 8 entries before the file is written, and the block says Quality loss in as many words. On a noisy test image the PNG went from 223 KB lossless to 42 KB at 45 and 7 KB at 100.
A clock, not a guess
Each card now names the step it is on — Decoding, Reducing colours, Compressing, Optimising — and counts the seconds. A batch bar behind the list fills as files finish. Before this a large file sat on Converting for two minutes with nothing to say for itself, which reads as hung.
The second run
Compress again converts the whole list once more at the slider’s new value and replaces the finished results. A cancelled run leaves Convert remaining beside it, which finishes only the cancelled files and keeps the others. After a run the slider only goes forward: positions below the value that run used are closed, because a file that has already been through the setting cannot be made better by less effort. Convert more files opens the whole scale again.