Skip to content

Instantly share code, notes, and snippets.

@tanyuan
Last active June 22, 2017 14:06
Show Gist options
  • Save tanyuan/1b9cea55b3cff88f1bc08a8ee8091d63 to your computer and use it in GitHub Desktop.
Save tanyuan/1b9cea55b3cff88f1bc08a8ee8091d63 to your computer and use it in GitHub Desktop.
Make Facebook / Google Photos recognize 360 photo
convert photo.png photo.jpg
# Facebook
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