/t͡sêsaːr/ :
- n. french sculptor at the forefront of the Nouveau Réalisme movement with his radical compressions
- n. git pre-commit hook to compress images
cesar performs compression by calling external tools : pngcrush for PNG files and jpegoptim for JPEG files.
Copy /cesar to your .git/hooks/ folder and rename it as pre-commit.
Or if you use pre-commit framework, add this to your .pre-commit-config.yaml :
- repo: https://github.com/kraymer/cesar
rev: master
hooks:
- id: cesar
cesar....................................................................Failed
hookid: cesar
Files were modified by this hook. Additional output:
compressed docs/Selection_459.png: 256K => 252K
All done! ⚡ 🗿 ⚡
1 file compressed, 3 files left unchanged
