-
Notifications
You must be signed in to change notification settings - Fork 47.2k
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
[DevTools] Optimize Images (part 1) #19972
Conversation
Hi @ilhamsyahids! Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit ad7f857:
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
How do we know this is correct? Can you provide screenshots before and after? |
@gaearon, you can see the changes by viewing the changed files, and click on Display on rich diff for each file: |
Execute These look all fine to me. |
@gaearon yes, you can always check it in files changes and check for Display on rich diff Thanks to @IDrissAitHafid for answering it and @eps1lon for providing easier code to check it. |
@gaearon is there anything that I should change? |
@ilhamsyahids How'd you generate these? |
@bvaughn using bot/plugin that scan the images in the project and change them one by one with simplified size |
@ilhamsyahids Which bot? (Is this reproducible when we need to update the images.) |
@bvaughn Imgbot |
@ilhamsyahids could you share reproducible commands or instructions? |
@kachkaev I'm not sure, because its integrated with my account and its generated automatically |
@ilhamsyahids There will likely be new images, yes. The concern behind these questions are: How does someone else reproduce this result if you're unavailable. |
@bvaughn for instructions bot itself can be access in the website, and its completely free for open source. |
@bvaughn anyway, do you find something wrong in this PR or the result? Bot only work for images, in this PR I also restyle svg file. Before add new images, maybe we can optimize the old images. |
@ilhamsyahids I think there may be some security concerns like steganography or some hidden script especially because we have no clue what algorithms that bot uses or what it is doing with the images. |
@IDrissAitHafid For code itself, you can check here https://github.com/dabutvin/Imgbot and it has been offered by Github Student Developer, check this out https://education.github.com/pack?tag=Infrastructure+%26+APIs |
Hi, is there anything that I can update for this PR? |
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.
@ilhamsyahids We'd need a Node script to run that automatically generates/updates these images, so that it could be done (in CI) as part of our build and release process. Unfortunately visiting a website and manually updating the images doesn't really fit with how we manage releases, at this scale.
I think I'm open for either, so long as it's an automated thing. |
For option one, I cant proceed (only who is part of the organization), let me try the second one. |
Summary
Image file size has been reduced by 25%
Details
Test Plan