Skip to content

Optimized some common images with zopflipng#5697

Merged
bramkragten merged 1 commit intohome-assistant:devfrom
matstrange:dev
May 2, 2020
Merged

Optimized some common images with zopflipng#5697
bramkragten merged 1 commit intohome-assistant:devfrom
matstrange:dev

Conversation

@matstrange
Copy link
Copy Markdown
Contributor

@matstrange matstrange commented May 1, 2020

Proposed change

I've processed a number of key static png files through the zopflipng algorithm to see the impact on file size. The images are visibily identical but come in more highly compressed through many additional runs through the algorithm (I ran most of these between 5k-30k iterations until I saw no further improvement)

While small, every byte counts and should hopefully help to improve the loading and weather cards if anyone is pulling from a slow remote connection.

There are more to go after but these looked like the most obvious. If there is a desire for this type of optimisation I'm happy to look for more opportunities!

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example configuration

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:
  • Link to documentation pull request:

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • [] Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

@homeassistant
Copy link
Copy Markdown
Contributor

Hi @matstrange,

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

Copy link
Copy Markdown
Member

@bramkragten bramkragten left a comment

Choose a reason for hiding this comment

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

Thanks! 🦁

@bramkragten bramkragten merged commit 6e38a80 into home-assistant:dev May 2, 2020
@bramkragten bramkragten mentioned this pull request May 5, 2020
@lock lock Bot locked and limited conversation to collaborators May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants