dispatches from the margins

Image Test

2026-06-16

Images go in static/img/ and get referenced like any other static asset. The build script copies the whole static/ tree to output/static/ unchanged.

amber dot grid

To add an image to a post:

  1. Compress it. Phone photos are 4MB. That is not a web image.
  2. Drop it in static/img/.
  3. Reference it in markdown as ![alt text](/static/img/filename.jpg).
  4. Run python3 build.py.

For compression: cwebp -q 80 input.jpg -o output.webp or jpegoptim --max=85 photo.jpg. Under 200kb for most images, under 500kb for anything you genuinely need at full resolution. Do not need things at full resolution.

Write actual alt text.


#TODO: implement auto image compression.  another build step _might_ be okay.