From c0e3d453c0aa0520d068bb1ef2c53e00c5b07c59 Mon Sep 17 00:00:00 2001 From: Dennis Esternon Date: Tue, 3 May 2022 06:20:44 +0800 Subject: [PATCH] Base: Add note about optipng to contributing guidelines A trick I learned from @linusg which is very useful and needs to be a part of PRs where images are involved. --- CONTRIBUTING.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 90a2eecdf7..c6d66b265d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -55,6 +55,7 @@ Nobody is perfect, and sometimes we mess things up. That said, here are some goo * Squash your commits when making revisions after a patch review. * Add your personal copyright line to files when making substantive changes. (Optional but encouraged!) * Check the spelling of your code, comments and commit messages. +* If you have images that go along with your code, run `optipng -strip all` on them to optimize and strip away useless metadata - this can reduce file size from multiple kilobytes to a couple hundred bytes. **Don't:**