- C 94.2%
- Makefile 5.8%
| assets | ||
| src | ||
| tests | ||
| .gitignore | ||
| Makefile | ||
| README.md | ||
Rewind
This is a small tool that periodically takes screenshots in the background every 10 minutes, and saves them as a compact, compressed AVIF image file, named DIR/DATE/TIME.avif. The compression level is automatically adjusted so the file is not larger than 100 KiB.
How to use: After launch, it shows a tray icon. When clicked, opens up the screenshot folder, by default, it is ~/Pictures/RewindShots.
This tool supports macOS, Linux, and Windows.
Build
The current implementation is the Windows tray app.
From Debian/WSL:
sudo apt install make git cmake mingw-w64 yasm
make windows
The first build needs internet access: it fetches libavif 1.3.0 and its pinned
libaom backend. Both are statically linked into build/rewind.exe; no codec
DLLs are needed. GDI+ still handles screen capture and resizing. Existing JPEG
screenshots are left untouched.
Build the AVIF regression test with make test-windows, then run
build/avif-test.exe on Windows (or wine build/avif-test.exe). It checks
AVIF decoding, the size limit, colors, row orientation, unique filenames,
temporary-file cleanup, and write failure handling.
The app icon source is assets/rewind.svg; the Windows icon resource is
assets/rewind.ico.