Skip to content

cannot read xmp directory of heif image file embedded video photograph by samsung phone #681

@yuxiaoye1223

Description

@yuxiaoye1223

as title describe, the lib version is latest released 2.19.0

I have got an image photograpy by samsung file, the image format is heif embedded with video.
I want to extract and play the video, but after use code as below.

`
val metaData = ImageMetadataReader.readMetadata(file)

    metaData?.directories?.forEach {

        Log.d(TAG, ">>>> metaData, name=${it.name}, class=${it::class.java}")

        Log.d(TAG, "tag=${it.tags?.joinToString(", ")}, errors=${it.errors}")

    }

`

the log only print HeifDirectory、ExifIFD0Directory、ExifSubIFDDirectory、GpsDirectory、FileTypeDirectory、FileSystemDirectory,
no XmpDirectory included.
I use exif-viewer(https://stefan-oltmann.de/exif-viewer/) parse the image, it has Xmp data.

when I use an another image which format is jpeg and embedded video, it has XmpDirectory, other directory like JpegDirectory、ExifIFD0Directory、IccDirectory etc...

can someone help me how to resolve this problem, the problem image is uploaded as samsung.zip, unzip it and get the samsung.heif

thanks.

samsung.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions