google / woff2

MIT License
1.52k stars 188 forks source link

make woff2_compress less verbose #154

Open mrecord opened 2 years ago

mrecord commented 2 years ago

A minor issue that bugs me every time I run fonts through woff2_compress:

Every time a font is converted woff2_compress prints the origin path, destination path, and compression statistics.

ex:

Processing /Users/user/path/path/path/font.ttf => /Users/user/path/path/path/font.woff2
Compressed 107080 to 32351.
Processing /Users/user/path/path/path/font1.ttf => /Users/user/path/path/path/font1.woff2
Compressed 106689 to 31944.
Processing /Users/user/path/path/path/font2.ttf => /Users/user/path/path/path/font2.woff2
Compressed 105675 to 30153.
Processing /Users/user/path/path/path/font3.ttf => /Users/user/path/path/path/font3.woff2
Compressed 106978 to 32418.
Processing /Users/user/path/path/path/font4.ttf => /Users/user/path/path/path/font4.woff2
Compressed 107080 to 32351.
Processing /Users/user/path/path/path/font5.ttf => /Users/user/path/path/path/font5.woff2
Compressed 106607 to 32891.

It's unnecessary information that clutters the terminal window. This information should be an optional argument (-v|verbose) or removed.

Thank you!