Optimize Webstie images#5349
Merged
cpojer merged 4 commits intojestjs:masterfrom Jan 19, 2018
genintho:optimize-image
Merged
Conversation
thymikee
approved these changes
Jan 19, 2018
Codecov Report
@@ Coverage Diff @@
## master #5349 +/- ##
=========================================
- Coverage 61.32% 61.22% -0.1%
=========================================
Files 205 205
Lines 6909 6894 -15
Branches 4 3 -1
=========================================
- Hits 4237 4221 -16
- Misses 2671 2672 +1
Partials 1 1
Continue to review full report at Codecov.
|
Member
|
Awesome! Thanks for making the Jest website faster. |
thymikee
pushed a commit
that referenced
this pull request
Aug 8, 2018
This PR optimize the site images, using lossy algorithm. I did one of these in the past (#5349). You might want to consider using the tool (https://www.shrink.sh) I used to generate this PR. Disclaimer, I am the author, and I wrote it exactly to solve this problem: it is too easy to forget the optimize images. The tool is triggered when new images are pushed on the master branch of a repo. Rebasing my fork with upstream triggered it. Below is the PR description generated by the tool. ---- # 🤖 Reduce image sizes by 49%! ### Optimized Images #| 📁 File | Original Size | New Size | Savings -|--------------|---------------|---------------|-------------- ✅ | 16-snapshots.png | 150.10 KiB | 142.55 KiB | -5% ✅ | interactiveSnapshot.png | 128.66 KiB | 109.02 KiB | -15% ✅ | interactiveSnapshotUpdate.gif | 805.99 KiB | 511.21 KiB | -36% ✅ | interactiveSnapshotDone.png | 33.09 KiB | 28.03 KiB | -15% ✅ | airbnb.png | 51.70 KiB | 31.84 KiB | -38% ✅ | default-demo.gif | 7.25 MiB | 3.82 MiB | -47% ✅ | describe-demo.gif | 5.26 MiB | 2.48 MiB | -52% ✅ | tagged-template-literal.gif | 4.12 MiB | 1.41 MiB | -65% ✅ | test-demo.gif | 4.52 MiB | 2.23 MiB | -50% ✅ | 23-asymmetric-matchers.png | 265.32 KiB | 148.20 KiB | -44% ✅ | 23-async-matchers.png | 179.54 KiB | 99.34 KiB | -44% ✅ | 23-hanging-after.png | 233.85 KiB | 144.74 KiB | -38% ✅ | 23-hanging-before.png | 190.30 KiB | 117.83 KiB | -38% ✅ | 23-interactive.gif | 824.47 KiB | 655.32 KiB | -20% ✅ | 23-jest-each.png | 235.91 KiB | 129.32 KiB | -45% ✅ | 23-new-matchers.png | 295.07 KiB | 167.39 KiB | -43% ✅ | 23-snapshot-matchers.png | 344.73 KiB | 246.78 KiB | -28% ✅ | 23-typeahead.gif | 308.19 KiB | 181.83 KiB | -40% 🍪|**Total**| 25.11 MiB | 12.59 MiB | -49%
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR simply run the images used on the documentation site through https://imageoptim.com/ with the default settings to apply losseless optimization
I confirmed that everything looked good by running
yarn startinside the website directory and poking around the site.Some stats


