Convert HEIC files to JPG on Ubuntu

Apple uses High Efficiency Image File Format for Photo’s and this in photo’s with the .HEIC extension. you can easily convert this on Ubuntu using;

sudo apt-get install libheif-examples

for photo in *.HEIC; do heif-convert $photo ${photo/%.HEIC/.jpg}; done

Alternatively you could disable the HEIF format on your iPhone under Settings > Camera; https://support.apple.com/en-us/HT207022

10 thoughts on “Convert HEIC files to JPG on Ubuntu”

  1. Can’t open IMG_0321.jpg: Permission denied
    could not write image
    File contains 1 images

    1. I’ve been dealing with this exact issue since my wife’s iPhone started sending me HEIC files. That one-liner with heif-convert is exactly what I needed—much cleaner than hunting for random online converters. I’ll probably just disable it in her Camera settings though, since it’s less of a hassle for us both.

    2. Finally, a straightforward way to batch-convert those .HEIC files on Ubuntu without needing extra GUI tools. The one-liner with `heif-convert` and the parameter expansion is exactly what I was looking for—much cleaner than dragging each photo through a web converter.

    3. I’ve been looking for a quick way to handle my iPhone’s `.HEIC` files on my Linux machine without uploading them to some sketchy conversion website. That bash loop utilizing `heif-convert` is exactly the lightweight terminal solution I needed to batch convert them all to `.jpg` instantly.

    4. That bash loop for `heif-convert` is exactly what I needed to batch convert all the HEIC photos I recently transferred from my iPhone. Installing `libheif-examples` took two seconds and the command worked flawlessly on my Ubuntu machine. It’s so much easier than having to upload them one by one to some sketchy online converter.

    5. I’ve been looking for a quick way to batch convert my iPhone’s HEIC photos on my Ubuntu setup without relying on sketchy online tools. That bash loop using `heif-convert` worked perfectly and saved me a ton of time. Installing `libheif-examples` was super straightforward, so I appreciate you putting the exact commands here.

    6. That bash loop for `heif-convert` is exactly what I needed to batch convert my iPhone photos on Ubuntu. I was previously trying to do them one by one, which was a total pain. Installing `libheif-examples` took two seconds and the script worked flawlessly.

    7. That bash loop for `heif-convert` is exactly what I needed to batch convert the photos from my iPhone on my Ubuntu machine. Installing `libheif-examples` was super quick, and the one-liner handled the `.HEIC` to `.jpg` conversion in seconds. This saves me so much time compared to using those sketchy online file converters.

    8. That bash loop for batch converting is exactly what I needed since my Ubuntu setup doesn’t natively support Apple’s HEIC format. Installing `libheif-examples` was super straightforward, and running `heif-convert` in the terminal is so much faster than uploading files to sketchy online converters.

    9. I’ve been looking for a quick way to batch convert my iPhone’s `.HEIC` photos on my Ubuntu machine without using some sketchy online converter. That `for` loop using `heif-convert` is exactly what I needed to handle all of them at once directly in the terminal. Installing `libheif-examples` was super quick and the bash syntax worked like a charm.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.