Canvas doesn't wrap text — my OG image generator painted titles off the 1200px edge
This story is from 2026-10-03. It is preserved in the archive; the latest stories are on the live feed.
When I built an OG image generator — POST a title and description, get back a 1200x630 social-card PNG — the first render looked perfect. The second, a ~90-character title about database indexing, ran clean off the right edge and clipped mid-word. The root cause was embarrassing: Canvas's fillText(…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-10-03 23:33 · DEV Community — AI
Canvas doesn't wrap text — my OG image generator painted titles off the 1200px edge