Skip to content

Commit 41b52ea

Browse files
author
ultramango
committed
Fix #53, image size not properly recognised, gen2 affected
1 parent 3845e35 commit 41b52ea

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ generation 1 (SM-C200) and 2 (2017 or SM-R210).
99

1010
Latest Changes:
1111

12+
- 2018-06-14: fixed problem with EXIF data for generation 2 Gear360 that prevented Google
13+
from recognising stitched image as panorama.
1214
- 2018-06-04: added check for Hugin for video script.
1315
- 2018-04-23: small fixes, updated Windows video stitching - should match
1416
Linux version now (may have bugs still), added tests for Windows scripts.

gear360pano.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,8 @@ process_panorama() {
126126

127127
# TODO: not sure about the tag exclusion list...
128128
# Note: there's no check for exiftool as it is included with Hugin
129-
IMG_SIZE=($(exiftool -s -s -s -ImageWidth -ImageHeight $1 | tr '\n' ' '))
130-
IMG_WIDTH=${IMG_SIZE[1]}
131-
IMG_HEIGHT=${IMG_SIZE[2]}
129+
IMG_WIDTH=$(exiftool -s -s -s -ImageWidth $1)
130+
IMG_HEIGHT=$(exiftool -s -s -s -ImageHeight $1)
132131
echo "Setting EXIF data (exiftool)"
133132
run_command "exiftool" "-ProjectionType=equirectangular" \
134133
"-q" \

0 commit comments

Comments
 (0)