For Image Scaling (and compression), we have improved the handling of PNG images. This image type delivers sharp graphics, well suited for logos and glyphs, but they can eat up your bandwidth – especially when the number of colors exceeds the maximum palette size. Our new algorithm considers the number of colors, transparency and client capabilities to decide whether the image is suitable for lossy compression. For graphic-like images, WebP lossless compression is used, if supported. These measures drastically reduce the resulting file size.
These advanced compression techniques may now be used for even more images: The
Speaking of which, the new
responsive-image-filtering reduces the HTML size by filtering out all image variants (
srcset) that a capable client would not use anyway. At the same time, image scaling and compression is applied to these images, too.
In addition to these features, we have improved our HTTP compatibility to properly pass HTML form uploads (
multipart/form-data) through FIT, regardless of the field names used. In the other direction, HTML fragment responses can be detected automatically, which is often useful for sites making heavy use of AJAX.
The SDK available from Github is updated to 14.1.5, too.