I thought the storage adapters would automatically convert uploaded images to webp if, for example, I uploaded a jpeg. I’ve been digging around in storage adapters for quite a while trying to figure out what creates the webp files.
Am I a silly goose that has been uploading jpegs when I should be uploading webp? Where does the format=webp usually come from? Is there something that automatically converts them?
Never mind. I am not a silly goose. There’s something weird going on where formats/webp isn’t created at all even if you upload a webp. :(
Where in here are the webps generated? Or what is supposed to generate them upstream?
I guess the custom storage adapters are just kind of abandoned?
None of them have been updated in years and I can’t find where the image pipeline makes webp even for localstorage.
As I understand it (haven’t looked at that part of the code), the images are actually generated when first requested, not when uploaded. So you might be looking in the wrong place….
oh hm
Well with a storage adapter it would potentially never hit any sort of read/serve/etc function so I guess that solves why I don’t have a formats/webp
I ended up abandoning it in favour of a CDN (which was my use case for using an S3 adapter) – that was less pain than figuring out the sizing issue I faced.