ImageKit.io performs lossy compression for all your images by default. Lossy compression helps deliver smaller-sized files with good perceived visual quality.
However, certain images like computer-generated graphics and logo designs aren't great with lossy compression. In such cases, lossless compression can result in better visual quality at the expense of image size.
Lossless compression is turned OFF by default. You can switch on lossless compression using the parameter
lo-truein the URL. This transformation parameter applies to both, PNG as well as WebP images.
The above URL delivers a losslessly compressed WebP image in Chrome. Adding the parameter
f-pngto the above URL results in a losslessly compressed PNG image.
Additionally, from the ImageKit.io dashboard, you can change the PNG compression mode from the Advanced Settings tab under Image Settings and set it to
Minimum. This compression mode change from the dashboard is applicable only for PNG images.
You can completely turn off PNG image optimization by setting the PNG Compression mode to
Nonefrom your dashboard. This is not recommended.