What is WebP?
WebP is an image format for the web. The three image formats below can be converted to WebP:
What is Polish in eCDN?
The B2C Commerce platform's embedded CDN (eCDN) has an automatic image optimization feature, which offers different polish levels - which will reduce the size of images. It compresses images and removes unnecessary data so that they’re delivered to browsers more quickly.
Although Polish can now produce WebP images by converting them from other formats, it can't consume WebP images to optimize them. If you upload a WebP image, Polish won't do anything with it.
Polish has two modes: lossless and lossy.
Lossless (called as Polish Level Basic in Business manager)
In lossless mode, JPEG images are optimized to remove unnecessary data, but the image displayed is unchanged.
In this mode, gif and png image types are changed.
Lossy (called as Polish Level Basic+JPEG in Business manager)
In lossy mode, the quality of JPEG images is reduced, which can reduce visual quality and allows it to further reduce the size of the image data.
Where can polish levels be configured?
Polish settings are unique for every zone so you will need to configure each one you have in Business Manager by going to Administration > Sites > Embedded CDN Settings > [zone] > Speed.
Polish Level - WebP conversion
You can enable the automatic creation of WebP images by checking the WebP box in the Polish settings for a zone. When this checkbox is enabled, Polish will optimize images just as it always has, and it will also convert and serve WebP images, which will be served only if its data is significantly lower than the original format).
WebP Compatibility and Configuration Requirements
The WebP image format is only supported when used in conjunction with the Polish Level optimization feature. To ensure proper functionality, only the following configurations are supported:
How to validate successful image conversions to WebP format?
You will see the following headers if Lossy WebP conversion is applied:
Content-Type: image/webp
Cf-polished: qual=85, origFmt=jpeg, origSize=” (Note: cf-polished will only be added in the header if Polish Level BASIC+JPEG is selected)
Content-Length: [compressed size of image]
Note: ‘origSize’ would be the uploaded image's original size.
A Lossless compression won't trigger these headers. In case the WebP images are not served, the attribute value pair below can be added in the header:
Cf-polished: origSize=1163 status=“webp_bigger”
webp_bigger: Polish attempted to convert to WebP, but the image was optimized at the origin server or was created using a low-quality setting.
Note: WebP conversion does not change the URLs of images, even if the file extension in the URL implies a different format. For example, a JPEG image at https://example.com/picture.jpg that has been converted to WebP will still have that same URL. The “Content-Type” HTTP header tells the browser the true format of an image.
Headers in the Browser
Inspect > Network tab
Refresh Page
Check the headers for images
What happens if WebP images are uploaded instead of JPEGs?
Although Polish can now produce WebP images by converting them from other formats, it can't consume WebP images to optimize them. If you put a WebP image on an origin site, Polish won't do anything with it.
Is every image converted to WebP served?
In case the conversion to WebP doesn’t produce a result smaller than the original image, no WebP image is served. Rather, the original image size and format are considered. This is indicated by the attribute value pair in the header: cf-polished: origSize=1163 status=“webp_bigger”. If you serve low-quality JPEG images at the origin (quality setting 60 or lower), it may not be beneficial to convert them to WebP. This is because low-quality JPEG images have blocky edges and noise caused by compression, and these distortions increase the file size of WebP images. We recommend serving high-quality JPEG images (quality setting from 80 through 90) at your origin server to avoid this issue.
If your origin server or Content Management System (CMS) has a built-in image converter or optimizer, it may interfere with the polish process. It doesn’t make sense to apply lossy optimizations twice to images, because quality degradation will be larger than the savings in file size.
Additional Information:
000391415

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.