Ben Chuanlong Du's Blog

It is never too late to learn.

Convert HEIC Images in Linux

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Installation on Ubuntu

wajig install heif-gdk-pixbuf libheif-examples

Usage

heif-convert input.HEIC output.jpg

Batch Convert Using IPython / JupyterLab

If you have multiple HIEC images and you want to convert all of them to JPG images, then you use the following code in IPython or a JupyterLab notebook.

for p in Path().glob("*.HEIC"):
    !heif-convert {p} {p.with_suffix(".jpg")}

References

Comments