Image optimization: issue with transparent .png to avif
-
Due to a recent technical change in Shortpixel’s AVIF toolchain,
.png
files with transparency will loose that transparency in browsers that support AVIF if “Load WebP or AVIF in supported browsers?” is on.Shortpixel is looking at alternative solutions, but until then as a workaround you can either:
* add
.png
to Autoptimize’s lazyload exclusion field
* or to use below code snippet to disable AVIF images;add_filter( 'autoptimize_filter_imgopt_do_avif', '__return_false');
If additional info becomes available I’ll follow up below.
frank
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Image optimization: issue with transparent .png to avif’ is closed to new replies.