command line tool to convert heic to jpg

Command Line HEIC to JPG Converter

By Laura Moore
AD

In today's digital age, high-efficiency image container (HEIC) has emerged as a standard file format for Apple devices, promising improved image quality and smaller file sizes. However, this format isn't universally supported, often necessitating conversion to more universally recognized formats like JPEG. This article guides you through using the command line tool 'heif-convert' to convert HEIC to JPG.

Before we delve into the conversion process, ensure you have 'heif-convert' installed on your system. For Ubuntu users, it can be installed via the terminal using the command: `sudo apt-get install libheif-examples`. For macOS, you can use Homebrew: `brew install libheif`.

Using 'heif-convert' for Basic Conversions

Once installed, 'heif-convert' can be used in the terminal for straightforward conversions. Here's how:

AD
The Quickest Ways to Convert HEIC to JPEG
The Quickest Ways to Convert HEIC to JPEG
HEIC to JPG Converter
HEIC to JPG Converter
HEIC to JPG Converter Online – Convert iPhone HEIC Photos to JPG Free
HEIC to JPG Converter Online – Convert iPhone HEIC Photos to JPG Free

1. Open your terminal and navigate to the directory containing your HEIC files using the `cd` command.

Basic Conversion Syntax

The most basic usage involves specifying only the input (HEIC) and output (JPG) file. So, if you have a file named `image.heic` and you want to convert it to `image.jpg`, you would type:

Best Tools to Convert HEIC to JPG
Best Tools to Convert HEIC to JPG
Take a HEIC — Free HEIC to JPG converter
Take a HEIC — Free HEIC to JPG converter
Free HEIC to JPG Converter Online
Free HEIC to JPG Converter Online

`heif-convert image.heic image.jpg`

Press Enter, and the conversion will start. The converted JPEG file will be saved in the same directory.

AD

Batch Conversions

If you have multiple HEIC files to convert, you can use wildcards (*) to process them all at once. For instance, to convert all HEIC files in a directory to JPEG:

📱 How to Convert HEIC to PNG Online Free | iPhone Photos to PNG Converter
📱 How to Convert HEIC to PNG Online Free | iPhone Photos to PNG Converter
HEIC Converter: Convert to JPG & PNG
HEIC Converter: Convert to JPG & PNG
Easily Convert HEIC to PNG Images in Seconds – Free & Online
Easily Convert HEIC to PNG Images in Seconds – Free & Online
How to Convert HEIC to JPG: A Complete Guide
How to Convert HEIC to JPG: A Complete Guide
Best HEIC to JPG Converter: Top 8 Picks in 2026 - PhotoWorkout
Best HEIC to JPG Converter: Top 8 Picks in 2026 - PhotoWorkout
Convert HEIC to JPG in Mac With Automator & Keyboard Shortcut
Convert HEIC to JPG in Mac With Automator & Keyboard Shortcut

`heif-convert *.heic *.jpg`

This command will convert every HEIC file in the directory to a JPEG file with the same name.

AD

Advanced 'heif-convert' Features

'heif-convert' offers several more advanced options for those needing more control over their conversions.

How To Convert HEIC Images To JPG On Your Mac - SlashGear
How To Convert HEIC Images To JPG On Your Mac - SlashGear

Resizing Images

You can resize images during conversion using the `-w` and `-h` flags followed by the desired width and height, respectively. For example:

`heif-convert -w 800 -h 600 image.heic image.jpg`

AD

This command will convert `image.heic` to `image.jpg` and resize it to 800 pixels wide and 600 pixels tall.

Specifying Quality

The command also lets you specify the quality of the output JPEG file using the `-q` flag followed by a number between 0 and 100. A higher number means better quality but larger file size. For example:

`heif-convert -q 85 image.heic image.jpg`

This command will convert `image.heic` to `image.jpg` with a quality setting of 85.

Mastering 'heif-convert' allows you to efficiently manage your image files, ensuring compatibility with various systems and software. With practice, these commands will become second nature, streamlining your workflow and saving you time and effort. Happy converting!

AD