Disable LQIP for transparent images
-
Hey guys, I’m facing a little problem while using otherwise great Shortpixel integration with Autoptimize.
PNG images with transparent background get ugly LQIP with black background (because of the way shortpixel works), causing unwanted flash on the image load.
Is there a way to prevent using LQIP for PNG images only? Seems like “autoptimize_filter_imgopt_lazyload_dolqip” filter only allows me to disable it altogether, though I’d like to keep the LQIP for jpegs. Is there another way?
Thanks a lot! ??
Full size image: https://cdn.shortpixel.ai/client/to_avif,q_glossy,ret_img,w_617,h_634/https://raf.ideup.cz/wp-content/uploads/pricing.png
Placeholder: https://cdn.shortpixel.ai/client/q_lqip,ret_wait,w_617,h_634/https://raf.ideup.cz/wp-content/uploads/pricing.png
Website: https://raf.ideup.czThe page I need help with: [log in to see the link]
- The topic ‘Disable LQIP for transparent images’ is closed to new replies.