ExifTool Forum

ExifTool => The Image::ExifTool API => Topic started by: janmartin on November 26, 2012, 05:55:01 AM

Title: Google photo-sphere xml tags?
Post by: janmartin on November 26, 2012, 05:55:01 AM
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
Title: Re: Google photo-sphere xml tags?
Post by: Phil Harvey on November 26, 2012, 07:16:17 AM
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