Skip to content
/ cesar Public

The radical compressor. Git pre-commit hook to reduce images filesizes.

License

Notifications You must be signed in to change notification settings

Kraymer/cesar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo
CESAR → The Radical Compressor

License: MIT

/t͡sêsaːr/ :

  1. n. french sculptor at the forefront of the Nouveau Réalisme movement with his radical compressions
  2. n. git pre-commit hook to compress images

Description

cesar performs compression by calling external tools : pngcrush for PNG files and jpegoptim for JPEG files.

Installation

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

Example

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

About

The radical compressor. Git pre-commit hook to reduce images filesizes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages