A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Satata Satez
Dec 19, 2024
  3245
(0 votes)

Resize Images on the Fly with Optimizely DXP's New CDN Feature

With the latest release, you can now resize images on demand using the Content Delivery Network (CDN). This means no more storing multiple versions of the same image and a significant boost to your website's performance.

How Does it Work?

It's all about the URL. By adding specific parameters to your image URLs, you can instruct the CDN to dynamically resize, crop, and optimize your images before delivering them to the user's browser. This is a game-changer for several reasons:

  • Improved Page Load Speed: Smaller image files mean faster loading times, leading to happier visitors and better SEO.
  • Reduced Storage Costs: Say goodbye to managing countless image variations.
  • Enhanced User Experience: Deliver the perfect image size for any device, ensuring a seamless browsing experience.

Getting Started with Image Resizing

Here's the basic URL structure you will use:

https://<DOMAIN>/cdn-cgi/image/<OPTIONS>/<SOURCE-IMAGE>

Let's break it down:

  • <DOMAIN>: Your website's domain (e.g., www.yourdomain.com).
  • /cdn-cgi/image/: This tells the CDN to activate the image resizing feature.
  • <OPTIONS>: A comma-separated list of transformations (e.g., width=300,quality=80).
  • <SOURCE-IMAGE>: The path to your original image file (e.g., globalassets/images/hero-banner.jpg).

Example:

HTML

<img src="/cdn-cgi/image/width=300,quality=80/globalassets/images/hero-banner.jpg" />

This code will deliver a resized version of hero-banner.jpg with a width of 300 pixels and a quality of 80%.

Powerful Options for Customization

Optimizely DXP's CDN offers a wide range of image transformation options, including:

  • Resizing: Control width, height, and aspect ratio with different fitting modes like contain, cover, and crop.
  • Quality Adjustment: Fine-tune image quality to find the perfect balance between visual fidelity and file size.
  • Format Conversion: Automatically serve images in next-gen formats like WebP and AVIF for improved compression.
  • Effects and Filters: Apply blur, sharpen, brightness adjustments, and more.
  • Cropping and Trimming: Precisely control image composition by cropping from specific sides or coordinates.

Responsive Images Made Easy

With the new .NET tag helpers, implementing responsive images is a breeze. You can define different image sizes for various screen sizes and let the browser choose the most appropriate one. This ensures optimal image delivery for every user, regardless of their device.

Important Considerations

  • File Size Limit: For best performance, stick to images under 10MB.
  • Third-Party Domains: You cannot resize images hosted on external domains.
  • CDN Routing: Image resizing only works when traffic is routed through the Optimizely DXP CDN.
  • Versions: This feature is available for CMS 12 and all future versions and CMS (SaaS) customers.

Take Control of Your Images

Optimizely DXP's new image resizing feature empowers you to optimize your website's visuals without sacrificing performance. By leveraging the CDN's capabilities, you can deliver stunning images that load quickly and adapt seamlessly to any device. Start experimenting with the new URL parameters and tag helpers today to unlock the full potential of your website's imagery!

For more DXP release information check out the support center on Optimizely.com.

Dec 19, 2024

Comments

Please login to comment.
Latest blogs
Looking back at Optimizely in 2025

Explore Optimizely's architectural shift in 2025, which removed coordination cost through a unified execution loop. Learn how agentic Opal AI and...

Andy Blyth | Dec 17, 2025 |

Cleaning Up Content Graph Webhooks in PaaS CMS: Scheduled Job

The Problem Bit of a niche issue, but we are building a headless solution where the presentation layer is hosted on Netlify, when in a regular...

Minesh Shah (Netcel) | Dec 17, 2025

A day in the life of an Optimizely OMVP - OptiGraphExtensions v2.0: Enhanced Search Control with Language Support and Synonym Slots

Supercharge your Optimizely Graph search experience with powerful new features for multilingual sites and fine-grained search tuning. As search...

Graham Carr | Dec 16, 2025

A day in the life of an Optimizely OMVP - Optimizely Opal: Specialized Agents, Workflows, and Tools Explained

The AI landscape in digital experience platforms has shifted dramatically. At Opticon 2025, Optimizely unveiled the next evolution of Optimizely Op...

Graham Carr | Dec 16, 2025

Optimizely CMS - Learning by Doing: EP09 - Create Hero, Breadcrumb's and Integrate SEO : Demo

  Episode 9  is Live!! The latest installment of my  Learning by Doing: Build Series  on  Optimizely Episode 9 CMS 12  is now available on YouTube!...

Ratish | Dec 15, 2025 |

Building simple Opal tools for product search and content creation

Optimizely Opal tools make it easy for AI agents to call your APIs – in this post we’ll build a small ASP.NET host that exposes two of them: one fo...

Pär Wissmark | Dec 13, 2025 |