
I built a system where each blog post generates its own unique image from a content hash
Every post on my blog has a unique square image. It looks like a QR code but it is not. The colors change from one post to another. And at the center, always the same kanji: 忍 (shinobi). These images are not designed manually. They are generated by the content itself. The problem I run a trilingual blog (Spanish, English, Japanese) about integrating AI into professional design work. I publish every three days. Creating a unique header image for each post in three languages was not sustainable. Stock photos felt generic. Midjourney images felt disconnected from the content. I wanted something that was automatic, unique to each post, and visually consistent across the entire site. How it works The system takes two inputs from each post: the title and the character count of the content. The title generates the pattern. It gets hashed using MD5 and SHA1 chained together to produce enough data to fill a 32x32 grid (1024 cells). Each hexadecimal character from the hash maps to one of four ce
Continue reading on Dev.to Webdev
Opens in a new tab

