
I took a multi-day detour to add a proof-of-concept feature to my #WordPress photo blog.
- on post save/update
- loop through blocks
- images: included
- videos: use ffmpeg to produce a video poster image
- use PHP GD lib to combine images into gridded collage
- additional "+#" count overlay
- save the result to the media library
- sets the attachment as the post's featured image & og:image tag
I'm going to take a few days to clean up the code and produce a small writeup.