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

reduce background image size on NTP #3735

Closed
wants to merge 1 commit into from
Closed

Conversation

cezaraugusto
Copy link
Contributor

Cut down all NTP background image size by ~60%.

Image quality doesn't seem to be reduced. Tagging @bradleyrichter to double-check.

@AndriusA mentioned that in devices with lower screen resolution our NTP felt sluggish. This PR aims to improve that.

Added CI skip to all platforms but macOS since it's likely that reviewers are using it and these labels speed up builds considerably.

Below a comparison table regarding image size reduction.

image before after
ntp-1.webp 1.21 MB 472 KB
ntp-2.webp 1.47 MB 703 KB
ntp-3.webp 1.16 MB 365 KB
ntp-4.webp 452 KB 142 KB
ntp-5.webp 136 KB 33.2 KB
ntp-6.webp 360 KB 124 KB
ntp-7.webp 465 KB 132 KB
ntp-8.webp 550 KB 174 KB
ntp-9.webp 1.11 MB 534 KB
ntp-10.webp 260 KB 64 KB
ntp-11.webp 493 KB 177 KB
ntp-12.webp 1.31 MB 581 KB
ntp-13.webp 1.28 MB 397 KB
ntp-14.webp 706 KB 290 KB
ntp-15.webp 275 KB 99.1 KB
ntp-16.webp 1.19 MB 441 KB

@cezaraugusto cezaraugusto added CI/skip-android Do not run CI builds for Android CI/skip-linux CI/skip-ios Do not run CI builds for iOS labels Oct 17, 2019
@cezaraugusto cezaraugusto self-assigned this Oct 17, 2019
@petemill
Copy link
Member

Removing ci/skip-windows so we can test builds on low power device

@petemill
Copy link
Member

petemill commented Nov 4, 2019

@cezaraugusto could you explain which method you used to reduce the size of the webp files?

@cezaraugusto
Copy link
Contributor Author

@bsclifton
Copy link
Member

bsclifton commented Dec 16, 2019

Usually when decreasing size, there's going to be a load or processing hit to make up for the difference (ex: decompressing). Especially as the JPG is already compressed

Would leave it up to reviewers if this new approach is good 😄
cc: @petemill @ryanbr @iefremov @simonhong @AndriusA

@petemill
Copy link
Member

I think we can close this in favor of #4264

@bsclifton
Copy link
Member

@petemill SGTM

@bsclifton bsclifton closed this Dec 30, 2019
@bsclifton bsclifton deleted the ntp_image_min branch December 30, 2019 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/skip-android Do not run CI builds for Android CI/skip-ios Do not run CI builds for iOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants