Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Minify homepage images #2158

Merged
merged 1 commit into from
Feb 9, 2023
Merged

Minify homepage images #2158

merged 1 commit into from
Feb 9, 2023

Conversation

zackkrida
Copy link
Member

@zackkrida zackkrida commented Feb 8, 2023

A small PR to minify the images on the homepage. Changes are lossless and any visual differences should be nonexistient/imperceptible.

Results in a average 66% decrease in image size for each homepage viewing. See the pottery view as an example:

Before: 1.8MB in images
After: 625kb in images

Passing visual regression tests should affirm the lack of meaningful visual change.

@zackkrida zackkrida requested a review from a team as a code owner February 8, 2023 19:15
@zackkrida zackkrida requested review from obulat and dhruvkb February 8, 2023 19:15
@github-actions
Copy link

github-actions bot commented Feb 8, 2023

Storybook and Tailwind configuration previews: Ready

Storybook: https://wordpress.github.io/openverse-frontend/_preview/2158
Tailwind: https://wordpress.github.io/openverse-frontend/_preview/2158/tailwind

Please note that GitHub pages takes a little time to deploy newly pushed code, if the links above don't work or you see old versions, wait 5 minutes and try again.

You can check the GitHub pages deployment action list to see the current status of the deployments.

@zackkrida zackkrida added 🟩 priority: low Low priority and doesn't need to be rushed ✨ goal: improvement Improvement to an existing user-facing feature 🕹 aspect: interface Concerns end-users' experience with the software labels Feb 8, 2023
Copy link
Member

@dhruvkb dhruvkb left a comment

Choose a reason for hiding this comment

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

This is great, would also love to see if adding a WEBP variant and using <picture> and <source> can further reduce the sizes when the format is supported.

Copy link
Contributor

@obulat obulat left a comment

Choose a reason for hiding this comment

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

Nice!

@zackkrida zackkrida merged commit 38f8a6a into main Feb 9, 2023
@zackkrida zackkrida deleted the minify-images branch February 9, 2023 14:14
github-actions bot pushed a commit that referenced this pull request Feb 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🕹 aspect: interface Concerns end-users' experience with the software ✨ goal: improvement Improvement to an existing user-facing feature 🟩 priority: low Low priority and doesn't need to be rushed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants