Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yuxiaoye1223 opened this issue Sep 13, 2024 · 0 comments

Comments

@yuxiaoye1223
Copy link

yuxiaoye1223 commented Sep 13, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant