Questions tagged [heif]

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.

76 questions
5
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…
Kimmeh
  • 991
  • 7
  • 21
4
votes
3 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…
jtlz2
  • 7,700
  • 9
  • 64
  • 114
4
votes
0 answers

Auto convert HEIF to JPEG on direct upload with Active Storage

If user uploads HEIF file, I would like to convert it to JPEG in Rails 6 application on Active Storage. This would be a system vide function. JPEG image cannot be a variant, because photo needs to be analyzed (I need the EXIF data from it). Should…
Brateq
  • 110
  • 5
4
votes
0 answers

How to export 16-bit HEIF images in Swift?

I am trying to write an export function for my app that allows 16-bit depth HEIF files. Apple's documentation doesn't specify whether 16-bit is supported nor if the writeHEIFRepresentation() method requires any specific option for that. I have been…
AndreG
  • 1,948
  • 1
  • 9
  • 13
4
votes
0 answers

HEIC/HEIF changed to jpeg without metadata at upload

I have a small webapp that runs on a server intended for use in a setting without reliable internet access (i.e., the app can't depend on outside resources during production). The purpose of the app is simply to upload image files, read the…
reddisht
  • 189
  • 2
  • 14
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…
Boon
  • 40,656
  • 60
  • 209
  • 315
3
votes
0 answers

Using pyheif in Windows: Missing _libheif_cffi module

I'm trying to use pyheif in Windows. For that, I've tried following this solution, provided Yienschwen. It worked so far as I was able to run pip install pyheif without any problem. However, now, I'm trying to import pyheif, and I get the following…
An old man in the sea.
  • 1,169
  • 1
  • 13
  • 30
3
votes
1 answer

Core Image ciContext.writeHEIFRepresentation() generates images with diagonal lines when using CICrop filter. How can I prevent this?

I am trying to generate HEIF output files but get strange diagonal lines when I do so. None of the other output formats exhibit these strange lines. See the image below. The problem appears to be cropping but the errors only show in the HEIF…
Duncan Groenewald
  • 8,496
  • 6
  • 41
  • 76
3
votes
0 answers

Handle HEIF images from Java

I want my app to be able to handle .heic images. However, this has been far from easy. I have tried using this nokia lib: https://nokiatech.github.io/heif/ but no luck whatsoever. Even though I can load the image as a HEIF and save it somewhere else…
David Antelo
  • 503
  • 6
  • 19
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…
Quackack
  • 43
  • 1
  • 8
3
votes
0 answers

How to access Image sequence in a HEIC file ( using C#)?

I want to access Image sequence contained in a Heic Container using C#. In windows 10, the HEIF Image Extensions enables reading (HEIF) files. It is supposed to be extended to WIC to be used by developers if the previously mentioned extension is…
Asem Khen
  • 317
  • 3
  • 15
3
votes
0 answers

Is it possible to access HEIF 'Image Properties' metadata like 'ispe' and 'colr' using Windows Imaging Component?

I know from the format specifications that HEIF files have Image Properties that can denote spacial extent ('ispe'), color information ('colr'), pixel information ('pixi'), etc. Is it possible to directly access those properties using WIC? I am able…
krisfed
  • 31
  • 2
3
votes
0 answers

Can not get metadata of HEIF/HEIC file in xcode

I am playing with the HEIF depth image using xcode. The problem is that I can not get any metadata; when I use CGImageSourceCopyProperties(image, nil), it always returns nil.
user1470393
  • 317
  • 4
  • 12
3
votes
2 answers

Display apples heif images in web

Apple has introduced heif technology with iOS 11. On my website some iPhone users now want to upload these pictures in the same format (no idea if you can convert them to JPEG in iOS, I'm using Android and can't test it). If I now allow them to…
cobarde
  • 31
  • 1
  • 3
3
votes
0 answers

Getting capture date of heic image

I am using the nokiatech heif api (github.com/nokiatech/heif) to process heic files produced by the IOS betas. I am able to get the tiles and metadata like rotation and dimensions, but I am unable to locate the capture date of the image. I found…