Back to Templates

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

Created by

Created by: Vadym Nahornyi || vadym-nahornyi
Vadym Nahornyi

Last update

Last update 4 months ago

Categories

Share


๐Ÿš€ 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 quality using Replicate's CodeFormer
  3. ๐Ÿ“ Analyzing image dimensions and calculating paddings to fit the 3:2 ratio
  4. ๐Ÿ–ผ๏ธ Expanding the image contextually with LightX AI
  5. โ˜๏ธ Uploading the result to S3
  6. ๐Ÿ”— Sending back a public URL to the user in Telegram

๐Ÿ‘ฅ Who is it for?

  • Telegram bot creators
  • Content creators & photographers
  • SMM pros looking to quickly polish user images
  • AI enthusiasts who want plug-and-play image workflows

๐Ÿ› ๏ธ Setup Requirements

  • A Telegram bot (via @BotFather)
  • AWS S3 Bucket (public)
  • Replicate API key
  • LightX API key

๐Ÿ”ง How to customize

  • Add custom prompts or ratio in JavaScript node
  • Connect to other AI tools for filters or style transfer
  • Switch storage destination (e.g. Google Drive or Dropbox)

๐Ÿ’ก Tips

  • Works great in photo-related communities
  • Can be used for virtual try-ons, image recovery or thumbnail generation

๐ŸŒ Languages

The main sticky note can be localized โ€” feel free to swap it for your audience!