Interactive interface for browsing global, full-resolution satellite imagery
add script to generate screenshot, modify index og image
Ed Plato581d6784f4d5
diff --git a/tasks/generatePreviewImage.js b/tasks/generatePreviewImage.jsnew file mode 100644index 000000000..64cf35c77--- /dev/null+++ b/tasks/generatePreviewImage.js@@ -0,0 +1,12 @@+const shell = require('shelljs');++// create screenshot for local instance of Worldview+// https://github.com/sindresorhus/capture-website-cli++const cmdPrefix = 'npx capture-website-cli -s capture-website';+const targetURL = 'http://localhost:3000/?t=2020-12-20';+const outputFile = './web/images/preview.jpg';+const cmdOptions = `--output=${outputFile} --delay=5 --width=1200 --height=630 --type=jpeg --quality=0.2 --overwrite`;++const cmd = `${cmdPrefix} ${targetURL} ${cmdOptions}`;+shell.exec(cmd);diff --git a/web/images/preview.jpg b/web/images/preview.jpgnew file mode 100644index 000000000..6e0876f44Binary files /dev/null and b/web/images/preview.jpg differdiff --git a/web/index.html b/web/index.htmlindex b1dd4391e..86a8ee414 100644--- a/web/index.html+++ b/web/index.html@@ -43,7 +43,7 @@ Licensed under the NASA Open Source Agreement, Version 1.3 (https://opensource.g<meta property="og:url" content="https://worldview.earthdata.nasa.gov/"><meta property="og:description" content="The NASA Worldview app provides a satellite's perspective of the planet as it looks today and as it has in the past through daily satellite images. Worldview is part of NASA’s Earth Observing System Data and Information System. EOSDIS makes the agency's large repository of data accessible and freely available to the public."><meta property="og:type" content="website">- <meta property="og:image" content="images/preview.png">+ <meta property="og:image" content="images/preview.jpg"><!-- twitter card optimization --><meta name="twitter:card" content="summary">