Artifact 5eb4340e227b3885e0c81fb1db9fbf9afe84976763be86f0088d5347615474c4:
- File
src/export_pi.c
-
2026-11-20 00:08:59
— part of check-in
[0cc6f109a2]
on branch images
— Images: validate at entry, cap per request, prune by retention
Every image is checked from its header (PNG IHDR with CRC, JPEG frame header, GIF screen, WebP) as Fossil sniffs types: an invalid header, a type that isn't the declared one, more than 8000 px a side or over 4.5 MB is refused; the stored type is the sniffed one, with width and height. RPC image errors are reported, never dropped. A request carries the newest 20 images up to 20 MB; older ones become Pi's placeholder. Image bytes are dropped once compacted away or after imageRetentionDays (default 30; 0 keeps them), leaving hash, type and size and an "[image removed]" placeholder; pic prune [--dry-run] runs it, and it also runs at open at most hourly. pic check re-hashes images. Imports keep images. Journal version 10. (user: dmestas, size: 20591) [annotate] [blame] [check-ins using]
- 2026-11-20 00:37:10 — part of check-in [2a29f15311] on branch cache — Merge images into prompt caching (user: dmestas, size: 20591) [annotate] [blame] [check-ins using]
-
2026-11-20 00:08:59
— part of check-in
[0cc6f109a2]
on branch images
— Images: validate at entry, cap per request, prune by retention