vite-plugin-lqip icon indicating copy to clipboard operation
vite-plugin-lqip copied to clipboard

add `format: 'webp'` to support Astro automatically.

Open hexiro opened this issue 7 months ago • 8 comments

Description

Hello, first I want to say thank you for making this amazing package! this is exactly what I was looking for! I have absolutely no complaints but wanted to suggest something to see if you would be interested in adding this to your package.

Screenshot 2024-07-05 at 7 35 11 PM

I am using Astro with this plugin and Astro's image component requires the props src, width, height, and format. using your plugin with ?lqip, lqip is of course added but format is left behind. this is far from the end of the world as the solution i have been using (pictured above) works lovely.

with that being said, I don't think it would neccesarily be a bad idea to pass to output the format even though it's just going to be webp everytime, so that it automatically satisfies Astro's ImageMetadata type, and becomes even more out-the-box for those users.

Please let me know what thoughts you have on this! and once again this package is easy to use and convenient! thank you so much!

hexiro avatar Jul 05 '24 23:07 hexiro