Google Photos Metadata (XMP)
- Dominant language
- C++
- Stars
- 377
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
A stitched panorama I created was not recognised by google photos as a panorama/photo sphere. It seems that the following metadata is required for it to recognise a panorama: https://developers.google.com/streetview/spherical-metadata
Would it be possible for xpano to include this metadata where applicable? The library used to write Exif data (Exiv2) also supports writing XMP https://exiv2.org/doc/xmpsample_8cpp-example.html
Also, are there any alternative viewers that are good for viewing the output of xpano?
It seems that the latest Pixel phones may have removed the ability to create photo spheres as mentioned in [this discussion](https://www.reddit.com/r/GooglePixel/comments/175qqen/why_remove_photo_sphere/) but currently (one year later) the viewer can still display them. Example (from the linked discussion) https://photos.app.goo.gl/fyaBzA2cPyN34H1j7 (click to activate the viewer). The javascript viewer/library https://photo-sphere-viewer.js.org/playground.html also reads this metadata so it is still useful even if abandoned by Google.
The metadata can be read with `magick XMP:-`
The example above has the following metadata:
```xml
com.google.android.apps.camera.gallery.specialtype.SpecialType-PHOTOSPHERE
```
A cylindrical panorama created with the Samsung camera app has the following metadata (note that google photos incorrectly displays as a sphere still, [the docs](https://developers.google.com/streetview/spherical-metadata) do indicate that only `equirectangular` is supported):
```xml
```
Contributor guide
Assessment
This issue has not been assessed yet.