Image Test
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.
To add an image to a post:
- Compress it. Phone photos are 4MB. That is not a web image.
- Drop it in
static/img/. - Reference it in markdown as
. - 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.