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

🔨 bake gdoc images as PNG instead of WebP #3248

Merged
merged 3 commits into from
Feb 27, 2024
Merged

Conversation

ikesau
Copy link
Member

@ikesau ikesau commented Feb 26, 2024

Lossless WebP images are typically 26% smaller than the same images in PNG format.

- MDN

Unfortunately, WebP is not as well-supported as PNG in most operating systems and programs, which Max and Este feel is more important when it comes to people using our graphics in their documents. 😢

Resolves #3238
Resolves #3220

Copy link
Contributor

@danyx23 danyx23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - in Image.tsx:107 there is a reference to image/webp in an if branch that checks if we are previewing. Is that fine or should that change as well?

@ikesau ikesau merged commit 48e6946 into master Feb 27, 2024
14 of 17 checks passed
@ikesau ikesau deleted the png-instead-of-webp branch February 27, 2024 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch baked images to PNG instead of webp Featured image og:image doesn't work with non-PNG images
2 participants