-
Notifications
You must be signed in to change notification settings - Fork 17
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
Missing metadata [spatial photos] #234
Comments
It is available.
Added: And it saves by default with the metadata, I just checked on image provided from you. |
Thanks. I ran the example. I had to comment out the XMP block otherwise I get I get the same result as you. This is not all the metadata. It's still missing the part about camera intrinsics and pinhole model. Here is a screenshot of the infobox in Finder. There is an HEIF section with this metadata that I can't find anywhere when loading via python. The files saved are missing this specific block. |
it looks like this information is not contained in usual I just checked with I will create issue in libheif repository with link to this one. |
I'm also trying to get this to work. This may help. Here is an example of a the extra data added when creating these images in Xcode.
|
As soon as someone knows the format of this data, I invite you to share the knowledge gained with the author of the libheif in the linked issue. |
Hi, I have the same issue that if I opened and saved the heic, the information will be missing. And I don't know how to save the same image quality that the heic will become very large if I ran the below codes: if pillow_heif.is_supported("IMG_0009.HEIC"):
heif_file = pillow_heif.open_heif("IMG_0009.HEIC")
heif_file.save("output.heic", quality=-1) Is there some walkaround to get the whole heic's information? |
HEIC files does not contain "quality" value saved anywhere, take a look at this my reply with link to
As to Spatial Photos theme - their support will be added as soon as |
Currently I am trying to add support for |
|
Yes you can add the file to the repo. |
Describe the bug
I am loading an .HEIC "spatial photo" file coming from the VisionOS and I cannot see the relevant metadata in the
metadata
array or anywhere else.Steps/Code to Reproduce
Here is my code:
Here is an example file:
IMG_0009.zip
Expected Results
There is metadata related to the camera extrinsics and intrinsics. They can be seen in the "info" box on the Mac, but they are nowhere to be seen from pillow-heif as far as I can tell. The Mac and AVP are using this to flag the files as "spatial photos" (stereoscopic image).
Expected: inspecting the file variable the metadata should be accessible somewhere.
Saving the file right after opening should produce a file with similar metadata as the original.
Actual Results
I can see
info.exif
,info.xmp
butinfo.metadata
is an empty array. I believe the metadata should be there.Versions
The text was updated successfully, but these errors were encountered: