Blog Posts Now Get Auto-Generated Social Cards, Including Japanese and Korean Titles
Until recently, the blog's posts had no og:image, so shared links showed only plain text and article markup lacked an image field. The author added a build-time generator, a 142-line Pillow script, that draws a 1200×630 PNG for every post with the title, category label, brand, and domain on a dark background. Because the cards are drawn in code and not sourced as stock or AI images, there are no image licensing concerns, and the build guarantees that no post ships without a card. Each language uses its own Noto Sans variable font (Latin, Japanese, or Korean), all under the SIL Open Font License, and only the rendered PNGs are deployed. The title is drawn at the largest size from a fixed list that fits within four lines, with line breaks adjusted for Japanese text.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in