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]
76 questions
2
votes
2 answers
How to get image dimensions from an avif file?
I'm looking for a (fast) way to retrieve image metadata from an avif-file in my java-application. This is currently done for many image formats by analyzing the raw header bytes of a file.
I can recognize a file as avif through the magic byte…

Jochen Go
- 21
- 3
2
votes
0 answers
How to convert HEIC/HEIF image to what ever in ReactJs
At the moment I am using the upload file component provided by antd
Also I am using a library to transform HEIC to JPG ... this library is called heic2any, and the truth works quite well, basically, it fulfills its objective, this is the code that…

Jesus Cabrita
- 325
- 1
- 7
- 18
2
votes
2 answers
WIC HEIF HEIC image decoding C++
Windows Imaging Component is used for decoding heif images. However extra apps from the microsoft store (heif image extension, hevc video extensions) are required for a successful decoding of the images.
Without them the WIC api returns blank image.…

mbaros
- 825
- 8
- 31
2
votes
0 answers
HEIC encoding of CIImage failing with iOS14
I have following simple code that is failing on iOS14 (was working fine with iOS13).
The code converts a CIImage object to heif representation.
func encodeImageToHeif(_ image: CIImage ) -> Data? {
return autoreleasepool(invoking: { () -> Data?…

Adeel Abbas
- 55
- 1
2
votes
0 answers
Platform support for arbitrary codecs in HEIF
Apparently, the hip way to define a new image format is to combine the ISO base media file format with an existing image or intra-frame video codec, generalized in HEIF / MIAF with existing explicit HEVC, AVC and AV1 adaptations. JPEG 2000 employs…

Crissov
- 947
- 11
- 16
2
votes
0 answers
How do i get rotation data from HEIF format?
HEIF foramt supported Android PIe(9.0)
I was got image(jpg, png) rotation data with ExifInterface.
but HEIF format not provide rotataion data.
how do i get data?
Any help is really appreciated.

최봉재
- 4,039
- 3
- 16
- 21
2
votes
0 answers
How do I use heic format in Android P?
HeifEncoder was seen and implemented.
"MediaCodec.createEncoderByType(MediaFormat.MIMETYPE_IMAGE_ANDROID_HEIC);"
If you do this, the following error will occur.
Blockquote
java.lang.IllegalArgumentException: Failed to initialize…

keunkeun keun
- 21
- 2
2
votes
1 answer
Heif with alpha channel not right in ios
my image
image download link: https://tbgw.alicdn.com/tps/TB1ZKLuQFXXXXbJXXXXXXXXXXXX-264-57.png_.heic
When use this picture in ios, the alpha channel is not correct.
My code
NSString *urlString =…

郑振宇
- 21
- 3
2
votes
0 answers
How to find out which Camera format in Settings?
For iOS 11, in Settings -> Camera -> Formats, user can choose between High Efficiency vs Compatible. How do we know from the SDK which one the user chooses so we can persist image capture in the right format?

Boon
- 40,656
- 60
- 209
- 315
2
votes
0 answers
Regarding HEIF/ISO-BMFF parsing
In HEIF, or generally any ISO-BMFF file, does any know how to use pitm box in root meta box to parse the main image?
For example, the documents say the ID of the main image is stored in the pitm box, but when I obtain that ID and find the…

Gaven Ma
- 21
- 2
2
votes
2 answers
Error while saving JPG/PNG photo to gallery in IOS 11
I was testing our application on new device with beta iOS 11 and found an intresting error.
We are creating an image which can be saved to user gallery, using UIActivityViewController (some system share view controller):
NSMutableArray *sharingItems…

Marcin Mierzejewski
- 726
- 11
- 26
2
votes
2 answers
Converting to JPEG given image data and UTI
Given Data and its UTI, what's the proper way to convert it to JPEG?
PHImageManager.default().requestImageData(for: asset, options: options, resultHandler: { (imageData: Data?, dataUTI: String?, _, _) in
guard let imageData = imageData, let…

kintan
- 19
- 1
- 3
1
vote
1 answer
Usage of MP4box to editing HEIC/HEIF image
I tried to edit heif image using MP4box.
As overview of MP4box, it can used for editing/packaging of HEIF image
To be exact, what I wish to do is to set ispe(Image spatial extent) of grid as 512x512.
(Input file doesn't have ispe of grid, only has…

Cow Black
- 11
- 1
1
vote
1 answer
Is there a way to convert HEIC images to JPG that keep timestamps on a mac?
I have a folder with a large number of .heic-files transferred from my iPhone that I need to have in JPG for compatibility reasons of another software that can't read HEIC. I've tried various methods and they all create new files that have their own…

Stefan Wallin
- 1,502
- 1
- 14
- 19
1
vote
0 answers
Can I create image exif data just base on a Bitmap?
I want to save a Bitmap into a *.HEIC file. When I saved a heif file and reopen it by ImageDecoder, it report those errors. I think it may because image file does not have exif data. I check Exifinterface, but it does not have constructor from…

Aroc
- 11
- 3