So should I try setting some general Lat/Long for my city and see if Backup and Sync translates that to Google Photos as timezone info?
my $exifTool = new Image::ExifTool;
# set specific information
$exifTool->SetNewValuesFromFile($starred_old, 'alldates<createdate');
$exifTool->SetNewValuesFromFile($starred_old, 'gpstimestamp<createdate');
$exifTool->SetNewValuesFromFile($starred_old, 'filemodifydate<createdate');
($success, $errStr) = $exifTool->SetNewValue('GPSLatitude' , '43.653225') or die $!;
print "success is $success errStr is $errStr\n";
$exifTool->SetNewValue('GPSLongitude','-79383186');
$exifTool->SetNewValue('GPSLatitudeRef','N');
$exifTool->SetNewValue('GPSLongitudeRef','W');
success comes out as 3 and errStr comes out as nothing but when I do 'exiftool photo.jpg' on the commandline I don't see any GPS data in the fields listed.
ExifTool Version Number : 11.11
File Name : T7403477.JPG
Directory : Z:/Pictures/Narrative Clip/chuck.kahn@post-in-toronto.on.ca/SnapCam/2018/12/2018-12-06
File Size : 1881 kB
File Modification Date/Time : 2018:12:06 20:34:50-05:00
File Access Date/Time : 2018:12:07 20:47:57-05:00
File Creation Date/Time : 2018:12:06 20:34:50-05:00
File Permissions : rw-rw-rw-
File Type : JPEG
File Type Extension : jpg
MIME Type : image/jpeg
Exif Byte Order : Little-endian (Intel, II)
Image Description :
Make :
Camera Model Name : 8M DSC
Orientation : Rotate 270 CW
X Resolution : 350
Y Resolution : 350
Resolution Unit : inches
Software : 1.0c00
Modify Date : 2018:12:06 20:34:51
Y Cb Cr Positioning : Co-sited
Copyright : Copyright 2009
Exposure Time : 1/125
F Number : 2.0
Exposure Program : Program AE
ISO : 500
Exif Version : 0230
Date/Time Original : 2018:12:06 20:34:51
Create Date : 2018:12:06 20:34:51
Components Configuration : Y, Cb, Cr, -
Compressed Bits Per Pixel : 8
Shutter Speed Value : 1/125
Aperture Value : 2.0
Exposure Compensation : 0
Max Aperture Value : 2.0
Metering Mode : Multi-spot
Light Source : Unknown
Flash : No Flash
Focal Length : 2.8 mm
Warning : [minor] Unrecognized MakerNotes
Flashpix Version : 0100
Color Space : sRGB
Exif Image Width : 3264
Exif Image Height : 2448
Interoperability Index : R98 - DCF basic file (sRGB)
Interoperability Version : 0100
Sensing Method : One-chip color area
File Source : Digital Camera
Scene Type : Directly photographed
Custom Rendered : Normal
Exposure Mode : Auto
White Balance : Auto
Digital Zoom Ratio : 1
Focal Length In 35mm Format : 21 mm
Scene Capture Type : Standard
Contrast : Normal
Saturation : Normal
Sharpness : Normal
PrintIM Version : 0300
Compression : JPEG (old-style)
Thumbnail Offset : 8230
Thumbnail Length : 2376
Preview Image : (Binary data 26113 bytes, use -b option to extract)
Image Width : 3264
Image Height : 2448
Encoding Process : Baseline DCT, Huffman coding
Bits Per Sample : 8
Color Components : 3
Y Cb Cr Sub Sampling : YCbCr4:2:2 (2 1)
Aperture : 2.0
Image Size : 3264x2448
Megapixels : 8.0
Scale Factor To 35 mm Equivalent: 7.5
Shutter Speed : 1/125
Thumbnail Image : (Binary data 2376 bytes, use -b option to extract)
Circle Of Confusion : 0.004 mm
Field Of View : 81.2 deg
Focal Length : 2.8 mm (35 mm equivalent: 21.0 mm)
Hyperfocal Distance : 0.98 m
Light Value : 6.6