Skip to content

Make images/ a lot smaller #7452

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Make images/ a lot smaller #7452

wants to merge 4 commits into from

Conversation

stevenpetryk
Copy link
Contributor

  • Convert all pngs and jpegs to lossy webp
  • Convert some naughty SVGs to much smaller webps
  • Optimize some gifs

Overall size reduction: 147MB -> 49MB.

The 33MB worth of GIGANTIC gifs in images/social-sdk/design-guidelines/animated will need special treatment, maybe placed on our internal CDN, because they are just huge and displayed in a large format. Any attempt at optimizing them makes them look like crap.

@stevenpetryk stevenpetryk requested a review from a team as a code owner April 4, 2025 17:37
@stevenpetryk stevenpetryk requested review from markmandel and removed request for a team April 4, 2025 17:37
Copy link
Contributor Author

Choose a reason for hiding this comment

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

y'all use pnpm now, deal with it (jk I will revert all the scripty stuff)

@colinloretz
Copy link
Contributor

huge

Copy link
Contributor

@JustinBeckwith JustinBeckwith left a comment

Choose a reason for hiding this comment

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

LGTM after going back to npm

@markmandel
Copy link
Contributor

Booted up a local preview and poked around, LGTM!

image

@advaith1
Copy link
Contributor

advaith1 commented Apr 4, 2025

btw I think some of the images (like ask-to-join.gif) aren't used at all and can be removed

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.

5 participants