Guides using Netlify Image CDN for on-the-fly image optimization and transformation. Covers the /.netlify/images endpoint, query parameters for resizing and format conversion, remote image allowlisting, clean URL rewrites, and a user-upload pipeline combining Functions and Blobs.
Ships in netlify. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Every Netlify site has a built-in /.netlify/images endpoint for on-the-fly image transformation. No configuration required for local images.
<img src="/.netlify/images?url=/photo.jpg&w=800&h=600&fit=cover&q=80" />
| Param | Description | Values |
|---|---|---|
url | Source image path (required) | Relative path or absolute URL |
w | Width in pixels | Any positive integer |
h | Height in pixels | Any positive integer |
fit | Resize behavior | contain (default), cover, fill |
position | Crop alignment (with cover) | center (default), top, bottom, left, right |
fm | Output format | avif, webp, jpg, png, gif, blurhash |
q | Quality (lossy formats) | 1-100 (default: 75) |
When fm is omitted, Netlify auto-negotiates the best format based on browser support (preferring webp, then avif).
External images must be explicitly allowed in netlify.toml:
[images]
remote_images = ["https://example\\.com/.*", "https://cdn\\.images\\.com/.*"]
Values are regex patterns.
Create user-friendly image URLs with redirects:
# Basic optimization
[[redirects]]
from = "/img/*"
to = "/.netlify/images?url=/:splat"
status = 200
# Preset: thumbnail
[[redirects]]
from = "/img/thumb/:key"
to = "/.netlify/images?url=/uploads/:key&w=150&h=150&fit=cover"
status = 200
# Preset: hero
[[redirects]]
from = "/img/hero/:key"
to = "/.netlify/images?url=/uploads/:key&w=1200&h=675&fit=cover"
status = 200
[[headers]]
for = "/uploads/*"
[headers.values]
Cache-Control = "public, max-age=31536000, immutable"
Combine Netlify Functions (upload handler) + Netlify Blobs (storage) + Image CDN (serving/transforming) to build a complete user-uploaded image pipeline. See references/user-uploads.md for the full pattern.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/netlify:netlify-image-cdnfrom netlify
npx claudepluginhub kael-odin/codex-plugins-zh --plugin netlify12 skills in this plugin
/netlify-ai-gateway使用 Netlify AI Gateway 接入 AI 模型的指南。在添加 AI 功能或选择/更换 AI 模型时使用;选型前必须先阅读本技能。涵盖支持的提供商(OpenAI、Anthropic、Google)、SDK 设置、环境变量和可用模型列表。/netlify-blobs使用 Netlify Blobs 对象存储的指南。在不需要完整数据库的情况下存储文件、图片、文档或简单键值数据时使用。涵盖 `getStore()`、CRUD 操作、元数据、列表查询、部署作用域与站点作用域存储,以及本地开发。/netlify-caching控制 Netlify CDN 缓存的指南。在配置缓存头、设置 stale-while-revalidate、实现按需缓存清除,或了解 Netlify CDN 缓存行为时使用。涵盖 `Cache-Control`、`Netlify-CDN-Cache-Control`、缓存标签、持久缓存和框架专属缓存模式。/netlify-cli-and-deploy使用 Netlify CLI 和部署站点的指南。在安装 CLI、关联站点、部署(基于 Git 或手动)、管理环境变量或运行本地开发时使用。涵盖 `netlify dev`、`netlify deploy`、Git 与非 Git 工作流,以及环境变量管理。/netlify-confignetlify.toml 配置参考。在配置构建设置、重定向、重写、响应头、部署上下文、环境变量或任何站点级配置时使用。涵盖完整的 netlify.toml 语法,包括带通配符/条件的重定向、响应头、部署上下文、Functions 配置和 Edge Functions 配置。/netlify-deploy使用 Netlify CLI 将项目部署到 Netlify。当用户需要关联仓库、验证部署设置、执行部署,或在预览和生产流程之间选择时使用。Other plugins' skills for the same job