← heapsort
DOC28

How I cut speech-bubble retries from 70% to 0% with 200 lines of Pillow code

DEV.to AIΒ·May 10, 2026

The author drastically reduced AI image generation retries for unreadable text in speech bubbles by offloading typography to a deterministic post-processing step. This involved having the AI draw empty bubbles and then using Pillow and OpenCV to add readable text, achieving a zero-retry rate for text issues.

Read original β†—