HEIF-ENC(1) General Commands Manual HEIF-ENC(1)

# [NAME](#NAME)

heif-enc - convert image to HEIC/HEIF

# [SYNOPSIS](#SYNOPSIS)

**heif-enc** \[**-h**|**--help**] \[**-q** *QUALITY*|**--quality** *QUALITY*] \[**-L**|**--lossless**] \[**-t** *SIZE*|**--thumb** *SIZE*] \[**--no-alpha**] \[**--no-thumb-alpha**] \[**-o** *FILENAME*|**--output** *FILENAME*] \[**-v**|**--verbose**] \[**-P**|**--params**] \[**-b** *DEPTH*] \[**-p** *NAME=VALUE*] *filename\[.jpg|.png|.y4m]*

# [DESCRIPTION](#DESCRIPTION)

**heif-enc** Convert image to HEIC/HEIF.

# [OPTIONS](#OPTIONS)

[**-q *QUALITY***, **--quality *QUALITY***](#q)

Defines quality level between 0 and 100 for the generated output file.

[**-L**, **--lossless**](#L)

Generate lossless output (**-q** has no effect)

[**-t *SIZE***, **--thumb *SIZE***](#t)

Generate thumbnail with maximum size *SIZE* pixels (default: off).

[**--no-alpha**](#no-alpha)

Do not save alpha channel.

[**--no-thumb-alpha**](#no-thumb-alpha)

Do not save alpha channel in thumbnail image.

[**-o *FILENAME***, **--output *FILENAME***](#o)

Output filename (optional).

[**--verbose**](#verbose)

Enable logging output (more will increase logging level).

[**-P**, **--params**](#P)

Show all encoder parameters and exit. Input file is not required or used.

[**-b *DEPTH***](#b)

Bit-depth of generated HEIF file when using 16-bit PNG input (default: 10 bit).

[**-p *NAME*=*VALUE***](#p)

Set additional encoder parameters. See **NOTES** below.

# [EXIT STATUS](#EXIT_STATUS)

**0**

Success

**1**

Failure (syntax or usage error; error while loading, converting or writing image).

# [NOTES](#NOTES)

The available input formats depend on the libraries that were available at compile time. Supported are JPEG, PNG and Y4M, the file type is determined based on the extension of the input file.

When specifying multiple source images, they will all be saved into the same HEIF file.

When using the x265 encoder, you may pass it any of its parameters by prefixing the parameter name with **x265:**. Hence, to set the **ctu** parameter, you will have to set **x265:ctu** in libheif (e.g.: **-p x265:ctu=64**).

Note that there is no checking for valid parameters when using the prefix.

# [BUGS](#BUGS)

Please reports bugs or issues at https://github.com/strukturag/libheif

# [AUTHORS](#AUTHORS)

Dirk Farin, struktur AG

# [COPYRIGHT](#COPYRIGHT)

Copyright © 2017 struktur AG

---

Document: heif-enc(1) from libheif 1.23.7-r1 (Chainguard OS)
Source: https://github.com/strukturag/libheif.git
