drewnoakes / metadata-extractor

Extracts Exif, IPTC, XMP, ICC and other metadata from image, video and audio files
Apache License 2.0
2.56k stars 480 forks source link

Samsung HEIC photo can't get exif information #487

Closed WBJisMyName closed 3 years ago

WBJisMyName commented 4 years ago

Hi Drew Noakes, Recently I use your extractor as library(2.14) on my Samsung s10+, but after I shoot heic photo and used library to parse, I found the result is not what I want. Here is the result:

Directory 1 [HEIF] Major Brand - heic [HEIF] Minor Version - 0 [HEIF] Compatible Brands - mif1 heic Directory 2 [HEIF] Width - 512 pixels [HEIF] Height - 512 pixels [HEIF] Rotation - 270 degrees Directory 3 [File Type] Detected File Type Name - HEIF [File Type] Detected File Type Long Name - High Efficiency Image File Format [File Type] Detected MIME Type - image/heif [File Type] Expected File Name Extension - heif

Can you give me some advice? Thanks.
The photo link is down below
https://www.dropbox.com/s/u1jm3he9jvsnrum/20200630_112758.heic?dl=0
drewnoakes commented 4 years ago

Thank you for the sample image. I can repro this issue. Are you able to donate the image to the test data suite?

drewnoakes commented 4 years ago

The .NET implementation throws an exception for this file too.

WBJisMyName commented 4 years ago

Sure. Thank you for quick reply!

drewnoakes commented 4 years ago

Exif data is in there. Now, to get it out :)

image

WBJisMyName commented 3 years ago

thank you