What Is HEIF and Will It Replace JPEG?

By Cody Arsenault
Updated on March 2, 2023
What Is HEIF and Will It Replace JPEG?

As we continue to capture and share images in our daily lives, we're always looking for ways to improve the quality and efficiency of our photos. One solution that has emerged in recent years is HEIF, or High Efficiency Image Format. But what is HEIF, and will it replace JPEG as the standard image format?

What is HEIF?

In summer 2017, Apple announced its plans to adopt the high efficiency image file format, or HEIF, as its standard format for all images going forward. This new format boasts better compression than old standards like JPG, PNG and GIF, which results in much smaller file sizes. Apple did not invent the format; it's based on a technology called high efficiency video coding, or HEVC, which was created by the Motion Picture Experts Group. HEIF files also support metadata and thumbnails as well as unique features like non-destructive editing.

Apple's HEIF images have the extension HEIC, which stands for high efficiency image container - HEIF and HEIC are often used interchangeably. HEIC files use the HEVC (High Efficiency Video Coding) compression method to achieve higher compression rates than JPEG files, while maintaining the same or even better image quality.

HEIC files are often used by Apple devices, such as iPhones and iPads, as well as by some newer Android devices that support HEIF. HEIC files offer several advantages over JPEG files, including smaller file sizes, support for advanced image features, and the ability to store multiple images in a single file.

However, as with HEIF, one potential downside of HEIC files is that they may not be compatible with all devices and software. Some older devices and software may not support HEIC files, which means that users may need to convert their HEIC files to a more widely supported format, such as JPEG or PNG, in order to view or share them. Although HEIC photos are technically capable of capturing a broader range of colors, many people have noticed that low-light shots especially tend to be less detailed than their JPEG counterparts. Nonetheless, the difference is usually negligible enough to be worth the trade-off.

If you're using 4K mode on your iPhone, photos will automatically be saved as HEIC files, which is fine for most purposes. If having the highest possible image quality is important to you, and you've got plenty of storage space, then you might want to stick with JPEG. Otherwise, you might as well embrace the newer format.

Transferring HEIC files

Aside from slightly lower image quality, one of the biggest barriers to making HEIF a standard is its lack of widespread support. Because the technology is covered by a patent, implementing support requires obtaining the rights from its creators, which is something that few developers have yet to do. For example, no browsers currently support the format. Therefore, HEIC files are still automatically converted to JPEG files when imported non-supporting cloud services.

To avoid auto-conversion, you can go into your iCloud settings and switch the "Transfer to Mac or PC" option to "Keep originals;" however, if you import HEIC files from AirDrop, they will auto-convert to JPEG anyway. Files converted from HEIF will maintain their inferior quality, yet they will be just as large as regular JPEG files.

The easiest way to avoid conversion is to import your image files from iCloud.com when possible. The HEIF format is especially recommended for images stored on external drives due to their compact file sizes. Just keep in mind that AirDrop will increase the file size even if you're importing images onto a device that supports HEIC files. Until HEIC files become more widely supported, Apple will maintain the auto-conversion feature, and users will have to work around it.

Converting JPEG to HEIF

We've covered converting HEIC files to JPEG files, but what if you want to do the inverse? It's a bit more complicated but entirely possible. This involved using FFmpeg and building the HEIF file yourself.

A GitHub user has written a detailed tutorial on how to convert JPEG images to HEIF images. Once you're done converting the image, you can also use his HEIF image viewer at the bottom of the page to view the image you just converted.

The benefits of HEIF

Thanks to improved compression, HEIF images can be encoded and decoded swiftly with little cost to the system. This means that images load faster and take up less space on a server. Unlike the JPEG format, which only supports still images, HEIC files can contain a sequence of images just like a GIF file. HEIC files also support 4K, 3D, and transparency, and they can be rotated or cropped with ease. Most edits can be undone at any time.

Since HEIC files are containers, they are capable of storing different types of data including:

  • Individual images along with properties and thumbnails.
  • Image derivations, which get generated during run-time.
  • Image sequences made up of multiple time-related or temporally predicted images such as photo bursts and cinemagraphs.
  • Auxiliary data that complements image items such as alpha planes, depth maps and even audio.
  • Metadata including EXIF and XMP information related to the images in the HEIC file.

Usage scenarios

The HEIF format has numerous practical applications for users and developers. For example:

  • It allows digital cameras and smartphones to store burst photos, focal stacks and exposure stacks in a single package.
  • Simultaneously captured video and still images can also reside in the same file.
  • HEIC files can be paired with the HTML5 picture element, which lets developers designate multiple alternatives for a web page image.
  • Use of HEIC files can drastically cut web page load times since there is less data to download.
  • Thanks to non-destructive editing operations, alterations like changes in image orientation and cropping don't require the image to be encoded again. This feature allows image editing applications to store multiple derivations of an image within the same file.

HEIC has already become the default file format for captured photos on many newer Apple devices, including iPhones and iPads. However, older pictures will remain in their original formats. While the HEVC video standard has been present in iPhones and iPads from the beginning, you must have iOS 11 or macOS High Sierra installed in order to view and edit HEIC files. Apple's newer iPhones are capable of encoding and decoding images almost instantaneously, which is what allows devices to quickly convert HEIC files into a more friendly format when users share their pictures.

How much space do HEIF images and HEVC videos save?

Dozens of bloggers have conducted their own experiments comparing HEIC to JPEG and HEVC to H.264. Christian over at idownloadblog.com found that HEVC videos are around 40 percent smaller than H.264 files, and HEIC files are approximately 50 percent smaller than JPEG files.

Using the default "High Efficiency" setting on an iPhone, he snapped eight photos and recorded a 60-second 4K video at 60 FPS. He then converted them all to JPEG and H.264 files. The size differences were as follows:

Original files

Source: idownloadblog.com

Converted files

Source: idownloadblog.com

The size differences between each image and video are quite substantial. In every case, the HEIC images turned out to be less than half the size of the original JPGs.

As for HEVC videos, the amount of space saved can also vary depending on the video content and quality settings. However, HEVC is capable of achieving up to 50% smaller file sizes than equivalent H.264 videos, while maintaining the same or even better video quality. This means that HEVC videos can help users save storage space on their devices, as well as reduce the bandwidth and data required to stream or download videos online.

In general, the space savings offered by HEIF images and HEVC videos can be significant, especially for users who take and store a large number of photos and videos on their devices. However, it's important to note that the actual space savings can vary depending on various factors, such as the quality settings used, the image or video content, and the specific devices and software used to view and edit the files.

Summary

The JPEG format is still incredibly popular and well integrated into many devices, systems, etc. Nonetheless, HEIF shows promise in that it allows images to be about twice as small as a regular JPGs with minimal quality loss. When compared to JPEGs, any differences in image quality are inconsequential in light of the file size benefits. For now at least, some Apple users will be able to store more images and videos on their iPhones while still having more space left over for other apps. As the evolution of 4K and 3D technologies progress, the hurdle of reducing file sizes and improving delivery speeds will become increasingly important and so far, HEIF seems to be on the right course to alleviate those issues.

  • Share

Supercharge your content delivery 🚀

Try KeyCDN with a free 14 day trial, no credit card required.

Get started

Comments

Comment policy: Comments are welcomed and encouraged. However, all comments are manually moderated and those deemed to be spam or solely promotional in nature will be deleted.
  • **bold**
  • `code`
  • ```block```
KeyCDN uses cookies to make its website easier to use. Learn more