Social Image Preprocessing Design

Intent

Ensure Bluesky link cards receive a usable thumbnail without changing the image displayed in the article. When a changed post’s header.og_image is larger than 1 MB, CI will create a smaller JPEG beside the source image, update only og_image to point to that derivative, and continue the existing Jekyll deployment and Bluesky workflow.

Goals

Non-goals

Approaches

  1. GitHub Actions preprocessing (selected): inspect changed posts before Jekyll builds, using the repository’s existing Python tooling and a pinned image library. This is automatic and applies consistently from every development machine.
  2. Local-only preprocessing: provide a developer command to prepare images before pushing. This avoids CI work but depends on remembering to run it and cannot protect pushes made elsewhere.
  3. Runtime/theme transformation: generate social images during Jekyll rendering. This does not naturally update source frontmatter and would make the Bluesky step race the generated metadata, so it does not fit the current workflow.

Design

Open implementation calls