Open clintandrewhall opened 3 days ago
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?
Just tried with a GIF with the same result:
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?