next-optimized-images
next-optimized-images copied to clipboard
webp srcset
Is it possible to apply multiple transformations by chaining the query params?
something like image.jpg?webp?trace?resize
Does not seem so. https://github.com/cyrilwanner/next-optimized-images/issues/43#issuecomment-449113930
responsive-loader does not support webp export https://github.com/herrstucki/responsive-loader/issues/42
That's a bummer. Thanks for the response.
This would be a massive improvement tho, I've got many images to serve and lighthouse says theres a huge difference to be made, I guess that does apply to most of the websites in general.
Would be great if this would be possible. Would like to ?webp?url
or ?webp.url
at least, to prevent inlining of certain images.
responsive-loader now supports webp format conversion: https://github.com/dazuaz/responsive-loader/issues/42
image.jpg?resize&sizes[]=800,sizes[]=1200,sizes[]=1440,sizes[]=1600,sizes[]=1900&format=webp
Running into this as well — does what @jeremiedubuis have there work?
I've tried adding &format=webp and unfortunately it's not working. I get this error: NonErrorEmittedError: (Emitted value instead of an instance of Error) Unsupported MIME type: image/webp. I have the latest version of responsive-loader installed.
I got this working now using sharp
instead of jimp
. https://github.com/cyrilwanner/next-optimized-images/issues/207