Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
leonovich_J Posted September 25, 2021 Posted September 25, 2021 Hi guys! Sorry, I use google translate. The question of optimization is ripe ... I want to convert all images to WebP Accordingly, the question is brewing: How "safe" is it? Will all our links break? If you did the conversion to webp on the server side, give a couple of tips please.
Randy Calvert Posted September 26, 2021 Posted September 26, 2021 The IPB software is not going to convert existing images to WebP for you. However if you use an offline tool that creates a WebP version of an image for you, you could use something like .htaccess to detect if the device can support the WebP format and serve that version if it exists in the same folder. Something like: https://github.com/vincentorback/WebP-images-with-htaccess This should be pretty safe as it's both backwards compatible with older non-supported devices and if the WebP version does not exist gracefully falls back to the original version. SeNioR- and leonovich_J 1 1
Recommended Posts