Skip to content
New issue

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

Switch baked images to PNG instead of webp #3238

Closed
ikesau opened this issue Feb 23, 2024 · 0 comments · Fixed by #3248
Closed

Switch baked images to PNG instead of webp #3238

ikesau opened this issue Feb 23, 2024 · 0 comments · Fixed by #3248

Comments

@ikesau
Copy link
Member

ikesau commented Feb 23, 2024

WebP supported puttered out across all OS's and so despite smaller filesizes, it's impacting the shareability of our inline images.

We should bake the images as PNG instead.

return sharp(buffer)
.resize(width)
.webp({
lossless: true,
})
.toFile(localResizedFilepath)

And make sure any place that's assuming webp is changed to PNG instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant