The WEBP image format has an option that significantly improves colored edges for WEBP files, it's called "sharp_yuv", and is typically not enabled by default.
Test image #1: Original File
Test image #2: Saved as lossy WEBP (quality 95) with sharp_yuv
Test image #3: Saved as lossy WEBP (quality 95) without sharp_yuv (default)
Click on the images to enlarge them. Have a close look at the edges. When you're not using Sharp_YUV, there is a black halo added around all the color edges. Sharp_YUV greatly reduces this artifact.
To turn this on, you set "use_sharp_yuv" within the WebPConfig struct to 1, before calling WebPEncode.
Test image #1: Original File
Test image #2: Saved as lossy WEBP (quality 95) with sharp_yuv
Test image #3: Saved as lossy WEBP (quality 95) without sharp_yuv (default)
Click on the images to enlarge them. Have a close look at the edges. When you're not using Sharp_YUV, there is a black halo added around all the color edges. Sharp_YUV greatly reduces this artifact.
To turn this on, you set "use_sharp_yuv" within the WebPConfig struct to 1, before calling WebPEncode.
Comment