Currently, all major browsers support the WebP format. Which is a great format performance-wise. Now I know that HubSpot converts other formats to WebP serverside, but we should expect users to upload the WebP format as well.
One of the most powerful HubL functions is the 'resize_image_url' function, which allows you to resize the served image without having the client resize the image themselves (which is great, because clients never do this 😜).
HubSpot also offers the option to clone, crop and resize images, which is a great feature of the file manager.
The problem: The WebP format does not work with the 'resize_image_url', also, passing the name, width and height in the image URL does not seem to resize the image at all. So this is a major issue performance-wise. Furthermore, it currently is not possible to clone and resize a WebP image from the file manager.
The solution: Make sure that the 'resize_image_url' and the file manager functionalities also work with the WebP format.
Also, HubSpot allows you to change the size and crop images through the file manager, however, this doesn't work with WebP images either. So this issue is not limited to the 'resize_image_url' function.
I peeked at this and I think at least 2 out of the 3 issues mentioned here are broken (unless I'm missing something).
Example of `resize_image_url(webp_src, 0, 0, 500)` working:
And I verified that the "crop" functionality in the file manager also worked on that image. However, I did replicate when trying to use file manager to resize that WebP image.
Hopefully this helps. I'll pass on the issue with busted WebP resize. And if there is something I'm missing or a different issue with WebP please let me know so I can help!