Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor fixes/improvements of
upload_image.py
(#2449)
### What Lessons learned from #2440 - On Mac, PIL's clipboard import compresses to JPG, which is bad => added a custom function to use PNG instead. - Tuned the PIL image saving parameters to optimise for file size - Added some pngcrush CLI parameter for optimisation - Discard pngcrush output if it ends up bigger than output (PIL's PNG export is pretty good in most cases it seems) ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [ ] ~~I've included a screenshot or gif (if applicable)~~ <!-- This line will get updated when the PR build summary job finishes. --> PR Build Summary: https://build.rerun.io/pr/2449 <!-- pr-link-docs:start --> Docs preview: https://rerun.io/preview/8563e84/docs Examples preview: https://rerun.io/preview/8563e84/examples <!-- pr-link-docs:end -->
- Loading branch information