heic-cli

Convert HEIC/HEIF images to JPEG and PNG from the command line

Usage no npm install needed!

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

README

heic-cli

Convert HEIC/HEIF images to JPEG and PNG on the command line

travis npm-downloads npm-version

Usage

npx heic-cli < input.heic > result.jpg

Full options (also printed with npx heic-cli --help)

Commands:
  heic-cli       convert HEIC image to JPEG or PNG                     [default]
  heic-cli info  see minimum info about each image in the file

Options:
  --version     Show version number                                    [boolean]
  --help        Show help                                              [boolean]
  --format, -f  The output format       [choices: "jpg", "png"] [default: "jpg"]
  --input, -i   The input file to convert, - for stdin            [default: "-"]
  --output, -o  The output file to create, - for stdout           [default: "-"]
  --images, -m  Which images to decode, -1 for all        [array] [default: [0]]

Related