https://github.com/catdad-experiments/heic-cli
👨💻 convert heic/heif images to jpeg or png from the command line
https://github.com/catdad-experiments/heic-cli
command-line-tool convert heic heif image image-converter jpg png
Last synced: about 1 month ago
JSON representation
👨💻 convert heic/heif images to jpeg or png from the command line
- Host: GitHub
- URL: https://github.com/catdad-experiments/heic-cli
- Owner: catdad-experiments
- Created: 2020-01-18T22:38:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-11-14T05:08:22.000Z (almost 2 years ago)
- Last Synced: 2025-08-09T07:44:22.961Z (about 2 months ago)
- Topics: command-line-tool, convert, heic, heif, image, image-converter, jpg, png
- Language: JavaScript
- Homepage:
- Size: 28.3 KB
- Stars: 60
- Watchers: 3
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# heic-cli
> Convert HEIC/HEIF images to JPEG and PNG on the command line
[![travis][travis.svg]][travis.link]
[![npm-downloads][npm-downloads.svg]][npm.link]
[![npm-version][npm-version.svg]][npm.link][travis.svg]: https://travis-ci.com/catdad-experiments/heic-cli.svg?branch=master
[travis.link]: https://travis-ci.com/catdad-experiments/heic-cli
[npm-downloads.svg]: https://img.shields.io/npm/dm/heic-cli.svg
[npm.link]: https://www.npmjs.com/package/heic-cli
[npm-version.svg]: https://img.shields.io/npm/v/heic-cli.svg## Usage
```bash
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 fileOptions:
--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](https://github.com/catdad-experiments/heic-app) - web application to convert heic/heif images to jpeg using a GUI
* [heic-convert](https://github.com/catdad-experiments/heic-convert) - convert heic/heif images to jpeg and png
* [heic-decode](https://github.com/catdad-experiments/heic-decode) - decode heic/heif images to raw image data
* [libheif-js](https://github.com/catdad-experiments/libheif-js) - libheif as a pure-javascript npm module