Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Netlify image resizing

Resizes, crops and converts images on the fly with Netlify Image CDN so pages serve light WebP and AVIF files.

Claude's review

9/10 Complete Image CDN params, caching footguns and framework notes

We asked Claude the question you would ask: would I be glad I installed this? We only sell skills it rates 7 or higher.

In detail

Transform, resize, crop, and convert images on demand through Netlify Image CDN at the /.netlify/images endpoint. Use this skill whenever someone asks to optimize images, generate thumbnails or responsive sizes, serve WebP or AVIF automatically, crop to a square or cover box, add blurred placeholders, allow remote image domains, or create a reusable image preset URL. It also applies to setting cache or CORS headers on transformed images, fixing next/image headers on Netlify, and configuring Angular, Astro, Gatsby, Next.js, or Nuxt image optimization on Netlify.

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: netlify-image-cdn
description: Transform, resize, crop, and convert images on demand through Netlify Image CDN at the /.netlify/images endpoint. Use this skill whenever someone asks to optimize images, generate thumbnails or responsive sizes, serve WebP or AVIF automatically, crop to a square or cover box, add blurred placeholders, allow remote image domains, or create a reusable image preset URL. It also applies to setting cache or CORS headers on transformed images, fixing next/image headers on Netlify, and configuring Angular, Astro, Gatsby, Next.js, or Nuxt image optimization on Netlify.
---

# Netlify Image CDN

## Use this / avoid this

```js
// 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`;
```

```toml
# 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()` in `next.config.js` for `next/image`. It is ignored for the same reason.
- `fit=cover` with only `w` or only `h`. Cover requires both.
- Hand-rolling `/.netlify/images` URLs 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]
```

| Param | Values | Default | Notes |
|---|---|---|---|
| `url` | relative (`/owl.jpeg`) or absolute remote URL | required | Remote URLs must match `remote_images` |
| `w`, `h` | integer px | — | Applied according to `fit` |
| `fit` | `contain` / `cover` / `fill` | `contain` | Same semantics as CSS `object-fit` |
| `position` | `top` / `bottom` / `left` / `right` / `center` | `center` | The part of the image retained when `fit=cover` |
| `fm` | `avif` `jpg` `png` `webp` `gif` `blurhash` | negotiated | `webp` and `gif` may be animated |
| `q` | integer 1–100 | `75` | Lossy quality for `avif`, `jpg`, `gif`, `webp` |
...

From netlify's repository, MIT licence.

Related skills

  • Checked

    TinyBase app builder

    Scaffolds and extends local first JavaScript apps with TinyBase, including schemas, persistence and sync.

    by tinyplex 5.2k
    7/101 credit
  • Checked

    ComfyUI custom node UI

    Adds widgets, sidebar tabs, commands and dialogs to ComfyUI custom nodes, so your node feels built in.

    by jtydhr88 325
    8/101 credit
  • Checked

    Scrolling menu upgrade

    Finds outdated react-horizontal-scrolling-menu code and rewrites it for version 8 so the menu works again.

    by asmyshlyaev177 789
    7/101 credit
  • Checked

    Screenshot to React code

    Rebuilds a screenshot or mockup as React, TypeScript and Tailwind code that closely matches the design.

    by buildfastwithai 792
    7/101 credit
  • Checked

    Map location picker

    Adds a map pin picker to a web form, so users can choose and submit one exact spot like a delivery address.

    by cyphercodes 84
    7/101 credit
  • Checked

    Port code to Rust

    Ports C, C++, Python, Go or JavaScript code into idiomatic Rust, with tests that prove it behaves the same.

    by morganlinton 2.2k
    9/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added