-
Notifications
You must be signed in to change notification settings - Fork 800
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
Lossless image optimization, part 2 #38573
Conversation
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks appearing at the bottom of this PR are passing or skipped. Beta plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Backup plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Boost plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Search plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Social plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Protect plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Migration plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Automattic For agencies client plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
I don't mind, but I'm about to go on vacation for two weeks so you may want to find someone else to review it. 😀 I ran the non-SVGs through ImageMagick's As for deploy size, looks like the diff to wpcom for this one will be about 12M. None of the stuff in Boost, CRM, and so on goes to wpcom at all, at least not through the sun-moon deploy process. For the record, probably the easiest way to measure that would be to wait for the build to finish, go to your sandbox, run P.S. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I couldn't find any broken or degraded images, nor any regressions in size 👍
14cb091
to
58d2956
Compare
Lossless image optimization of Jetpack images. This is a continuation of #38398 and #38573. Please see #38398 for more context and details. This finishes this series of commits. All images except for projects/js-packages/connection/components/disconnect-dialog/images/disconnect-thanks.jpg have been optimized. See @anomiex's debugging of the problem in #38750 (review) for more info on why that image was skipped.
Lossless image optimization of Jetpack images. This is a continuation of #38398 and #38573. Please see #38398 for more context and details. This finishes this series of commits. All images except for projects/js-packages/connection/components/disconnect-dialog/images/disconnect-thanks.jpg have been optimized. See @anomiex's debugging of the problem in #38750 (review) for more info on why that image was skipped.
This is a continuation of #38398, which has been split into multiple parts to avoid hitting a 20 MB commit limit in wpcom that Automattic/themes#7671 ran into. Please see #38398 for more context.
Proposed changes:
This PR contains lossless image optimizations for images in
The PNGs in
projects/plugins/jetpack/
were already optimized in #38398, so those should be untouched and we only have optimizations to JPEG/SVG/GIF files in that subdirectory.Other information:
The size of the impacted files going into wpcom seems to be about 5.7 MB, not including any sort of copying that would add a multiplier to the size (note that du -ch rounds each file's size up to the nearest 4KB, so this is an overestimate):
@anomiex, I hope you don't mind that I'm taging you as a potential reviewer since you have context on this from reviewing the previous PR 🙂.
Testing instructions:
Does this pull request change what data or activity we track or use?
No.