How to work with, edit, and share HEIC images without data loss

Posted:
in General Discussion edited October 2020
The image format used by iPhones has a lot of advantages but more than a year since its adoption, it's still not fully supported. AppleInsider examines the problems you can face editing HEIC images and what you can do about it.

Apple announces HEIF support


When you need to feel justified in spending all this money on a new iPhone XS or iPhone XS Max, you can just take a photograph and relish how good it looks. Only, if you then want to use that photograph somewhere else, you can end up with a shot that has visible faults in it -- faults where you can see clear discoloration or even visible digital artefacts in the image.

You can be quite far down your production workflow when you see this. If you don't know what's caused it or if you don't have access to the original image, you will at best lose time and at worse have effectively lost an image.

That's because by default iPhones now shoot in HEIC format and while that's hopefully an excellent thing that we'll all come to love, it's taking a long time to get there.

Apple first supported HEIF in macOS High Sierra and iOS 11 more than a year ago. While Adobe Photoshop added HEIC support last October, Lightroom didn't get it until this June. Pixelmator Pro officially supported it from the launch of macOS High Sierra.

And yet there is still something not quite perfect with the implementation, something that means you need to watch how you edit or manipulate photos that have been shot and saved this way.

What it is

Nobody cares what JPEG stands for because we all know what it does. Nobody should really be all that fussed about what precisely HEIC stands for either, except that there's also HEIF and sometimes they're used interchangeable. If you're looking to see if an app supports this format, you can look for either HEIC or HEIF.

HEIF is a High Efficiency Image File Format -- you'd think it would be HEIFF but that would be too obvious -- that was defined by the members of the Moving Picture Experts Group. You've seen their work before with MPEG and the companies concerned do specifically get together to work on video compression. So this is a video format.

Except it's a still image format. And rather than HEIF, Apple calls it HEIC. Even though we know that the C stands for Codec, this is just what Apple has decided to rebrand HEIF and all of these are exactly the same format. Except HEIF also allows for video called in a system called High Efficiency Video Codec or HEVC.

Glad we could clear that up.

What goes wrong

Unless you've already changed settings on your iPhone, it's going to shoot images in this HEIC format. Take a photo with it, then AirDrop it over to your Mac -- specifically AirDrop -- and see what happens.

The image file that arrives on your Mac will of course be in HEIC format. Like any other image, you can click to select it and then tap the spacebar to use Apple's Quick Look.




Here's an example. To create a plain but reasonably complex shot, we photographed a blue background on our iMac. Here's a PNG conversion of that shot.

However, here's a screen grab of that same iMac showing the original HEIC file through Quick Look.




That's Apple's own Quick Look feature getting it wrong. That same discoloration and green dotted pattern is also visible in macOS Mojave's new and actually much-admired new Finder preview in macOS Mojave. This can't reliably display HEIF images correctly either.

Just to rule out any chance that it's a fluke issue with our display, the image displays perfectly when then opened in Preview on the same iMac.

We did suspect a speed issue: on an older Mac, we would occasionally see Quick Look display this problem and then correct itself. However, there was no discernible consistency, there was nothing we could to reproduce the correction. It either happened or it didn't.

Plus an image that did correct itself in Quick Look could still be wrong when opened in an editor such as Pixelmator Pro.

That's a first-class image editor which supports HEIC and still things are inconsistent.

What you can do

HEIC has the appeal that it definitely results in smaller file sizes and arguably in better-quality images. If we'd been saying this a year or so ago, we'd be saying that HEIC looked like the future but now we're not so sure.

We're still hopeful, though, but in the meantime, you can choose to convert from HEIC to JPEG before you send an image anywhere -- or you can set your phone to stop shooting in this newer format.

To switch the iOS camera back to shooting in JPEG, go to Settings, Camera and tap on Formats.

Setting HEIC or JPEG in iPhone camera app
Setting HEIC or JPEG in iPhone camera app


Apple offers two options and of course doesn't call either of them HEIC. It doesn't call them JPEG either. Instead, you get a default of High Efficiency and an alternative which is Most Compatible.

Most Compatible means JPEG. High Efficiency means HEIC.

So tap on the one for JPEG and never think about all this again.

Or just be careful

