We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a PNG file I'm resizing and converting to WEBP:
const images = import.meta.glob<{ default: ImageOutputMetadata }>('logos/*.png', { query: { w: '40', as: 'metadata', format: 'webp' }, eager: true, });
So this PNG with transparency:
Results in a WEBP file that renders with no alpha channel:
Even though the metadata claims it does:
channels: 3 depth: "uchar" format: "webp" hasAlpha: true hasProfile: false height: 40 isProgressive: false space: "srgb" src: "/@imagetools/2ea211769af126686faeadb5c2b675b88f439323" width: 40
Any ideas what I'm doing wrong here?
The text was updated successfully, but these errors were encountered:
Just tried with a GIF with the same result:
Sorry, something went wrong.
No branches or pull requests
I have a PNG file I'm resizing and converting to WEBP:
So this PNG with transparency:
Results in a WEBP file that renders with no alpha channel:
Even though the metadata claims it does:
Any ideas what I'm doing wrong here?
The text was updated successfully, but these errors were encountered: