Convert heic to jpeg

How do I convert a heic picture to jpeg?

You can install heif-examples from packman repository. You may convert an image afterwards via

heif-convert IMG_1234.heic yournamehere.jpg

thanks but I don’t have anything pacman

You need to add the repository then…(a quick search in your older posts shows, that you had packman in your older installations).

sudo zypper addrepo -cfp 90 'https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_$releasever/' packman

If you are not sure about that, you may show us your repository list so that we can check:

zypper lr -d

If you have the packman repo you can install the needed package for image conversion:

sudo zypper ref
sudo zypper in heif-examples

i tried it and it keeps saying input file does not exist

You may want to show the complete terminal in-/output. My guess is that you do not execute the command in the directory where the image is stored. So you need to specify the complete path path. Example:

heif-convert /path/where/image/is/stored/IMG_1234.heic /path/to/converted/image/yournamehere.jpg

Exchange the file path in the above example to the ones at your system (same applies for image names).

I just found I can email it to myself from my i phone using most compatible format and it sent it as a jpg :grinning:

Since .heic is mostly related to smartphones, I found (years ago) it’s easier to disable that option in the camera app. (and yea, the image below is not a .heic)

“Emailing yourself” is not required.

1 Like

Thanks I never knew that

@1chip:

  1. If not using KDE Plasma, change to KDE Plasma.
  2. Install digiKam.
  3. Import the HEIC images into digiKam.
  4. digiKam has a tool to convert HEIC images to JPEG, PNG, whatever …

If not using KDE Plasma –

  1. Install ImageMagick.
  2. From a CLI:

> magick ???.heic ???.jpg

Or, you can also use the deprecated “convert” command.
<Mastering Digital Image Alchemy>

You’ll also need the openSUSE HEIF library

 > LANG=C zypper info libheif1

Loading repository data...
Reading installed packages...


Information for package libheif1:
---------------------------------
Repository     : Update repository with updates from SUSE Linux Enterprise 15
Name           : libheif1
Version        : 1.12.0-150400.3.14.1
Arch           : x86_64
Vendor         : SUSE LLC <https://www.suse.com/>
Installed Size : 525.4 KiB
Installed      : Yes
Status         : up-to-date
Source package : libheif-1.12.0-150400.3.14.1.src
Upstream URL   : https://github.com/strukturag/libheif
Summary        : HEIF/AVIF file format decoder and encoder
Description    : 
    libheif is an ISO/IEC 23008-12:2017 HEIF and AVIF (AV1 Image File Format) file
    format decoder and encoder.

    HEIF and AVIF are new image file formats employing HEVC (H.265) or AV1 image
    coding, respectively, for the best compression ratios currently possible.

    For AVIF libaom, dav1d, or rav1e are used as codecs. HEIF support is not
    provided.

 > 

GIMP can also load and save HEIF images but, you’ll have to install the gimp-plugin-heif package from Packman.

1 Like

Available only for TW with openSUSE repos. Needs Community repos for Leap.

As you only use s.o.o for package search (which is known to be broken for Leap since ages), you missed that libheif1 is available in the official Leap 15.6 OSS/Update-SLE repository.