Alternatively, if you like HEIC's space-saving format and especially if you're on the positive side of the dispute about how good its images look like, stick with High Efficiency. And just take some care when you're sending images to someone.

That includes to yourself. Don't AirDrop HEIC images from your iPhone to your Mac or anyone else's

After you've shot some HEIC photos, you could open them on your iPhone in an image editing app such as the iOS version of Pixelmator.

Open them in that and then choose that app's Copy to Photos option under the Share menu. That will save the image back as JPEG.

Alternatively, email yourself the photos. If you do this, then regardless of whether they were shot in HEIC or not, Apple will email over the JPEG version. There's nothing you can do to change that, even if you really wanted the original HEIC image.

Similarly, you can upload that .heic image to social media platforms like Facebook, for instance, but it will be automatically converted to JPEG.

Clue

When it was just that Facebook and the rest weren't supporting HEIC, we thought time would sort that out. Now that Apple itself is still automatically converting HEIC to JPEG in emails, we're wondering what the point is. We'd just like it to be possible to set up a Siri Shortcut so that we could tell our iPhones "no, no, we meant JPEG" and have it switch back and forth.

Or, more practically, we'd like full HEIF/HEIC adoption to hurry up.








Keep up with AppleInsider by downloading the AppleInsider app for iOS, and follow us on YouTube, Twitter @appleinsider and Facebook for live, late-breaking coverage. You can also check out our official Instagram account for exclusive photos.
«1

Comments

  • Reply 1 of 26
    What a mess!  Why would Apple default to the lossy .jpg format, which slightly degrades the image each time it is saved, when .png would be a better option?  Why isn’t this switch in formats better documented in the menu options?  
    watto_cobra
  • Reply 2 of 26
    65026502 Posts: 380member
    My late 2012 iMac does the same thing with the green jagged bars on the side, quite annoying. Surprised Apple didn't catch this in testing.
    watto_cobra
  • Reply 3 of 26
    Is there an option to save in a format with LESS compression instead of even more?

    I don't store thousands of photos on my phone and have lots of storage capacity so file size isn't an issue. Image quality is. It would be nice to have a choice of something lossless, or at least only gently compressed. It makes editing so much easier.
  • Reply 4 of 26

    Alternatively, if you like HEIC's space-saving format and especially if you're on the positive side of the dispute about how good its images look like, stick with High Efficiency. And just take some care when you're sending images to someone.

    That includes to yourself. Don't AirDrop HEIC images from your iPhone to your Mac or anyone else's
    Why not if that Mac supports HEIC?
    watto_cobra
  • Reply 5 of 26
    asciiascii Posts: 5,936member
    Windows 10 also supports it, so Apple isn't the only one. It's not installed by default though, you have to go to the Microsoft App Store and buy the app called HEIF Image Extensions.
    watto_cobra
  • Reply 6 of 26
    Confused. It seems like there is support every where except for a bug in MacOS finder/air port transfer. That would be the shortest article ever so, maybe that is why pontificates about the strangeness of the standard.
  • Reply 7 of 26
    Is there an option to save in a format with LESS compression instead of even more?

    I don't store thousands of photos on my phone and have lots of storage capacity so file size isn't an issue. Image quality is. It would be nice to have a choice of something lossless, or at least only gently compressed. It makes editing so much easier.
    Just leave the Camera setting as HEIC, as shown in the article. Since that setting also affects video compression, setting it to JPEG will unnecessarily  revert to H264 instead of H265, then the video will take twice more space.

    There is no point to get obsessive-compulsive with the iPhone camera if yours is a recent model. There are some apps that save in RAW format but these may create more problems than they resolve to non-OCD people.
    edited November 2018 watto_cobra
  • Reply 8 of 26
    auxioauxio Posts: 2,727member
    emoeller said:
    What a mess!  Why would Apple default to the lossy .jpg format, which slightly degrades the image each time it is saved, when .png would be a better option?  Why isn’t this switch in formats better documented in the menu options?  
    PNGs, in general, are much much larger than other image formats for the same image.  There would be a huge uproar from people over the fact that they can't store as many images.
    StrangeDayswatto_cobra
  • Reply 9 of 26
    emoeller said:
    What a mess!  Why would Apple default to the lossy .jpg format, which slightly degrades the image each time it is saved, when .png would be a better option?  Why isn’t this switch in formats better documented in the menu options?  
    You read it wrong. Apple isn’t defaulting to JPEG, they’re defaulting to HEIC.
    watto_cobra
  • Reply 10 of 26
    volcanvolcan Posts: 1,799member
    emoeller said:
    What a mess!  Why would Apple default to the lossy .jpg format, which slightly degrades the image each time it is saved, when .png would be a better option?  Why isn’t this switch in formats better documented in the menu options?  
    You read it wrong. Apple isn’t defaulting to JPEG, they’re defaulting to HEIC.
    I think the poster was referring to the automatic conversion to JPEG when the image is sent by email.
    watto_cobra
  • Reply 11 of 26
    What about sending photos in a message? PhotoSync converts files to JPEG too. 
    watto_cobra
  • Reply 12 of 26
    Is there an option to save in a format with LESS compression instead of even more?

    I don't store thousands of photos on my phone and have lots of storage capacity so file size isn't an issue. Image quality is. It would be nice to have a choice of something lossless, or at least only gently compressed. It makes editing so much easier.
    Just leave the Camera setting as HEIC, as shown in the article. Since that setting also affects video compression, setting it to JPEG will unnecessairly revert to H264 instead of H265, then the video will take twice more space.

    There is no point to get obsessive-compulsive with the iPhone camera if yours is a recent model. There are some apps that saves in RAW format but these may create more problems than they resolve to non-OCD people.
    Thanks for the advice, but as I mentioned, space is not a consideration for me. Quality is, particularly since the vast majority of what I capture, still or video, is not the end product but an element to be incorporated into a larger project. H.264 is a pain at the editing stage, and H.265 is even worse. Same situation with JPEG and HEIC.

    I'm not suggesting that higher-quality settings with their inherently larger file sizes are the right choice for everyone, I'd just like to have the option. With Apple making so much noise about magazine covers and feature films being shot with iPhones, it doesn't seem unreasonable to wish for a more "pro" oriented storage format. Maybe it could even be an extra-cost add-on feature purchased through the App Store.
  • Reply 13 of 26
    I disagree with the statement HEIC images are of better quality. I hate the compression artifacts produced by HEIC and there is no setting to control the compression amount on the iPhone so I turned it off and use old JPEG, which is not great but still less eye-offending.
    lorin schultz
  • Reply 14 of 26
    Is there an option to save in a format with LESS compression instead of even more?

    I don't store thousands of photos on my phone and have lots of storage capacity so file size isn't an issue. Image quality is. It would be nice to have a choice of something lossless, or at least only gently compressed. It makes editing so much easier.
    Just leave the Camera setting as HEIC, as shown in the article. Since that setting also affects video compression, setting it to JPEG will unnecessairly revert to H264 instead of H265, then the video will take twice more space.

    There is no point to get obsessive-compulsive with the iPhone camera if yours is a recent model. There are some apps that saves in RAW format but these may create more problems than they resolve to non-OCD people.
    Thanks for the advice, but as I mentioned, space is not a consideration for me. Quality is, particularly since the vast majority of what I capture, still or video, is not the end product but an element to be incorporated into a larger project. H.264 is a pain at the editing stage, and H.265 is even worse. Same situation with JPEG and HEIC.
    Just out of curiosity, how H264 can be a pain at the editing stage? It is almost the default codec today with all its standard and pop-culture variants. I understand that H265 may not be needed in much of the cases, but the issues with H264 should not be that severe right now?
    edited November 2018
  • Reply 15 of 26
    bill42bill42 Posts: 131member
    Is there an option to save in a format with LESS compression instead of even more?

    I don't store thousands of photos on my phone and have lots of storage capacity so file size isn't an issue. Image quality is. It would be nice to have a choice of something lossless, or at least only gently compressed. It makes editing so much easier.
    If you care about image quality, rest assured that JPEGs are in every way just as good as uncompressed, to the human eye, as long as you save them as high quality jpegs which is how the Apple settings save them. As someone who works as a high end retoucher for 25+ years, I have done numerous testing with JPEGs. You can resave a jpeg in photoshop at level 10 or 11 (not even the highest setting of 12), a dozen times over, and while your image will recompress over itself each time, you won't see any artifacts unless you zoom in at a pixel level which is irrelevant at normal viewing size. When you buy the most expensive high quality stock image from a stock image house, it comes to you as a jpeg. And now we know they are much safer to use than Apple's more efficient HEIC files. If you are going to keep resaving over your image over a dozen times then I would recommend a lossless compression like LZW TIFF or PNG, but most people only edit an image a few times.
    edited November 2018 watto_cobra
  • Reply 16 of 26
    bill42bill42 Posts: 131member
    I wish this article came out a few weeks ago! I often Airdrop photos from my iphone to my iMac and I never saw any issues until a few weeks ago when a dozen or so images had this corruption with green rectangles on one side, as well as some discoloration. I could not for the life of me figure out why they were corrupting on my iMac while they looked fine on my iPhone!  Too bad I deleted them...

    watto_cobra
  • Reply 17 of 26
    How is HEIC or HEIF pronounced?  HEEK?  aich-ee-eye-see?  Hee-Ick?
    watto_cobra
  • Reply 18 of 26
    Is there an option to save in a format with LESS compression instead of even more?

    I don't store thousands of photos on my phone and have lots of storage capacity so file size isn't an issue. Image quality is. It would be nice to have a choice of something lossless, or at least only gently compressed. It makes editing so much easier.
    Just leave the Camera setting as HEIC, as shown in the article. Since that setting also affects video compression, setting it to JPEG will unnecessairly revert to H264 instead of H265, then the video will take twice more space.

    There is no point to get obsessive-compulsive with the iPhone camera if yours is a recent model. There are some apps that saves in RAW format but these may create more problems than they resolve to non-OCD people.
    Thanks for the advice, but as I mentioned, space is not a consideration for me. Quality is, particularly since the vast majority of what I capture, still or video, is not the end product but an element to be incorporated into a larger project. H.264 is a pain at the editing stage, and H.265 is even worse. Same situation with JPEG and HEIC.
    Just out of curiosity, how H264 can be a pain at the editing stage? It is almost the default codec today with all its standard and pop-culture variants. I understand that H265 may not be needed in much of the cases, but the issues with H264 should not be that severe right now?
    There are two major problems with H.264 as a source for post-production.

    The first is the frame structure. One of the ways H.264 reduces file size is to record only "unique" pixels for most frames. It only stores a complete picture in any particular frame when it absolutely has to. So it starts with a complete picture for Frame 1. For frame 2, it records only what has changed since Frame 1, not a whole image. Same with Frames 3, 4, 5, etc. until there's enough change to force a new full-picture, like on a cut to a different shot.

    The editing software obviously can't work on a partial frame, so the editor is either restricted to only being able to cut and make changes where full frames exist, or the footage has to be converted into a format that compares the partial frames to the full frames and reconstructs full images for each frame. That is obviously a time-consuming process. (Some software will do the conversion in the background so it's invisible to the user, using terms like "rendering," but it still takes time and limits what the editor can do while it's processing.)

    The second problem is the enormous amount of data compression. It's intended as a delivery format, so it throws away parts of the image data that are perceptually acceptable. That's fine when it's applied at the final stage, but it interferes with processing like effects and color grading that may be applied during editing. Then, since the finished edited product needs to be in a consumer-friendly format (like H.264), it suffers going through another round of heavy compression. It's like dubbing VHS tapes -- the quality gets worse with each successive copy generation.

    As a delivery format, which is what it was intended to be, H.264 can actually look very good. It just isn't a good choice for an acquisition format.
    edited November 2018 randominternetpersonwatto_cobra
  • Reply 19 of 26

    bill42 said:
    Is there an option to save in a format with LESS compression instead of even more?

    I don't store thousands of photos on my phone and have lots of storage capacity so file size isn't an issue. Image quality is. It would be nice to have a choice of something lossless, or at least only gently compressed. It makes editing so much easier.
    If you care about image quality, rest assured that JPEGs are in every way just as good as uncompressed, to the human eye, as long as you save them as high quality jpegs which is how the Apple settings save them. As someone who works as a high end retoucher for 25+ years, I have done numerous testing with JPEGs. You can resave a jpeg in photoshop at level 10 or 11 (not even the highest setting of 12), a dozen times over, and while your image will recompress over itself each time, you won't see any artifacts unless you zoom in at a pixel level which is irrelevant at normal viewing size. When you buy the most expensive high quality stock image from a stock image house, it comes to you as a jpeg. And now we know they are much safer to use than Apple's more efficient HEIC files. If you are going to keep resaving over your image over a dozen times then I would recommend a lossless compression like LZW TIFF or PNG, but most people only edit an image a few times.
    I don't do much retouching but I do a ton of photo editing; removing backgrounds, building composites, etc. You're right that a JPEG can work fine as long as the data compression isn't applied too aggressively, but even then it can make it harder to accomplish some tasks that are easier when all the color data is intact (especially with time-saver tools like Smart Selection).

    That aside, I don't know how much compression Apple is applying to iPhone images, but I do know that high contrast edges suffer from "blobbing" artifacts. Barely noticeable the way most people would view them, but an unwelcome nuisance for those who have to take photos apart.

    EDIT: Side note -- the images I've purchased from Getty, Shutterstock, and Stock Image were all TIFF. A couple even had an alpha channel.
    edited November 2018
  • Reply 20 of 26
    Is there an option to save in a format with LESS compression instead of even more?

    I don't store thousands of photos on my phone and have lots of storage capacity so file size isn't an issue. Image quality is. It would be nice to have a choice of something lossless, or at least only gently compressed. It makes editing so much easier.
    Just leave the Camera setting as HEIC, as shown in the article. Since that setting also affects video compression, setting it to JPEG will unnecessairly revert to H264 instead of H265, then the video will take twice more space.

    There is no point to get obsessive-compulsive with the iPhone camera if yours is a recent model. There are some apps that saves in RAW format but these may create more problems than they resolve to non-OCD people.
    Thanks for the advice, but as I mentioned, space is not a consideration for me. Quality is, particularly since the vast majority of what I capture, still or video, is not the end product but an element to be incorporated into a larger project. H.264 is a pain at the editing stage, and H.265 is even worse. Same situation with JPEG and HEIC.
    Just out of curiosity, how H264 can be a pain at the editing stage? It is almost the default codec today with all its standard and pop-culture variants. I understand that H265 may not be needed in much of the cases, but the issues with H264 should not be that severe right now?
    There are two major problems with H.264 as a source for post-production.

    The first is the frame structure. One of the ways H.264 reduces file size is to record only "unique" pixels for most frames. It only stores a complete picture in any particular frame when it absolutely has to. So it starts with a complete picture for Frame 1. For frame 2, it records only what has changed since Frame 1, not a whole image. Same with Frames 3, 4, 5, etc. until there's enough change to force a new full-picture, like on a cut to a different shot.

    The editing software obviously can't work on a partial frame, so the editor is either restricted to only being able to cut and make changes where full frames exist, or the footage has to be converted into a format that compares the partial frames to the full frames and reconstructs full images for each frame. That is obviously a time-consuming process. (Some software will do the conversion in the background so it's invisible to the user, using terms like "rendering," but it still takes time and limits what the editor can do while it's processing.)

    The second problem is the enormous amount of data compression. It's intended as a delivery format, so it throws away parts of the image data that are perceptually acceptable. That's fine when it's applied at the final stage, but it interferes with processing like effects and color grading that may be applied during editing. Then, since the finished edited product needs to be in a consumer-friendly format (like H.264), it suffers going through another round of heavy compression. It's like dubbing VHS tapes -- the quality gets worth with each successive copy generation.

    As a delivery format, which is what it was intended to be, H.264 can actually look very good. It just isn't a good choice for an acquisition format.
    The first problem is science, so I cannot comment. I suggest not to worry too much about those. But the second problem is under your control. To preserve effects and color grading obviously you are using an appropriate intermediate format, consult Apple's documentation on those codecs. The initial footage must be perfect, subsequent editing will not ameliorate a crappy footage so don't spend so much time on that. Unfortunately the majority of the footage not produced by you will be crappy, and it will not be your fault if you give up on compression and focus on quality. Examine iTunes videos, they can be further compressed to the half of their actual size but this is not the Apple way. Re-recording a low-resolution clip from an iPad and iPhone to Quicktime Player on the Mac can be a good alternative to enlarging and may help in some up to 1080p projects.
    edited November 2018
Sign In or Register to comment.