Netlify Image Cdn
Guide to Netlify Image CDN transforms, remote allowlisting, responsive markup, and user-upload pipelines via the /.netlify/images endpoint.
- CCM score
- 73 of 100
- skills.sh installs
- 3.4K
- GitHub stars
- 57
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers the
/.netlify/imagesendpoint withurl,w,h,fit,position,fm, andqquery parameters, plus framework image setup - Includes remote source allowlisting in
netlify.toml, clean URL rewrites, cache header configuration, and blurhash placeholders - Enforces
fit=coverto require bothwandh, and requires percent-encoding of remote source URLs - Designed for sites serving optimized or user-uploaded images, with local testing under
netlify dev
Install
$ npx -y skills add netlify/context-and-tools --skill netlify-image-cdn -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Netlify Image CDN
Use this / avoid this
// USE: build the URL on the site's own domain; url is required, the rest optional
const src = `/.netlify/images?url=${encodeURIComponent(remoteOrPath)}&w=400&h=300&fit=cover&fm=webp&q=75`;
# USE: single-quoted literal regex in netlify.toml
[images]
remote_images = ['https://my-images\.com/.*']
Avoid:
_headers/[[headers]]rules targeting a path that rewrites to/.netlify/images(including/_next/image). They are silently ignored. Use an edge function instead.headers()innext.config.jsfornext/image. It is ignored for the same reason.fit=coverwith onlywor onlyh. Cover requires both.- Hand-rolling
/.netlify/imagesURLs in Angular, Astro, Gatsby, Next.js, or Nuxt. Use the framework's image component, which already uses Image CDN (see Frameworks).
Endpoint
/.netlify/images?url=<source>[&w=<int>][&h=<int>][&fit=contain|cover|fill][&position=top|bottom|left|right|center][&fm=avif|jpg|png|webp|gif|blurhash][&q=1-100]
Details
- Repository
- github.com/netlify/context-and-tools
- Categories
- Frontend & UI Code, DevOps & Cloud
- First seen
- Jun 3, 2026
Questions
What does the netlify-image-cdn skill do?
netlify-image-cdn teaches an agent to transform, resize, crop, and convert images on demand through Netlify Image CDN at the /.netlify/images endpoint. It covers responsive sizes, WebP or AVIF output, blurred placeholders, and reusable image preset URLs.
How do I install the netlify-image-cdn skill?
Run npx -y skills add netlify/context-and-tools --skill netlify-image-cdn -y in your project. Once installed, netlify-image-cdn lets the agent build optimized image URLs and configure remote image allowlisting for your Netlify site.
Which skills are the netlify-image-cdn skill's neighbors in Frontend and UI Code?
Within Frontend and UI Code on Claude Marketplaces, netlify-image-cdn appears next to vercel-react-best-practices, web-design-guidelines, design-taste-frontend, vercel-composition-patterns, and lark-apps. netlify-image-cdn is the one focused on Netlify image transformation at the /.netlify/images endpoint.
Does netlify-image-cdn work with Next.js, Astro, or Nuxt?
netlify-image-cdn covers configuring Angular, Astro, Gatsby, Next.js, and Nuxt image optimization on Netlify, and tells the agent to use each framework's own image component. For Next.js it requires Next.js 13.5 or later with the Next.js adapter v5.
Can netlify-image-cdn help with user-uploaded images?
Yes, netlify-image-cdn covers setting up user-uploaded image pipelines by composing Netlify Functions and Blobs with Image CDN. Its references include a user-uploads guide for that pipeline.
More from netlify/context-and-tools
All 12Similar to Netlify Image Cdn
More Frontend & UI Codenetlify-cachingSkillnetlify/context-and-tools3.5K installsNetlify CDN caching controls for function and edge responses, including headers, purges, and the Cache API.
netlify-frameworksSkillnetlify/context-and-tools3.6K installsNetlify deployment guide for web frameworks covering adapters, SSR, build settings, and local emulation.
DarkroomMCP serversathergate97 starsImage processing pipeline for Next.js: responsive resizing and optimization through Sharp.
image-optimizationSkillsecondsky/claude-skills618 installsPractical image optimization guide covering format choice, responsive markup, lazy loading, and build-time compression.