The Imagemin Guard package was just updated to move away from the unmaintained Imagemin family, and to improve code, tests, documentation, and usability. If you like to avoid unnecessary image payload, even in your repos, especially in environments where not everyone pays attention to it, this is a good update to try.