High Efficiency Image File Format (HEIF) is a file format for individual images and image sequences. It was developed by the Moving Picture Experts Group (MPEG) and is defined by MPEG-H Part 12 (ISO/IEC 23008-12). The HEIF specification also defines the means of storing High Efficiency Video Codec (HEVC)-encoded intra images and HEVC-encoded image sequences in which inter prediction is applied in a constrained manner.
Questions tagged [heif]
59 questions
66
votes
3 answers
Convert HEIF (.heic) to JPEG on a server?
Apple has introduced a new image format in iOS 11 called HEIF (.heic file extension). I know you can export images as JPG from iOS devices, but I want to upload the HEIC-files to my server and convert them there to JPEG files that can be shown on…
![](../../users/profiles/592977.webp)
Christian
- 852
- 1
- 8
- 13
30
votes
6 answers
How to work with HEIC image file types in Python
The High Efficiency Image File (HEIF) format is the default when airdropping an image from an iPhone to a OSX device. I want to edit and modify these .HEIC files with Python.
I could modify phone settings to save as JPG by default but that doesn't…
![](../../users/profiles/2233231.webp)
j12y
- 1,391
- 3
- 13
- 20
9
votes
5 answers
Detecting that iOS image data is HEIF or HEIC
My server doesn't support the HEIF format. So I need to transform it to JPEG before uploading from my app.
I do this:
UIImage *image = [UIImage imageWithData:imageData];
NSData *data=UIImageJPEGRepresentation(image,…
![](../../users/profiles/6619271.webp)
Jiayu Yang
- 91
- 1
- 4
9
votes
0 answers
preserve EXIF ( GPS / DateTimeOriginal ) when uploading HEIF image in mobile safari
It seems the iOS 11 mobile safari will strip some EXIF ( GPS / DateTimeOriginal ) when uploading HEIF image, how to preserve the EXIF?
![](../../users/profiles/1232102.webp)
hey mike
- 2,241
- 5
- 22
- 27
8
votes
2 answers
HEIC images within the assets folder not loaded
I have set .heic images in my xcassets folder from my project to save some space. However I'm not able to load them through the UIImage(named:) constructor. I'm always getting nil, so the only way I have to load them is by specifying the URL. Do you…
![](../../users/profiles/1897162.webp)
jomafer
- 2,553
- 1
- 29
- 45
8
votes
2 answers
How to open a HEIF (.heic) image?
For a c++ project, I need to open and show a HEIF (.heic) image. What I know (if I'm right) is that the HEIF images are based on the ffmpeg standard, and requires a H265 codec to be read.
I found several open-source H265 codecs:
OpenHEVC…
![](../../users/profiles/5268667.webp)
Jean-Milost Reymond
- 1,481
- 1
- 10
- 29
7
votes
1 answer
Convert HEIF photo to JPEG for uploading to backend
I'm maintaining an app for uploading photos from iPhone to a backend service. Currently this service doesn't support the new HEIF format, so is there any way to have the Photos framework convert the photo data to jpeg?
I use…
![](../../users/profiles/1140971.webp)
mlidal
- 981
- 13
- 24
7
votes
3 answers
Is HEIC/HEIF Supported By UIImage
I was under the impression that UIImage would support HEIC/HEIF files introduced in iOS 11. In my testing that does not appear to be the case though. If I do let image = UIImage(named: "test") which points to test.heic then image is nil. If I use an…
![](../../users/profiles/2736038.webp)
Brian F Leighty
- 862
- 10
- 21
7
votes
2 answers
What's the formal way to verify if my device is capable of encoding images in HEIC format?
I'm trying to save an image in the HEIC file format using ImageIO. The code looks something like this:
NSMutableData *imageData = [NSMutableData data];
CGImageDestinationRef destination = CGImageDestinationCreateWithData(
(__bridge…
![](../../users/profiles/2063853.webp)
StatusReport
- 3,177
- 1
- 20
- 31
6
votes
0 answers
Handling .heic files in Java
I'm trying to work with a .heic image in Java. Native Java cannot deal with this format. I want to either convert it to a different format (.png would be ideal) or convert it to a java.awt.Image or similar image manipulation structure. I've been…
![](../../users/profiles/9289230.webp)
David Antelo
- 403
- 4
- 14
5
votes
2 answers
Are HEIC/HEIF Files Supported In Safari
Trying to figure out if Safari does or doesn't support iOS 11's new image format HEIC/HEIF. Have tried numerous things and it doesn't appear to work. Thanks.
![](../../users/profiles/2736038.webp)
Brian F Leighty
- 862
- 10
- 21
4
votes
0 answers
How do I read a .HEIC/.HEIF image into (python) opencv for onward processing?
For a python project making heavy use of opencv/numpy/scipy, I would like to ingest a .HEIC/.HEIF image without first converting to any other format, e.g. JPEG etc.
Is there a way to do this?
This link implies…
![](../../users/profiles/1021819.webp)
jtlz2
- 4,913
- 6
- 43
- 84
4
votes
2 answers
How to save image taken from UIImagePickerController as HEIF file?
How do I treat image taken from UIImagePickerController as HEIF file? Right now using camera as the source type, UIImagePickerControllerOriginalImage only provides me with UIImage. I want to send the image in HEIF format to the server. This is…
![](../../users/profiles/66814.webp)
Boon
- 37,606
- 51
- 186
- 296
4
votes
1 answer
corrupted HEIC tile when converting to JPEG
I'm having trouble converting a .HEIC image to a jpeg. The .HEIC file an image taken with an iphone running the latest ios public beta. I'm using the library nokia provided to parse the file and extract the image tiles from the .HEIC file, convert…
![](../../users/profiles/461801.webp)
Kimmeh
- 951
- 8
- 21
3
votes
2 answers
How do I use AVIF images in React Single page Web App
Final Update
For most practical purposes, this question is obsolete as both firefox and chrome have native support for avif through the standard picture html tag with a source marked as type="image/avif". See…
![](../../users/profiles/12574170.webp)
Quackack
- 43
- 7