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

Refresh: optimize images, delete some cruft #15651

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

craigcook
Copy link
Member

One-line summary

Just ran images through tinypng. Most had already been optimized but almost everything got another 5-10% savings on a second run without any apparent quality loss.

Ran the icons through SVGO, which only a few really needed but almost all still shaved a few bytes... except a few gained a few bytes from adding line breaks.

Deleted a few old images that have been replaced. I figure we should keep the todo-* placeholders for now because they'll be useful on future pages.

Issue / Bugzilla link

#15416

Testing

Just make sure I didn't delete anything still in use, and that images haven't degraded in quality.

@craigcook craigcook added Needs Review Awaiting code review Review: XS Code review time: up to 30min Refresh 🦖 Work related to the 2024 site refresh labels Dec 3, 2024
@craigcook craigcook requested a review from a team as a code owner December 3, 2024 23:15
Copy link
Contributor

@stephaniehobson stephaniehobson left a comment

Choose a reason for hiding this comment

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

icon-bell, icon-dollar, icon-glasses, and icon-pencil were in use on the about page. They're larger than 24 and so are okay to have the missing pixel. They don't belong in the m24-small folder though so maybe put them back somewhere else?

Copy link
Contributor

@stephaniehobson stephaniehobson left a comment

Choose a reason for hiding this comment

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

R+

@stephaniehobson stephaniehobson merged commit 4f3fcf5 into mozilla:main Dec 4, 2024
5 checks passed
@craigcook
Copy link
Member Author

icon-bell, icon-dollar, icon-glasses, and icon-pencil were in use on the about page. They're larger than 24 and so are okay to have the missing pixel. They don't belong in the m24-small folder though so maybe put them back somewhere else?

Filed #15684 to restore those icons, now in an m24-large folder.

@craigcook craigcook deleted the m24-tinify-images branch December 5, 2024 02:42
Copy link
Contributor

@janbrasna janbrasna Dec 9, 2024

Choose a reason for hiding this comment

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

Not sure where the file name comes from… but it's missing a dash — so maybe that might be renamed from protocolwhite to protocol-white before any widespread use?

EDIT: renaming that in #15719

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review Awaiting code review Refresh 🦖 Work related to the 2024 site refresh Review: XS Code review time: up to 30min
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants