惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 叶小钗
V
Visual Studio Blog
雷峰网
雷峰网
J
Java Code Geeks
博客园 - 三生石上(FineUI控件)
人人都是产品经理
人人都是产品经理
MyScale Blog
MyScale Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog RSS Feed
C
Check Point Blog
博客园 - Franky
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 【当耐特】
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
V2EX
D
Docker
IT之家
IT之家
博客园 - 聂微东
腾讯CDC
U
Unit 42
Microsoft Security Blog
Microsoft Security Blog
The Cloudflare Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
I was spending 2 hours a week making thumbnails. Here's t...
Aldin Kozica · 2026-05-14 · via DEV Community

I run a small content automation pipeline. RSS feeds, AI summaries, auto-publishing — the usual stuff.

Everything was automated except thumbnails.

Every time a new blog post went live, I'd open Canva, drag some text around, pick a background, export it, upload it. 10–15 minutes per post. Multiply that by 8–10 posts a week and you get the picture.

It wasn't hard work. It was boring work. The worst kind.

So I spent a weekend building a workflow that does it for me. Here's exactly how it works.


The setup

My publishing pipeline already ran on n8n. When a new post goes live on my blog, a webhook fires and kicks off a chain: notify newsletter, post to Twitter, update Notion.

Adding thumbnail generation was just one more node.

The idea: when a post publishes → generate a thumbnail → upload it back to the CMS.


The HTTP node that does the work

I used ThumbAPI — a REST API that takes a title and returns a ready-made thumbnail image. One POST request, one image back as base64.

Here's the exact node config in n8n:

Method: POST

URL: https://api.thumbapi.dev/v1/generate

Authentication: Header — Authorization: Bearer YOUR_API_KEY

Body (JSON):

{
  "title": "{{ $json.post_title }}",
  "format": "blogpost",
  "imageStyle": "faceless"
}

Enter fullscreen mode Exit fullscreen mode

That's it. The $json.post_title pulls the title from the previous node in the workflow — whatever just triggered the webhook.


What comes back

The response looks like this:

{
  "image": "data:image/webp;base64,/9j/4AAQSkZJRgAB...",
  "format": "blogpost",
  "dimensions": { "width": 1200, "height": 630 }
}

Enter fullscreen mode Exit fullscreen mode

A base64 WebP image, correct dimensions for blog OG images (1200×630), ready to use.


Connecting it to my CMS

Next node: an HTTP request to my CMS API to upload the image and attach it to the post. The exact steps depend on your CMS — I'm on a custom setup — but if you're on WordPress, Ghost, or anything with a REST API, it's the same pattern: decode base64, POST to your media endpoint, get back an image ID, attach to the post.

In n8n this is just two more nodes:

  1. Code node — strip the data:image/webp;base64, prefix and convert to binary
  2. HTTP node — POST to your CMS media endpoint

The full workflow in plain English

Blog post published (Webhook)
  → Generate thumbnail (HTTP POST to ThumbAPI)
  → Convert base64 to binary (Code node)
  → Upload to CMS (HTTP POST to media endpoint)
  → Attach thumbnail to post (HTTP PATCH)

Enter fullscreen mode Exit fullscreen mode

Five nodes. Runs in about 25 seconds. Zero Canva.


What I'd do differently

The faceless style is great for blogs but if you're doing YouTube thumbnails and want your face on them, ThumbAPI supports uploading a reference photo and reusing it across generations. I haven't set that up yet but it's next.

Also: error handling. Right now if the API call fails, the workflow just stops. I need to add a fallback node that pings me on Slack so I can manually handle it. Classic "it works, ship it" problem.


Is it worth it?

I've now run this for about 6 weeks. Zero manual thumbnails since. The images aren't as polished as what I'd make in Canva on a good day, but they're consistent, on-brand, and they exist — which is more than I can say for the weeks I'd skip thumbnails because I didn't have time.

If you have any automation pipeline that produces content regularly, this is a low-effort, high-payoff addition.

Happy to share the full n8n workflow JSON if anyone wants it — drop a comment.
PS:This cover blogpost image is generated by ThumbAPI.