No description
  • C 94.2%
  • Makefile 5.8%
Find a file
2026-11-09 19:15:59 +01:00
assets Initial implementation for Windows 2026-05-18 23:22:04 +02:00
src feat: save as avif instead of jpg 2026-11-09 19:15:59 +01:00
tests feat: save as avif instead of jpg 2026-11-09 19:15:59 +01:00
.gitignore Initial implementation for Windows 2026-05-18 23:22:04 +02:00
Makefile feat: save as avif instead of jpg 2026-11-09 19:15:59 +01:00
README.md feat: save as avif instead of jpg 2026-11-09 19:15:59 +01:00

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.