Skip to content

fix(og): preserve unchanged generated images - #17

Merged
TimeToBuildBob merged 1 commit into
masterfrom
fix-og-incremental
Apr 30, 2026
Merged

fix(og): preserve unchanged generated images#17
TimeToBuildBob merged 1 commit into
masterfrom
fix-og-incremental

Conversation

@TimeToBuildBob

Copy link
Copy Markdown
Owner

Summary

  • add pixel-equality save guard for generated OG images
  • make post/default generators return whether they actually wrote files
  • add regression tests for preserving mtimes on identical output

Verification

  • uv run --with pillow,pyyaml,pytest pytest tests/test_generate_og_images.py -q
  • uv run --with pillow,pyyaml python3 scripts/generate_og_images.py after touching a tracked post: 0 generated, 404 skipped, existing OG mtime unchanged

@TimeToBuildBob
TimeToBuildBob merged commit 96cb09e into master Apr 30, 2026
1 check passed
@TimeToBuildBob
TimeToBuildBob deleted the fix-og-incremental branch April 30, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant