Last active
June 22, 2017 14:06
-
-
Save tanyuan/1b9cea55b3cff88f1bc08a8ee8091d63 to your computer and use it in GitHub Desktop.
Make Facebook / Google Photos recognize 360 photo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
convert photo.png photo.jpg | |
exiftool -ProjectionType="equirectangular" photo.jpg | |
# Google Photos | |
exiftool -ProjectionType="equirectangular" -UsePanoramaViewer="True" -"PoseHeadingDegrees<$exif:GPSImgDirection" -"CroppedAreaImageWidthPixels<$ImageWidth" -"CroppedAreaImageHeightPixels<$ImageHeight" -"FullPanoWidthPixels<$ImageWidth" -"FullPanoHeightPixels<$ImageHeight" -CroppedAreaLeftPixels="0" -CroppedAreaTopPixels="0" photo.jpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment