Batch Ad Banner Generator with gpt-image-2 and Sharp
This workflow automates batch ad banner production from existing source images.
It is designed for teams that already store campaign source images in Google Drive and want to generate multiple ad formats such as 300x250, 728x90, 160x600, 320x100, 300x50, and 970x250.
The workflow uses Google Sheets as the job queue. Each row contains the source Google Drive file ID, edit instruction, headline, CTA, target banner sizes, and output folder ID. n8n downloads the source image from Google Drive, passes it to the native OpenAI Edit Image node for optional refinement, then uses a Code node with sharp to crop and resize the image into exact pixel dimensions. The generated banners are uploaded back to Google Drive, and the workflow updates the original Google Sheets row with output links, file names, timestamp, and status.
This approach avoids asking an image model to generate every ad size directly. The model handles the creative refinement, while sharp handles deterministic resizing and exact banner dimensions.
Related Templates
Use OpenRouter in n8n versions <1.78
What it is: In version 1.78, n8n introduced a dedicated node to use the OpenRouter service, which lets you to use a lot...
AI SEO Readability Audit: Check Website Friendliness for LLMs
Who is this for? This workflow is designed for SEO specialists, content creators, marketers, and website developers who ...
Text automations using Apple Shortcuts
Overview This workflow answers user requests sent via Mac Shortcuts Several Shortcuts call the same webhook, with a quer...
š Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments