CV
July 05, 2026

How I Make My Blog Images SEO-Friendly (Generate → Compress → Rename)

My exact workflow for SEO-friendly blog images: generate with ChatGPT, compress with iLoveIMG, then rename with an image slug generator.

How I Make My Blog Images SEO-Friendly (Generate → Compress → Rename)
📅 🏷️ SEO & Content Strategy ⏱️ 8 min read Image SEO · AI Workflow

How I Make My Blog Images SEO-Friendly (Generate → Compress → Rename)

The exact 3-step image pipeline I run on every blog post — AI generation, compression, and keyword-rich renaming — and why each "small" step compounds into real long-term SEO gains.

If your posts rank for text but your images never show up in Google Images, or your Lighthouse score keeps dropping because of a 3MB AI-generated PNG, the problem usually isn't your writing — it's your image pipeline. After 2+ years of publishing technical SEO content, I've settled on one repeatable workflow for every image before it touches my CMS: generate it, compress it, then rename it.

❌ Common misconception: Most people think image SEO ends at writing a good alt attribute. In reality, the filename, the file size, and the format you save it in carry just as much weight — especially for Core Web Vitals and Google Images rankings.

Why Image SEO Matters More Than People Think

Every AI-generated image you drop into a blog post touches SEO in three separate ways:

  • Page speed — an uncompressed hero image is almost always your Largest Contentful Paint (LCP) element, and LCP is a confirmed Core Web Vital ranking signal.
  • 🔍 Image search visibility — Google Images reads filenames and alt text as relevance signals before it ever "looks" at the picture.
  • 📚 Content library hygiene — a folder full of Screenshot-2026.png files is unmanageable at scale; a folder of keyword-slugged files isn't.

None of these move the needle much on a single post. Across a hundred posts and a few years, they add up — which is exactly why I turned this into a fixed workflow instead of a "when I remember" habit.

The 3-Step Workflow I Use on Every Post

Same three tools, every time, in this order — before the image ever gets uploaded to the CMS.

Step 1 — Generate the Image with ChatGPT

I keep one reusable prompt template so every image on the blog shares the same visual language — readers recognize the brand even before they read the headline. Two rules I never break: match the aspect ratio to where the image will actually live (1200×630 for featured/OG images), and never ask the model to render readable text inside the image — AI-rendered text is almost always blurry or misspelled.

Prompt template I reuse for every blog cover image:

"Minimalist flat-design vector illustration for a tech blog
cover image, 1200x630px, dark navy-to-charcoal gradient
background, [subject-specific icons] connected by thin teal
arrow lines, soft glow on the teal accent color, generous
negative space, no readable text or letters anywhere in the
image, clean modern SaaS-product illustration style."

For this post, [subject-specific icons] became:
"a sparkle icon over a photo icon (generation) → a photo icon
being compressed by inward-pointing arrows (compression) → a
photo icon with a small hyphenated tag icon attached (renaming)"

Step 2 — Compress It with iLoveIMG

ChatGPT exports are almost always large, lossless PNGs — often 1–3MB. Since a hero image is usually your LCP element, that file size hits page speed directly. I run every export through iLoveIMG's image compressor before it goes near my CMS. It's browser-based, handles JPG/PNG/WebP in bulk, and gets you 85–95% smaller files with no visible quality loss for flat, icon-style illustrations like these.

Typical results I see compressing ChatGPT-exported PNGs
Image type Before After iLoveIMG Typical savings
Featured / OG image ~2–3 MB ~150–200 KB ~90%+
Inline diagram ~1–2 MB ~80–120 KB ~90%+
Small icon / thumbnail ~400–700 KB ~30–50 KB ~90%+

Step 3 — Rename It with an Image Slug Generator

A default ChatGPT export or a phone screenshot means nothing to a crawler. Before uploading, I run the compressed file through 360Solution's image slug generator, which renames the file into a clean, lowercase, hyphenated, keyword-rich slug — usually mirroring the URL slug of the post the image belongs to.

