Image Processing - Anycast CDN [EN]
Feature overview
Image processing allows you to optimize images at the CDN edge automatically for users across different geographic locations, reducing content weight and accelerating page load. Applying global or location-specific presets, you will enhance user experience, especially for mobile users and viewers with slow or unstable connections. This configuration helps you improve site loading speed (bonus SEO-boost), reduces overall delivery costs, and decreases CDN load.
Functionality
The image processing feature leverages imgproxy, a flexible image optimization service. It operates entirely at the CDN level. You specify which file extensions (e.g., JPEG, PNG, WebP) should be processed and configure transformation presets.
When your user requests an image, the CDN checks for these transformation GET parameters in the request URL - if present, the image is dynamically processed and cached. Based on presets, imgproxy applies corresponding changes like resizing, cropping, or converting formats before serving the file.
The original image remains untouched, while the CDN fetches and processes it upon the specific URL request.
Essentially, when a user requests an image via a URL, the link itself determines what width, height, or type of image version they are getting.
Improved support
Without image processing, you may need to manually edit and upload images in a specific format to keep a consistent look across devices, which is time-consuming and error-prone. Additionally, users may see inconsistent visuals, as they lack automated resizing for different screen sizes. Finally, distributing large images increases bandwidth costs, since every request pulls bulky files, straining infrastructure and slowing performance, resulting in slow page loads and overloading your origin server.
Our Solution
We automate image processing for you and optimize them in real time. This means users no longer need to pre-format images or risk oversized requests - Anycast CDN dynamically delivers optimized versions for every environment and device requesting, based on your pre-configurations.
Result
As a result, each user sees the optimally formatted image automatically, improving load times and ensuring visual consistency, reduced manual work on your end, and optimized CDN usage.
Enabling image processing prohibits URL truncation for same file extensions. Ensure that parameter truncation is not required for these file types, as features are mutually exclusive.
How This Improves Your Day-to-Day
Image Processing turns image delivery from a manual, costly task into an automatic, edge-level capability. Instead of maintaining a pipeline of pre-generated image variants, you define what output is needed once and let the CDN produce it on demand, at the point closest to every particular visitor.
Faster experiences
Because transformations happen at the Origin Shield and the resulting image variants are cached and served from the CDN's anycast edge network, images reach each visitor from the nearest POP - not from your origin server. This matters most where it's felt most: mobile connections, congested networks, and remote geographies.
Lower costs & lighter load
Every generated variant is cached at the edge, so your origin is asked to produce an image only once, not once per each size / format / device. Combined with automatic format conversion, payloads shrink without you having to manage that logic - meaning less bandwidth spend and less origin compute.
Less manual work and errors
There's no separate workflow fro you to pre-crop, pre-resize, or pre-convert images for every pic - a thumbnail, a hero banner, a watermarked preview - before upload. The right version is generated from a single source image at request time, from the URL alone, removing an entire class of likely manual errors.
Consistency and control at scale
Presets let a user standardize how transformations are applied across an entire site or app - one definition, reused everywhere - instead of each team or page building its own one-off logic. Because presets expose only the parameters you choose, they also act as a guardrail: end users can request only a defined set of parameters.
Built for what's coming next
As new formats, device pixel densities, and delivery contexts emerge, the transformation logic lives in one place - the preset and the processing engine - rather than in every image asset already shipped. That keeps a growing media library adaptable without a redo of past uploads.
Configuration Requirements
Enabling Image Processing offloads your origin from generating, caching, and distributing every image variation, but it depends on several other pull zone settings being configured correctly.
If you don't meet any of the following conditions during setup, the error pop-up window will suggest automatically resolving them. See https://advancedhosting.atlassian.net/wiki/x/BwCES for the reasoning for these restrictions.
Processing Presets
Image Processing is powered by imgproxy, a self-hosted image-processing server that quickly and easily resizes, processes, and optimizes images on the fly. See Image Processing Presets for more information. and get acquainted with nativehttps://docs.imgproxy.net/ to get the most out of this feature.
Best Practices
After creating custom presets, verify carefully. Ensure all parameters are correct and bear no unsafe input. This validation step is crucial to avoid security risks or broken URLs.
Configure Key Extensions
Start with core-impact formats (JPEG, PNG, WebP, etc.) to ensure broad coverage and high performance, as they’ll give you the biggest gains.
Validate Presets Carefully
Ensure presets are tested thoroughly to avoid security issues or broken URLs.
Monitor SEO Performance: After enabling image processing, track page load speed improvements and SEO rankings.
Typical Use Cases
This functionality is ideal for:
Mobile-first websites require faster loading times.
Global platforms targeting users in different regions, ensuring optimized images for each location.
E-commerce sites aiming to balance rich visuals with swift performance.
Content-heavy platforms.