Google photo-sphere xml tags?

Started by janmartin, November 26, 2012, 05:55:01 AM

Previous topic - Next topic

janmartin

Hi all,

there is an interesting article that Google now accepts upload of custom panoramas:
http://www.mpetroff.net/archives/2012/11/05/google-photo-spheres/

TO recognize the images as panoramas certain tags are needed.
They can be added with Exiv2 like this:

# Exiv2 Google Photo Sphere command file
# -------------------------
#
# $ exiv2 -m photo-sphere.txt file ...

reg GPano http://ns.google.com/photos/1.0/panorama/

set Xmp.GPano.UsePanoramaViewer XmpText True
set Xmp.GPano.ProjectionType XmpText equirectangular
set Xmp.GPano.CroppedAreaImageWidthPixels XmpText 4096
set Xmp.GPano.CroppedAreaImageHeightPixels XmpText 2048
set Xmp.GPano.FullPanoWidthPixels XmpText 4096
set Xmp.GPano.FullPanoHeightPixels XmpText 2048
set Xmp.GPano.CroppedAreaLeftPixels XmpText 0
set Xmp.GPano.CroppedAreaTopPixels XmpText 0


I wonder how to do this with exiftool (and Perl)?

Are those custom tags?

Thanks,
Jan

Phil Harvey

Hi Jan,

Write support for these tags was added in ExifTool 9.07, which was released 2 days ago.

Gotta luv it when I add support before it is requested. :)

(before this, they could have been added as user-defined tags)

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).