Using WebP images and alternative jpg/png for Safari browser
SOLVE
Hi,
Our website relies heavily on the huge of real pictures. Since real pictures contain a lot of information, it's hard to keep them sharp and below e.g. 80 kb (even with compression tools).
For page speed it helps to use images in WebP format. However, browser Safari does not support this format. So my solution would be to offer visitors images in WebP, except when they use Safari. I've read on the internet that there are several ways to achieve this in other CMS. For example, I've been reading about an easy workaround by using the tag <picture>. However, I get feedback from developers that this is not possible in HubSpot CMS.
Since I'm a stubborn person, I was wondering if anyone else has experienced the same issues and if they have implemented a working solution?
In the blog environment you can handcode the <picture> tag, so the image can be viewed on safari with the jpeg fallback. It's a bit tedious to do it that way, but i'm not sure there's an easier way to do it?
Also this was recently submitted in the ideas board, could be useful functionality for the HubSpot CMS in the futre for supporting webp format.
Using WebP images and alternative jpg/png for Safari browser
SOLVE
Hi Esther, thanks for asking this question. I would like to change most of our images to WebP format as well. Do you or @jonchim know if Safari now supports this format?
In the blog environment you can handcode the <picture> tag, so the image can be viewed on safari with the jpeg fallback. It's a bit tedious to do it that way, but i'm not sure there's an easier way to do it?
Also this was recently submitted in the ideas board, could be useful functionality for the HubSpot CMS in the futre for supporting webp format.
Using WebP images and alternative jpg/png for Safari browser
SOLVE
I also would like to know more about the possibility of using new file formats, like jpeg2000 (this is mostly for apple users) and webp (everyone else).
I code static websites too, and I use webpacker to do all the transformations every time I upload to the server. Here the implementation would not be as easy I imagine since it would have to be done by a library on the backend (HubSpot's side).
Also template would probably need to be updated to support this feature.
Could you please share the URL? with this information, I could ask for collaboration from our experts 🙂
Thanks and Stay Safe
Sharon
Join us on March 27th at 12 PM for the Digital Essentials Lab, an interactive session designed to redefine your digital strategy!
Engage with expert Jourdan Guyton to gain actionable insights, participate in live Q&A, and learn strategies to boost your business success. Don't miss this opportunity to connect and grow—reserve your spot today!
Join us on March 27th at 12 PM for the Digital Essentials Lab, an interactive session designed to redefine your digital strategy!
Engage with expert Jourdan Guyton to gain actionable insights, participate in live Q&A, and learn strategies to boost your business success. Don't miss this opportunity to connect and grow—reserve your spot today!