// Before (default export / screenshot names)
IMG_20260612_154233.png
Screenshot 2026-06-12 at 3.42.33 PM.png
DALL·E 2026-06-12 14.32.09 - abstract tech.png

// After (renamed with an image slug generator)
blog-image-seo-workflow-generate-compress-rename.webp
mongodb-atlas-dns-error-fix-diagram.webp
nextjs-hydration-mismatch-example.webp
<img
  src="/blog-images/blog-image-seo-workflow-generate-compress-rename.webp"
  alt="Blog image SEO workflow: generate with ChatGPT, compress with iLoveIMG, rename with a slug generator"
  width="1200"
  height="630"
  loading="lazy"
/>
A fully optimized image tag: keyword-rich filename, descriptive alt text, explicit dimensions to prevent layout shift (CLS), and lazy loading.

Bonus: Wiring the Renamed Image into Your OG Tags

The same renamed file doubles as the post's Open Graph image. I keep OG images as JPG or PNG even when everything else on the page is WebP — some social crawlers still handle WebP inconsistently, so compatibility wins here over a few extra KB.

<meta property="og:image" content="https://www.muhammadhuzaifa.com/blog-images/blog-image-seo-workflow-generate-compress-rename.jpg" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="How I make blog images SEO-friendly: generate, compress, rename workflow" />
✅ Best Practice: Generate → compress → rename → then add alt text and dimensions. Skip any one step and you're only getting a fraction of the benefit — the value comes from doing all three, every time, not from any single tool.

Expert takeaway: None of these three steps move rankings on their own. Compression improves LCP, a confirmed Core Web Vital. A keyword-rich filename is a minor relevance signal, mostly for Google Images. Neither replaces good alt text or strong content. But applied consistently across every image, on every post, for years, they compound into faster pages, more image-search impressions, and a cleaner content library — the kind most competitors never bother building.

Full Image SEO Checklist

  • ✅ Keyword-rich, hyphenated filename that mirrors the post's slug where possible
  • 🗜️ Compressed to roughly <150KB for hero images, <100KB for inline images
  • 🖼️ Saved as WebP for on-page images; JPG/PNG for the OG/social image
  • 📝 Descriptive, relevant alt text — never keyword-stuffed
  • 📐 Explicit width and height attributes to prevent layout shift (CLS)
  • 🐢 loading="lazy" on every image below the fold
  • 🔁 A unique filename per image — never reuse the same generic name across posts
  • 🗺️ Included in your image sitemap, if your CMS generates one

Frequently Asked Questions

❓ Does renaming an image file actually help SEO, or is it a myth?

It helps, but it's a minor, mostly Google Images-focused signal — not a page-ranking silver bullet. It's worth doing because it's nearly free once it's a habit, and it compounds across a large content library.

❓ Should I compress before or after renaming?

Order doesn't affect the outcome technically, but compress first. It's easier to spot quality loss on a properly named, organized file, and you avoid re-running a compressor if you decide to tweak the name later.

❓ What format should I use — JPG, PNG, or WebP?

WebP for anything rendered on the page — it's smaller than JPG/PNG at equivalent quality. Keep your OG/social preview image as JPG or PNG, since some social platform crawlers still handle WebP inconsistently.


Run every image through this generate → compress → rename pipeline, and you'll ship faster pages and a content library that actually shows up in Google Images — one small workflow change that keeps paying off on every future post.

Related reading: Fix MongoDB querySrv ECONNREFUSED in Node.js · Free Robots.txt & Sitemap Generator

Written by Muhammad Huzaifa — Full-Stack Developer & SEO Specialist, 2+ years optimizing content, Core Web Vitals, and technical SEO for production blogs.

Need this workflow — or your site's technical SEO — handled for you?

📩 Hire Me — huzaifa.pro.dev@gmail.com
image seo
blog image optimization
compress images for seo
image file name seo
ai generated blog images
Share: