9

How can I convert an HEIF/HEIC image into a JPEG? Maybe using ImageMagick?

9

Support for reading HEIF was added to ImageMagick 7.0.7-22, you have to install it with --with-libheif flag.

e.g. on macOS with Homebrew: brew install imagemagick --with-libheif. If you have previously installed imagemagick with Homebrew, you need to uninstall it by brew uninstall imagemagick first.


One other option to convert HEIF → JPG on macOS is by using Automator. It has a "Change Type of Images" action that can do the conversion. If needed, you could have the "to JPG" conversion available in context menu

  • FYI. It is possible to change the settings in your iPhone to capture photos as JPEG‘s instead of HEIF so that you don’t have to deal with their very compressed files. Go to settings> camera> formats and choose most compatible. Another option is to use a third-party app that saves Photos as tiff or raw and avoid compression altogether – Alaska man Jun 16 '18 at 18:09
  • Sure, but of course you would lose all other perks in addition to the improved compression (e.g. depth maps for portrait photos) as well. Not saying either is better, but that both have drawbacks which are subject to personal preferences. – Jari Keinänen Jun 16 '18 at 18:22
  • Those things are not important to me and i prefer have complete control over my images and not let the software choose what data to delete when it compresses. If they are important to you then you can have both. The app i use can be set to save both raw and HEIF ( or JPG ) – Alaska man Jun 16 '18 at 18:29
  • 2
    brew reinstall with the libheif option didn't work for me. And it seems documented as such in brew help reinstall: "Uninstall and then install formula (with existing install options)." However, brew uninstall imagemagick + brew install imagemagick --with-libheif worked just fine! Upvoting, but might be worth an update. – jleverenz Dec 18 '18 at 1:09
  • @jleverenz Thanks, fixed it. I probably tested the command after I already had installed imagemagick with libheif, so it seemed like it was working as I thought it would, while in reality it just ignored the extraneous option. – Jari Keinänen Dec 18 '18 at 14:30
1

Ubuntu/Linux

  • @filibuntu has written about HEIF software on AskUbuntu. The information likely applies to other Linux distributions as well.

  • There is a library libheif that is part of the standard Ubuntu repositories, but no other packages use it at this time.

  • There is a package libheif-tool, but it can be installed only via PPA.

  • The latest version of GIMP (2.10.2+) supports import and export of HEIF files.

  • tifig may do what you are seeking, but I have not tried it.

  • Apparently, Imagemagick can be recompiled with libheif support, though I haven't tried.

Windows 10

Online Converters

  • Google Photos and Dropbox have been reported to support HEIF.

  • There are other converters, but be sure to read their privacy policies before using them.

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.