When a Pictify customer asked whether they could display a 'PRO' badge on a card only when a user was on a paid plan, founder Suyash Thakur's initial answer was no. At the time, Pictify operated like most image generation APIs: templates accepted variable placeholders, and backend code swapped in values at render time. Simple, but inflexible.
The customer's follow-up question made the limitations starker. They also wanted to change a card's background colour based on a numerical score — green for 80 and above, yellow for 50 to 79, and red for anything below. Without conditional logic in the template itself, that meant maintaining six separate templates: two badge states multiplied by three colour variants. Add further conditions and the count doubles with each new rule.
Thakur heard the same complaint from five other customers within a month. 'Every new condition doubled the template count,' he wrote in a technical post published this week. 'Their simple image API was turning into a combinatorial nightmare managed entirely in application code.'
The core product insight driving the project was straightforward: the people who design and manage templates — marketers, product managers, designers — should not need to file engineering tickets every time they want to add personalisation logic. That logic, Thakur concluded, should live inside the template itself.
Before writing any code, Thakur spent a week evaluating existing tools. His requirements were specific: the system needed to safely evaluate boolean expressions from user-supplied input without executing arbitrary code, and it needed to work at the level of individual canvas objects within a rendered image. No off-the-shelf solution met all the constraints.
The result was a custom-built expression engine of approximately 1,000 lines that Thakur integrated directly into Pictify's rendering pipeline. Templates can now express rules such as conditional visibility, dynamic colour assignment, and variable-driven layout changes. The API caller sends data; the template evaluates conditions and renders accordingly — one template handling what previously required dozens.
The project is notable as an example of a single developer diagnosing a systemic product limitation through customer feedback and building infrastructure-level tooling to resolve it. Thakur, who handles Pictify's backend, frontend, editor, and renderer himself, described the expression engine as transforming the platform 'from a rendering utility into something genuinely useful.'