0004. Store moodboard images as metadata-free WebP with dated names

accepted Decided 23 November 2026

Context

The user collects inspiration images (mostly Pinterest and Xiaohongshu downloads) and wants them in git without taking too much space, with metadata removed and descriptive names.

Options

  1. Keep the original JPEGs: simplest, but larger and full of metadata.
  2. Re-encode as JPEG: tried; only 570 KB → 552 KB, because the downloads were already compressed.
  3. Git LFS: keeps the repo light, but adds setup and isn't needed at this size.
  4. Convert to WebP: 570 KB → 223 KB for the first batch, with no visible quality loss.

Decision

WebP (option 4), processed by scripts/process-inspiration.py:

  • max 1000 px on the long edge, quality 75;
  • all metadata stripped (EXIF, XMP, ICC), with colours converted to sRGB first so they don't shift;
  • named insp-YYYYMMDD-HHMM-description.webp, where the date and time are when the file was added. The insp- prefix and timestamp were the user's request; the description is written by the agent after looking at the image.

Consequences

  • The moodboard stays small (12 images ≈ 676 KB).
  • Visible watermarks in images are not removed by stripping metadata. Crop them before the repo goes public.

Follow the research

Occasional notes from the lab as the factory takes shape: what we tried, what worked, and what didn’t.