- π¬π§United Kingdom Driskell
The approach by @larowlan seems very useful to me, as it means existing modules are unaffected and new ones can receive additional information via the new interface. Over time perhaps some more helpers can be added for moving temporary files too but this would be a good start and works great for me.
- πΊπΈUnited States michaellander
I thought this was interesting: WebP fallback image β .. Their argument is that we aren't gaining the full benefits of compression with modules like ImageAPI Optimize Webp β because we aren't compressing from the source file. My original rationale was to avoid running images through image style processors multiple times(once as jpg, once as webp, for example), though that wouldn't matter so much if it's only running it through the image style as it's being requested for the first time. I think it's also more and more likely that people will favor AVIF with a WebP fallback, and almost never want to keep the original file format if JPG, PNG, etc..
Perhaps finding a way where we would no longer need to do the derivative handling at the imageapi_optimize level, and let optimize just worry about optimization.
I haven't looked at this stuff in awhile and will try and get caught back up.