From 41b52ea6c215c4faf73c389a0a5862f0d7cd3552 Mon Sep 17 00:00:00 2001 From: ultramango Date: Thu, 14 Jun 2018 21:25:33 +0200 Subject: [PATCH] Fix #53, image size not properly recognised, gen2 affected --- README.md | 2 ++ gear360pano.sh | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6eee0e6..ea354ce 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,8 @@ generation 1 (SM-C200) and 2 (2017 or SM-R210). Latest Changes: +- 2018-06-14: fixed problem with EXIF data for generation 2 Gear360 that prevented Google +from recognising stitched image as panorama. - 2018-06-04: added check for Hugin for video script. - 2018-04-23: small fixes, updated Windows video stitching - should match Linux version now (may have bugs still), added tests for Windows scripts. diff --git a/gear360pano.sh b/gear360pano.sh index 1b2f52b..5f7a3e6 100755 --- a/gear360pano.sh +++ b/gear360pano.sh @@ -126,9 +126,8 @@ process_panorama() { # TODO: not sure about the tag exclusion list... # Note: there's no check for exiftool as it is included with Hugin - IMG_SIZE=($(exiftool -s -s -s -ImageWidth -ImageHeight $1 | tr '\n' ' ')) - IMG_WIDTH=${IMG_SIZE[1]} - IMG_HEIGHT=${IMG_SIZE[2]} + IMG_WIDTH=$(exiftool -s -s -s -ImageWidth $1) + IMG_HEIGHT=$(exiftool -s -s -s -ImageHeight $1) echo "Setting EXIF data (exiftool)" run_command "exiftool" "-ProjectionType=equirectangular" \ "-q" \