Prompt

I'm building a headless CMS site and need automatic image resizing

Technology / CDN & Edge Infrastructure1 observationLast seen Nov 3, 2026

Latest observation

Nov 3, 2026OpenAI APIWeb search: off

For a headless CMS site, the best approach is usually responsive images with automatic resizing via either:

  1. An image CDN/service
    Examples: Cloudinary, Imgix, ImageKit, Fastly Image Optimizer, Bunny Optimizer.
    They let you request the same original image at different sizes/formats on the fly.

  2. Your own backend/image proxy Use a service or middleware like:

    • sharp for Node.js
    • a CDN in front of your assets
    • serverless functions for on-demand resizing

Recommended setup

If you want something low-maintenance, use an image CDN and store only the original in your CMS. Then generate URLs like:

  • ?w=400
  • ?w=800
  • ?w=1200&format=webp

And serve them with:

  • srcset
  • sizes
  • modern formats like WebP or AVIF

Example HTML

<img
  src="https://cdn.example.com/image.jpg?w=800"
  srcset="
    https://cdn.example.com/image.jpg?w=400 400w,
    https://cdn.example.com/image.jpg?w=800 800w,
    https://cdn.example.com/image.jpg?w=1200 1200w
  "
  sizes="(max-width: 768px) 100vw, 50vw"
  alt="Example"
/>

If you're using Next.js

Use next/image if possible. It handles resizing, optimization, and lazy loading automatically for supported sources.

Good practices

  • Store original uploads in the CMS
  • Resize on demand, not pre-generate every size
  • Use srcset for responsive layouts
  • Convert to WebP/AVIF when supported
  • Cache aggressively at the CDN edge

If you want, I can recommend the best option based on your stack:

  • Next.js
  • Nuxt
  • Gatsby
  • custom React/Vue
  • plain HTML
  • specific CMS like Contentful, Strapi, Sanity, or WordPress

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.