Bug 1991257

Summary: Exiv2 heic/heif unsupported
Product: Red Hat Enterprise Linux 8 Reporter: Aram Minasyan <aram.minasyan>
Component: exiv2Assignee: Jan Grulich <jgrulich>
Status: CLOSED DEFERRED QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.4CC: redhat, tpopela, vbudikov
Target Milestone: beta   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-10-06 11:29:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1979565    
Bug Blocks:    

Description Aram Minasyan 2021-08-08 17:41:39 UTC
**Description of problem:

exiv2 does not report metadata of heic/heif image files

**Version-Release number of selected component (if applicable):

exiv2-0.27.3-2.el8

**How reproducible:

always

**Steps to Reproduce:

run command exiv2 on a .heic image file


**Actual results:

# exiv2 pr IMG_0104.HEIC
Exiv2 exception in print action for file IMG_0104.HEIC:
IMG_0104.HEIC: The file contains data of an unknown image type
#

**Expected results:

using exiv2 version 0.27.4 (built with flag -DEXIV2_ENABLE_BMFF=ON)

# exiv2 pr IMG_0104.HEIC
File name       : IMG_0104.HEIC
File size       : 3094715 Bytes
MIME type       : image/heic
Image size      : 4032 x 3024
Thumbnail       : None
Camera make     : Apple
Camera model    : iPhone SE (2nd generation)
Image timestamp : 2021:07:30 15:46:36
File number     : 
Exposure time   : 1/33 s
Aperture        : F1.8
Exposure bias   : 0 EV
Flash           : No, compulsory
Flash bias      : 
Focal length    : 4.0 mm
Subject distance: 
ISO speed       : 400
Exposure mode   : Auto
Metering mode   : Multi-segment
Macro mode      : 
Image quality   : 
White balance   : Auto
Copyright       : 
Exif comment    :


**Additional info:

a version 0.27.4 build with .spec and srpm can be found here.

https://download.copr.fedorainfracloud.org/results/aminasyan/el8-collection/epel-8-x86_64/02443660-exiv2/

Alternatively can this be requested as EPEL package if RedHat refuses to update exiv2?

Comment 1 Jan Grulich 2021-08-11 16:06:22 UTC
I'm afraid this won't be possible because of software patents. See https://bugzilla.redhat.com/show_bug.cgi?id=1979565.

Let's see what's the response from Legal.

Comment 2 David 2022-09-02 23:16:29 UTC
FWIW, perl-Image-ExifTool in the standard Fedora repos does read HEICs.

Comment 3 Tomas Popela 2022-10-06 11:29:11 UTC
Let's close this and reopen it when the legal issues will be resolved in Fedora.