Skip to content

add format: 'webp' to support Astro automatically. #13

@hexiro

Description

@hexiro

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions