Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Optimize images on Netlify by serving them through the current Image CDN route, /.netlify/images, at dimensions suited to their rendered size. It transforms images on demand without impacting build times, according to Netlify’s Image CDN documentation. Use direct URLs for simple setups or a documented framework image component when your project supports one.

How do I optimize images on Netlify?

For an image stored in your site, add a URL such as /.netlify/images?url=/images/photo.jpg&w=800. The w parameter requests an 800-pixel-wide output; add h when you need a specific height. Netlify creates the transformation on demand and caches the transformed result at the edge.

Choose output dimensions to fit the image’s display context rather than delivering a much larger original. For a card that must fill a fixed 600-by-400-pixel box, for example, use:

/.netlify/images?url=/images/photo.jpg&w=600&h=400&fit=cover&position=center

Netlify documents the current route and parameter behavior in its Image CDN overview. Relative paths to images in the site do not require remote-source configuration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

How do I resize or crop an image with Netlify Image CDN?

Use integer pixel values for w and h. The fit parameter controls how the source fits those dimensions:

Setting What it does When to use it
contain (default) Preserves proportions and fits the image inside the requested dimensions. When the entire image should remain visible, even if that leaves unused space.
cover Preserves proportions and crops the image to fill the requested dimensions. For fixed-size cards or thumbnails that should have consistent dimensions.
fill Fills the requested dimensions, which can distort the image. Only when stretching is acceptable for the image.

With fit=cover, set position to choose which region is retained in the crop. Review the result at the actual display size: a centered crop can cut off a face, product detail, or other important subject.

Does Netlify automatically convert images to WebP or AVIF?

When you do not set fm, Netlify checks the browser’s supported formats in this order: WebP, then AVIF, then the original format. The browser’s Accept header informs the selection. A request containing only url can still negotiate a supported output format.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

To request a specific format, use fm. Netlify documents avif, jpg, png, webp, gif, and blurhash. For example:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
/.netlify/images?url=/images/photo.jpg&w=800&fm=avif&q=75

The q parameter accepts whole numbers from 1 through 100. Netlify documents a default of 75 for supported lossy conversions. Quality is a visual tradeoff, not a universal optimization target: inspect the output for the image type and intended use before choosing a value.

How do I use remote images with Netlify Image CDN?

Allow remote sources in netlify.toml using the images.remote_images setting, then pass the full remote URL as the url parameter:

Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
[images]
  remote_images = ['https://images.example.com/.*']

Use patterns narrow enough to match the hosts you actually need. Follow Netlify’s current TOML and regular-expression escaping guidance; single-quoted literal strings or appropriately escaped backslashes can avoid ambiguity. The remote image must be publicly accessible, unless its URL authorizes access itself, such as a presigned URL. Netlify does not forward credential-bearing Authorization or Cookie headers to the remote source.

Should I use a framework image component instead?

If your site uses a framework with a documented Netlify integration, its standard image component may connect to Image CDN without you constructing transformation URLs manually. The integration and remote-image configuration differ by framework; check the current Netlify framework requirements before relying on it.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Framework Documented integration path Remote-image configuration or prerequisite
Angular NgOptimizedImage automatically uses Image CDN. Configure remote domains with images.remote_images.
Astro <Image /> automatically uses Image CDN. Configure remote sources in astro.config.mjs using image.domains or image.remotePatterns.
Gatsby Set NETLIFY_IMAGE_CDN=true and use a supported Contentful, Drupal, or WordPress source plugin. Netlify documents version requirements; verify the applicable Gatsby version.
Next.js Use the documented Image CDN path with Next.js 13.5 or later and Netlify adapter v5. Configure remote paths with remotePatterns in next.config.js.
Nuxt nuxt/image automatically uses Image CDN. Configure remote domains in nuxt.config.ts under image.domains.

Versions and integration details can change. Confirm the current prerequisites for your framework before switching an existing image pipeline.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

How should I check caching and test transformations?

Netlify uniquely caches transformed outputs at the edge, so repeated requests for the same transformation can use the cached image. Image CDN respects atomic deploys by default: when a relative source image changes in a new deploy, new requests trigger transformations against the new source.

Use Netlify Dev to test transformations locally in an environment intended to mimic production. Check the transformed image for correct dimensions, crop, format, and visual quality before shipping it.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What limitations should I know about?

  • Netlify says Image CDN does not support Split Testing; results may be inconsistent between branches.
  • Image CDN is not currently part of Netlify’s HIPAA-compliant hosting offering.
  • Netlify discourages cross-site redirects for image transformations because they may hurt performance.

The current Image CDN route is /.netlify/images. Do not confuse it with older Large Media transformation syntax such as nf_resize=fit or nf_resize=smartcrop; those parameters belong to the legacy workflow documented separately at Netlify’s Large Media image transformation guide.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

Or skip the browser setup

Netlify Image CDN is for transforming images served by your Netlify site. If your task is instead to capture a web page as an image or PDF, ScreenshotNeo is a separate website screenshot API and MCP server. Make a screenshot request with one call:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo API documentation for request options. ScreenshotNeo accepts cookie and consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each step can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers identify the page verdict and billing status. Its MCP server offers screenshot and page-information tools for AI agents. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000.

Sign up free for ScreenshotNeo to get 1,000 screenshots a month with no card.

Frequently Asked Questions

Can I use Netlify Image CDN with a same-site image without configuring a domain?

Yes. A relative source such as /images/photo.jpg needs no remote-image configuration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What does Netlify’s q parameter accept?

A whole number from 1 to 100; the documented default is 75 for supported lossy conversions.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.