is-progressive-cli

Check if JPEG images are progressive

Usage no npm install needed!

<script type="module">
  import isProgressiveCli from 'https://cdn.skypack.dev/is-progressive-cli';
</script>

README

is-progressive-cli Build Status

Check if JPEG images are progressive

Can be useful to make sure your images are progressive, which is important for performance:

Progressive JPEGs are better because they are faster. Appearing faster is being faster, and perceived speed is more important that actual speed. - Progressive JPEGs: a new best practice

The check is fast as it only reads a small part of the file.

Install

$ npm install --global is-progressive-cli

Usage

$ is-progressive --help

  Usage
    $ is-progressive <file> ...
    $ is-progressive < <file>

  Example
    $ is-progressive baseline.jpg progressive.jpg
    ✖ baseline.jpg
    ✔ progressive.jpg
Globbing

You can use globs too if your shell supports that.

$ is-progressive *.jpg

Related

License

MIT © Sindre Sorhus