You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

readme.md 855B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # guetzli-bin [![Build Status](https://travis-ci.org/imagemin/guetzli-bin.svg?branch=master)](http://travis-ci.org/imagemin/guetzli-bin)
  2. > [Guetzli](https://github.com/google/guetzli) is a JPEG encoder that aims for excellent compression density at high visual quality. Guetzli-generated images are typically 20-30% smaller than images of equivalent quality generated by libjpeg.
  3. You probably want [`imagemin-guetzli`](https://github.com/imagemin/imagemin-guetzli) instead.
  4. ## Install
  5. ```
  6. $ npm install guetzli
  7. ```
  8. ## Usage
  9. ```js
  10. const {execFile} = require('child_process');
  11. const guetzli = require('guetzli');
  12. execFile(guetzli, ['input.jpg', 'output.jpg'], error => {
  13. console.log('Image minified!');
  14. });
  15. ```
  16. ## CLI
  17. ```
  18. $ npm install --global guetzli
  19. ```
  20. ```
  21. $ guetzli --help
  22. ```
  23. ## License
  24. MIT © [Imagemin](https://github.com/imagemin)