{"id":45833,"date":"2026-06-25T22:16:08","date_gmt":"2026-06-26T02:16:08","guid":{"rendered":"https:\/\/blog.ckms.ca\/?p=45833"},"modified":"2026-06-25T22:53:21","modified_gmt":"2026-06-26T02:53:21","slug":"test-exif-to-caption","status":"publish","type":"post","link":"https:\/\/blog.ckms.ca\/?p=45833","title":{"rendered":"test exif to caption"},"content":{"rendered":"\n<p>this is a test of my &#8220;extract EXIF info from an uploaed picture&#8221; function; it should does pick out the GPS coords and time of picture taking, then add these 2 data to the caption field.  to allow easy refernce to where the pic was tken, the gps coords are a link to the gmap with a pin at the coords; would be better to open a &#8220;map&#8221; link so the local preferred map handler can be used instead of gmap.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-06-09_19-22-42-1.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"771\" height=\"1024\" src=\"https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-06-09_19-22-42-1-771x1024.jpg\" alt=\"\" class=\"wp-image-45837\" srcset=\"https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-06-09_19-22-42-1-771x1024.jpg 771w, https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-06-09_19-22-42-1-226x300.jpg 226w, https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-06-09_19-22-42-1-768x1020.jpg 768w, https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-06-09_19-22-42-1-1157x1536.jpg 1157w, https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-06-09_19-22-42-1-1542x2048.jpg 1542w, https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-06-09_19-22-42-1-1226x1628.jpg 1226w, https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-06-09_19-22-42-1-675x896.jpg 675w, https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-06-09_19-22-42-1.jpg 1600w\" sizes=\"auto, (max-width: 771px) 100vw, 771px\" \/><\/a><figcaption class=\"wp-element-caption\">gps: <a href=\"https:\/\/www.google.com\/maps?q=64.21756,-149.27488&amp;z=15&amp;t=k\" target=\"_blank\" rel=\"noopener noreferrer\">64.21756, -149.27488<\/a> time-taken: 2026-06-09_15-22-42<br>an old snow machine of plow on the bus from ???? to Fairbanks??.<\/figcaption><\/figure>\n\n\n\n<p>another<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-06-08_00-33-09-1.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"771\" height=\"1024\" src=\"https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-06-08_00-33-09-1-771x1024.jpg\" alt=\"\" class=\"wp-image-45840\" srcset=\"https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-06-08_00-33-09-1-771x1024.jpg 771w, https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-06-08_00-33-09-1-226x300.jpg 226w, https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-06-08_00-33-09-1-768x1020.jpg 768w, https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-06-08_00-33-09-1-1157x1536.jpg 1157w, https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-06-08_00-33-09-1-1542x2048.jpg 1542w, https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-06-08_00-33-09-1-1226x1628.jpg 1226w, https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-06-08_00-33-09-1-675x896.jpg 675w, https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-06-08_00-33-09-1.jpg 1600w\" sizes=\"auto, (max-width: 771px) 100vw, 771px\" \/><\/a><figcaption class=\"wp-element-caption\">gps: <a href=\"https:\/\/www.google.com\/maps?q=61.21929,-149.89169&amp;z=15&amp;t=k\" target=\"_blank\" rel=\"noopener noreferrer\">61.21929, -149.89169<\/a> time-taken: 2026-06-07_20-33-09<br>salmon?? tacos at the Hilton in Anchorage??<\/figcaption><\/figure>\n\n\n\n<p>if mom and joan aren&#8217;t moving or asleep, they&#8217;re laying cribbage:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-05-30_09-33-18-1.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"771\" src=\"https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-05-30_09-33-18-1-1024x771.jpg\" alt=\"\" class=\"wp-image-45843\" srcset=\"https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-05-30_09-33-18-1-1024x771.jpg 1024w, https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-05-30_09-33-18-1-300x226.jpg 300w, https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-05-30_09-33-18-1-768x578.jpg 768w, https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-05-30_09-33-18-1-1536x1157.jpg 1536w, https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-05-30_09-33-18-1-1226x923.jpg 1226w, https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-05-30_09-33-18-1-675x508.jpg 675w, https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-05-30_09-33-18-1-480x360.jpg 480w, https:\/\/blog.ckms.ca\/wp-content\/uploads\/2026\/06\/alaska-cruise-cedric-phone-2026-05-30_09-33-18-1.jpg 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">gps: <a href=\"https:\/\/www.google.com\/maps?q=43.68443,-79.61983&amp;z=15&amp;t=k\" target=\"_blank\" rel=\"noopener noreferrer\">43.68443, -79.61983<\/a> time-taken: 2026-05-30_09-33-15<br>toronto airport, waiting to get on flight to Vancouver.<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>this is a test of my &#8220;extract EXIF info from an uploaed&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[282],"tags":[],"class_list":["post-45833","post","type-post","status-publish","format-standard","hentry","category-article","wpcat-282-id"],"_links":{"self":[{"href":"https:\/\/blog.ckms.ca\/index.php?rest_route=\/wp\/v2\/posts\/45833","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ckms.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ckms.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ckms.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ckms.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=45833"}],"version-history":[{"count":7,"href":"https:\/\/blog.ckms.ca\/index.php?rest_route=\/wp\/v2\/posts\/45833\/revisions"}],"predecessor-version":[{"id":45847,"href":"https:\/\/blog.ckms.ca\/index.php?rest_route=\/wp\/v2\/posts\/45833\/revisions\/45847"}],"wp:attachment":[{"href":"https:\/\/blog.ckms.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=45833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ckms.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=45833"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ckms.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=45833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}