Skip to content

👨‍💻 convert heic/heif images to jpeg or png from the command line

Notifications You must be signed in to change notification settings

catdad-experiments/heic-cli

Repository files navigation

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

  • heic-app - web application to convert heic/heif images to jpeg using a GUI
  • heic-convert - convert heic/heif images to jpeg and png
  • heic-decode - decode heic/heif images to raw image data
  • libheif-js - libheif as a pure-javascript npm module