Artifact 1405f7bdcd8377c827bd2d481761981ca2ee7de1cbd4145a332d9ed0b532b619:
- File
src/transform.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: 20055) [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: 20055) [annotate] [blame] [check-ins using]
- 2026-11-20 00:59:37 — part of check-in [6432af2cbc] on branch trunk — CI green on 76939caa663b; Fil-C pass (215); reviewed twice (user: dmestas, size: 20055) [annotate] [blame] [check-ins using]
- 2026-11-20 02:28:00 — part of check-in [f7b1bab2f5] on branch highlight — Merge trunk into the syntax highlighter (user: dmestas, size: 20055) [annotate] [blame] [check-ins using]
- 2026-11-20 11:17:07 — part of check-in [fa1d0f1004] on branch tui-round-3 — Merge trunk into tui-round-3: images, caching, costs, Gemini, hooks seam; pic_bash kept at journal v10 (user: dmestas, size: 20055) [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