Templates / Enhance & expand Telegram images to 3:2 with CodeFormer & LightX AI

Enhance & expand Telegram images to 3:2 with CodeFormer & LightX AI

Ready for 3.0

by Vadym Nahornyi ✓ · 58 views · created 2025-07-26 · Content Creation, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 26 nodes and runs on Telegram events. Along the way it connects Telegram and AWS S3.

How it runs

Trigger: On Telegram events.

  1. Check If Photo Exists (If): checks a condition and branches into true / false
  2. Set Input URL for AI Model (Edit Fields (Set)): sets or maps fields
  3. Generate Input File Name (.jpeg) (Edit Fields (Set)): sets or maps fields
  4. Generate Output File Name (.png) (Edit Fields (Set)): sets or maps fields
  5. Upload Original Photo to S (AWS S3): uses AWS S3
  6. AI Upscale Image via Replicate (HTTP Request): calls an HTTP API
  7. Generate Public URL for Original Image (Edit Fields (Set)): sets or maps fields
  8. Wait: pauses before continuing
  9. Download Upscaled Image from Replicate (HTTP Request): calls an HTTP API
  10. Calculate Padding for 3:2 Ratio (Code): runs custom JavaScript code

…plus 15 more steps. See the full node list below.

Services it uses

TelegramAWS S3

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (10)

From the author

🚀 Automatically enhance and expand Telegram images with AI This n8n workflow turns your Telegram bot into a powerful AI photo enhancer! Whether users send a photo or a link, it processes the image by: 1. 📥 Receiving the input (photo or link) 2. 🧠 Upscaling…

Excerpt from Vadym Nahornyi's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.