How to take screenshots of a list of URLs
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I need to save thumbnail-sized screenshots of about 20 intranet pages and repeat every week.
I ruled out using an online service because the screenshots are business information.
I ruled out installing an application because my office uses both Windows and Mac OS. I didn't want to rely on an application some of us can't install.
I couldn't find a Chrome extension that accepts a list of URLs. I only found extensions that save a screenshot of one open page, not a batch.
Are there other ways?
google-chrome-extensions browser-addons firefox-extensions screenshot browser-plugin
add a comment |
I need to save thumbnail-sized screenshots of about 20 intranet pages and repeat every week.
I ruled out using an online service because the screenshots are business information.
I ruled out installing an application because my office uses both Windows and Mac OS. I didn't want to rely on an application some of us can't install.
I couldn't find a Chrome extension that accepts a list of URLs. I only found extensions that save a screenshot of one open page, not a batch.
Are there other ways?
google-chrome-extensions browser-addons firefox-extensions screenshot browser-plugin
add a comment |
I need to save thumbnail-sized screenshots of about 20 intranet pages and repeat every week.
I ruled out using an online service because the screenshots are business information.
I ruled out installing an application because my office uses both Windows and Mac OS. I didn't want to rely on an application some of us can't install.
I couldn't find a Chrome extension that accepts a list of URLs. I only found extensions that save a screenshot of one open page, not a batch.
Are there other ways?
google-chrome-extensions browser-addons firefox-extensions screenshot browser-plugin
I need to save thumbnail-sized screenshots of about 20 intranet pages and repeat every week.
I ruled out using an online service because the screenshots are business information.
I ruled out installing an application because my office uses both Windows and Mac OS. I didn't want to rely on an application some of us can't install.
I couldn't find a Chrome extension that accepts a list of URLs. I only found extensions that save a screenshot of one open page, not a batch.
Are there other ways?
google-chrome-extensions browser-addons firefox-extensions screenshot browser-plugin
google-chrome-extensions browser-addons firefox-extensions screenshot browser-plugin
asked Mar 2 at 2:47
scenographyscenography
1186
1186
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Are there other ways?
You may want to consider using Chrome in --headless (GUI-less) mode (available since version 59+). Firefox has had a similar feature since version 56+.
Combined with the --headless option in Chrome (or -headless in Firefox), you can use the --screenshot option (since Firefox 57) to take screenshots of a website from the command line. These features should be supported on both Windows and MacOS, assuming you are using the current versions of each browser.
Chrome on Windows
As an example of using Chrome on Windows to capture a web page, you could use the following command to take a screenshot of e.g. http://example.com:
"C:Program Files (x86)GoogleChromeApplicationchrome.exe" --headless --disable-gpu --enable-logging --screenshot="C:pathtoscreenshot.png" http://example.com/
Chrome on MacOS
Likewise, you should be able to use a similar command with Chrome on MacOS:
chrome --headless --disable-gpu --enable-logging --screenshot http://example.com/
Note that simply using chrome (above) seems to generally rely on having an appropriate alias e.g.:
alias chrome="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
Additional Options
--print-to-pdf — creates a
.pdfversion of a web page e.g.--print-to-pdf="C:pathtooutput.pdf"--window-size — specify an exact window size to render for screenshots, etc. e.g.
--window-size=1366,768--hide-scrollbars — removes any scroll bars that might otherwise be rendered in a screenshot, etc. (due to a small viewport).
An updated list of additional switches is available here.
Headless Chrome Pitfalls
On Windows, Chrome seems extremely picky regarding paths. To avoid odd behaviors (or outright failures), make sure to always specify a full path + file name. This applies to
--screenshotand--print-to-pdfparticularly, but even putting Chrome in your Windows PATH/Path and simply usingchrome(ala MacOS) could lead to issues (especially in batch files).Individual pages take individual times to render. For example, a screenshot of https://example.com was created nearly instantaneously on a test system, whereas https://superuser.com consistently took around thirty seconds or longer to render.
Using
--screenshotwithout--headlesscould cause issues with capturing multiple screenshots.Screenshots are captured as
.pngfiles, regardless of image extension (i.e. no.jpgfiles).If there is content you wish to capture that isn't being captured, try adjusting the
--window-sizeoption. Note, however, that capturing "full" (scrolling) web pages may be problematic (at least in theory), so you may have to dig into more complex solutions later, depending upon circumstances.Capturing screenshots works best with more "traditional" web pages. Web applications may produce undesirable results.
I couldn't find a Chrome extension that accepts a list of URLs. I only found extensions that save a screenshot of one open page, not a batch.
Unfortunately, using --headless mode and --screenshot doesn't allow you to directly specify multiple URLs to capture (as far as I am aware). You will probably need to create a script of some kind to accomplish this goal.
For instance, as brute force method in Windows, you could simply save variations of the appropriate command in a batch (.bat) file e.g.:
ECHO off
REM A batch file to automate downloading website screenshots
ECHO on
"C:Program Files (x86)GoogleChromeApplicationchrome.exe" --headless --disable-gpu --enable-logging --screenshot="C:pathtoscreenshot1.png" http://website1.com/
REM More commands here [...]
"C:Program Files (x86)GoogleChromeApplicationchrome.exe" --headless --disable-gpu --enable-logging --screenshot="C:pathtoscreenshot20.png" http://website20.com/
A similar approach using shell scripting would likely work in MacOS as well.
Of course, you can make a script that actually reads a list of URLs (say from a text file) with e.g. batch (Windows), Powershell (Windows), shell scripting (MacOS), Python (Windows and MacOS) or any other options available.
I need to save thumbnail-sized screenshots of about 20 intranet pages [...] I ruled out installing an application because my office uses both Windows and Mac OS. I didn't want to rely on an application some of us can't install.
I don't think that you will be able to get around a third-party application for this step. Again, --headless mode with --screenshot doesn't support actually resizing images (just the viewport i.e. window size). Furthermore, Windows doesn't come with a built-in tool to resize images (outside of MS Paint).
As a recommendation, ImageMagick might be worth looking into as it supports both Windows and MacOS. Once installed, you could simply use e.g.:
magick screenshot1.png -resize 50% thumbnail-screenshot1.png
to resize an image (although there are many more potential options available).
Note that the command above is for current versions of ImageMagick 7.x+. For legacy versions of ImageMagick, you will likely want to use convert in place of magick i.e.:
convert screenshot1.png -resize 50% thumbnail-screenshot1.png
You could make these (or any similar commands) part of the script that captured the screenshots themselves or part of a separate post-processing script.
Running Chrome from the command line! I didn't know about that. I can use that solution. ImageMagick will help me too.
– scenography
Mar 3 at 5:43
add a comment |
Also looked for such soft, in the end wrote the script myself
https://github.com/rytsikau/eeScreen
1
Welcome to Super User! Whilst this may theoretically answer the question, it would be preferable to edit your post to include your script in your answer. Thanks!
– bertieb
Mar 8 at 15:04
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1410641%2fhow-to-take-screenshots-of-a-list-of-urls%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Are there other ways?
You may want to consider using Chrome in --headless (GUI-less) mode (available since version 59+). Firefox has had a similar feature since version 56+.
Combined with the --headless option in Chrome (or -headless in Firefox), you can use the --screenshot option (since Firefox 57) to take screenshots of a website from the command line. These features should be supported on both Windows and MacOS, assuming you are using the current versions of each browser.
Chrome on Windows
As an example of using Chrome on Windows to capture a web page, you could use the following command to take a screenshot of e.g. http://example.com:
"C:Program Files (x86)GoogleChromeApplicationchrome.exe" --headless --disable-gpu --enable-logging --screenshot="C:pathtoscreenshot.png" http://example.com/
Chrome on MacOS
Likewise, you should be able to use a similar command with Chrome on MacOS:
chrome --headless --disable-gpu --enable-logging --screenshot http://example.com/
Note that simply using chrome (above) seems to generally rely on having an appropriate alias e.g.:
alias chrome="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
Additional Options
--print-to-pdf — creates a
.pdfversion of a web page e.g.--print-to-pdf="C:pathtooutput.pdf"--window-size — specify an exact window size to render for screenshots, etc. e.g.
--window-size=1366,768--hide-scrollbars — removes any scroll bars that might otherwise be rendered in a screenshot, etc. (due to a small viewport).
An updated list of additional switches is available here.
Headless Chrome Pitfalls
On Windows, Chrome seems extremely picky regarding paths. To avoid odd behaviors (or outright failures), make sure to always specify a full path + file name. This applies to
--screenshotand--print-to-pdfparticularly, but even putting Chrome in your Windows PATH/Path and simply usingchrome(ala MacOS) could lead to issues (especially in batch files).Individual pages take individual times to render. For example, a screenshot of https://example.com was created nearly instantaneously on a test system, whereas https://superuser.com consistently took around thirty seconds or longer to render.
Using
--screenshotwithout--headlesscould cause issues with capturing multiple screenshots.Screenshots are captured as
.pngfiles, regardless of image extension (i.e. no.jpgfiles).If there is content you wish to capture that isn't being captured, try adjusting the
--window-sizeoption. Note, however, that capturing "full" (scrolling) web pages may be problematic (at least in theory), so you may have to dig into more complex solutions later, depending upon circumstances.Capturing screenshots works best with more "traditional" web pages. Web applications may produce undesirable results.
I couldn't find a Chrome extension that accepts a list of URLs. I only found extensions that save a screenshot of one open page, not a batch.
Unfortunately, using --headless mode and --screenshot doesn't allow you to directly specify multiple URLs to capture (as far as I am aware). You will probably need to create a script of some kind to accomplish this goal.
For instance, as brute force method in Windows, you could simply save variations of the appropriate command in a batch (.bat) file e.g.:
ECHO off
REM A batch file to automate downloading website screenshots
ECHO on
"C:Program Files (x86)GoogleChromeApplicationchrome.exe" --headless --disable-gpu --enable-logging --screenshot="C:pathtoscreenshot1.png" http://website1.com/
REM More commands here [...]
"C:Program Files (x86)GoogleChromeApplicationchrome.exe" --headless --disable-gpu --enable-logging --screenshot="C:pathtoscreenshot20.png" http://website20.com/
A similar approach using shell scripting would likely work in MacOS as well.
Of course, you can make a script that actually reads a list of URLs (say from a text file) with e.g. batch (Windows), Powershell (Windows), shell scripting (MacOS), Python (Windows and MacOS) or any other options available.
I need to save thumbnail-sized screenshots of about 20 intranet pages [...] I ruled out installing an application because my office uses both Windows and Mac OS. I didn't want to rely on an application some of us can't install.
I don't think that you will be able to get around a third-party application for this step. Again, --headless mode with --screenshot doesn't support actually resizing images (just the viewport i.e. window size). Furthermore, Windows doesn't come with a built-in tool to resize images (outside of MS Paint).
As a recommendation, ImageMagick might be worth looking into as it supports both Windows and MacOS. Once installed, you could simply use e.g.:
magick screenshot1.png -resize 50% thumbnail-screenshot1.png
to resize an image (although there are many more potential options available).
Note that the command above is for current versions of ImageMagick 7.x+. For legacy versions of ImageMagick, you will likely want to use convert in place of magick i.e.:
convert screenshot1.png -resize 50% thumbnail-screenshot1.png
You could make these (or any similar commands) part of the script that captured the screenshots themselves or part of a separate post-processing script.
Running Chrome from the command line! I didn't know about that. I can use that solution. ImageMagick will help me too.
– scenography
Mar 3 at 5:43
add a comment |
Are there other ways?
You may want to consider using Chrome in --headless (GUI-less) mode (available since version 59+). Firefox has had a similar feature since version 56+.
Combined with the --headless option in Chrome (or -headless in Firefox), you can use the --screenshot option (since Firefox 57) to take screenshots of a website from the command line. These features should be supported on both Windows and MacOS, assuming you are using the current versions of each browser.
Chrome on Windows
As an example of using Chrome on Windows to capture a web page, you could use the following command to take a screenshot of e.g. http://example.com:
"C:Program Files (x86)GoogleChromeApplicationchrome.exe" --headless --disable-gpu --enable-logging --screenshot="C:pathtoscreenshot.png" http://example.com/
Chrome on MacOS
Likewise, you should be able to use a similar command with Chrome on MacOS:
chrome --headless --disable-gpu --enable-logging --screenshot http://example.com/
Note that simply using chrome (above) seems to generally rely on having an appropriate alias e.g.:
alias chrome="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
Additional Options
--print-to-pdf — creates a
.pdfversion of a web page e.g.--print-to-pdf="C:pathtooutput.pdf"--window-size — specify an exact window size to render for screenshots, etc. e.g.
--window-size=1366,768--hide-scrollbars — removes any scroll bars that might otherwise be rendered in a screenshot, etc. (due to a small viewport).
An updated list of additional switches is available here.
Headless Chrome Pitfalls
On Windows, Chrome seems extremely picky regarding paths. To avoid odd behaviors (or outright failures), make sure to always specify a full path + file name. This applies to
--screenshotand--print-to-pdfparticularly, but even putting Chrome in your Windows PATH/Path and simply usingchrome(ala MacOS) could lead to issues (especially in batch files).Individual pages take individual times to render. For example, a screenshot of https://example.com was created nearly instantaneously on a test system, whereas https://superuser.com consistently took around thirty seconds or longer to render.
Using
--screenshotwithout--headlesscould cause issues with capturing multiple screenshots.Screenshots are captured as
.pngfiles, regardless of image extension (i.e. no.jpgfiles).If there is content you wish to capture that isn't being captured, try adjusting the
--window-sizeoption. Note, however, that capturing "full" (scrolling) web pages may be problematic (at least in theory), so you may have to dig into more complex solutions later, depending upon circumstances.Capturing screenshots works best with more "traditional" web pages. Web applications may produce undesirable results.
I couldn't find a Chrome extension that accepts a list of URLs. I only found extensions that save a screenshot of one open page, not a batch.
Unfortunately, using --headless mode and --screenshot doesn't allow you to directly specify multiple URLs to capture (as far as I am aware). You will probably need to create a script of some kind to accomplish this goal.
For instance, as brute force method in Windows, you could simply save variations of the appropriate command in a batch (.bat) file e.g.:
ECHO off
REM A batch file to automate downloading website screenshots
ECHO on
"C:Program Files (x86)GoogleChromeApplicationchrome.exe" --headless --disable-gpu --enable-logging --screenshot="C:pathtoscreenshot1.png" http://website1.com/
REM More commands here [...]
"C:Program Files (x86)GoogleChromeApplicationchrome.exe" --headless --disable-gpu --enable-logging --screenshot="C:pathtoscreenshot20.png" http://website20.com/
A similar approach using shell scripting would likely work in MacOS as well.
Of course, you can make a script that actually reads a list of URLs (say from a text file) with e.g. batch (Windows), Powershell (Windows), shell scripting (MacOS), Python (Windows and MacOS) or any other options available.
I need to save thumbnail-sized screenshots of about 20 intranet pages [...] I ruled out installing an application because my office uses both Windows and Mac OS. I didn't want to rely on an application some of us can't install.
I don't think that you will be able to get around a third-party application for this step. Again, --headless mode with --screenshot doesn't support actually resizing images (just the viewport i.e. window size). Furthermore, Windows doesn't come with a built-in tool to resize images (outside of MS Paint).
As a recommendation, ImageMagick might be worth looking into as it supports both Windows and MacOS. Once installed, you could simply use e.g.:
magick screenshot1.png -resize 50% thumbnail-screenshot1.png
to resize an image (although there are many more potential options available).
Note that the command above is for current versions of ImageMagick 7.x+. For legacy versions of ImageMagick, you will likely want to use convert in place of magick i.e.:
convert screenshot1.png -resize 50% thumbnail-screenshot1.png
You could make these (or any similar commands) part of the script that captured the screenshots themselves or part of a separate post-processing script.
Running Chrome from the command line! I didn't know about that. I can use that solution. ImageMagick will help me too.
– scenography
Mar 3 at 5:43
add a comment |
Are there other ways?
You may want to consider using Chrome in --headless (GUI-less) mode (available since version 59+). Firefox has had a similar feature since version 56+.
Combined with the --headless option in Chrome (or -headless in Firefox), you can use the --screenshot option (since Firefox 57) to take screenshots of a website from the command line. These features should be supported on both Windows and MacOS, assuming you are using the current versions of each browser.
Chrome on Windows
As an example of using Chrome on Windows to capture a web page, you could use the following command to take a screenshot of e.g. http://example.com:
"C:Program Files (x86)GoogleChromeApplicationchrome.exe" --headless --disable-gpu --enable-logging --screenshot="C:pathtoscreenshot.png" http://example.com/
Chrome on MacOS
Likewise, you should be able to use a similar command with Chrome on MacOS:
chrome --headless --disable-gpu --enable-logging --screenshot http://example.com/
Note that simply using chrome (above) seems to generally rely on having an appropriate alias e.g.:
alias chrome="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
Additional Options
--print-to-pdf — creates a
.pdfversion of a web page e.g.--print-to-pdf="C:pathtooutput.pdf"--window-size — specify an exact window size to render for screenshots, etc. e.g.
--window-size=1366,768--hide-scrollbars — removes any scroll bars that might otherwise be rendered in a screenshot, etc. (due to a small viewport).
An updated list of additional switches is available here.
Headless Chrome Pitfalls
On Windows, Chrome seems extremely picky regarding paths. To avoid odd behaviors (or outright failures), make sure to always specify a full path + file name. This applies to
--screenshotand--print-to-pdfparticularly, but even putting Chrome in your Windows PATH/Path and simply usingchrome(ala MacOS) could lead to issues (especially in batch files).Individual pages take individual times to render. For example, a screenshot of https://example.com was created nearly instantaneously on a test system, whereas https://superuser.com consistently took around thirty seconds or longer to render.
Using
--screenshotwithout--headlesscould cause issues with capturing multiple screenshots.Screenshots are captured as
.pngfiles, regardless of image extension (i.e. no.jpgfiles).If there is content you wish to capture that isn't being captured, try adjusting the
--window-sizeoption. Note, however, that capturing "full" (scrolling) web pages may be problematic (at least in theory), so you may have to dig into more complex solutions later, depending upon circumstances.Capturing screenshots works best with more "traditional" web pages. Web applications may produce undesirable results.
I couldn't find a Chrome extension that accepts a list of URLs. I only found extensions that save a screenshot of one open page, not a batch.
Unfortunately, using --headless mode and --screenshot doesn't allow you to directly specify multiple URLs to capture (as far as I am aware). You will probably need to create a script of some kind to accomplish this goal.
For instance, as brute force method in Windows, you could simply save variations of the appropriate command in a batch (.bat) file e.g.:
ECHO off
REM A batch file to automate downloading website screenshots
ECHO on
"C:Program Files (x86)GoogleChromeApplicationchrome.exe" --headless --disable-gpu --enable-logging --screenshot="C:pathtoscreenshot1.png" http://website1.com/
REM More commands here [...]
"C:Program Files (x86)GoogleChromeApplicationchrome.exe" --headless --disable-gpu --enable-logging --screenshot="C:pathtoscreenshot20.png" http://website20.com/
A similar approach using shell scripting would likely work in MacOS as well.
Of course, you can make a script that actually reads a list of URLs (say from a text file) with e.g. batch (Windows), Powershell (Windows), shell scripting (MacOS), Python (Windows and MacOS) or any other options available.
I need to save thumbnail-sized screenshots of about 20 intranet pages [...] I ruled out installing an application because my office uses both Windows and Mac OS. I didn't want to rely on an application some of us can't install.
I don't think that you will be able to get around a third-party application for this step. Again, --headless mode with --screenshot doesn't support actually resizing images (just the viewport i.e. window size). Furthermore, Windows doesn't come with a built-in tool to resize images (outside of MS Paint).
As a recommendation, ImageMagick might be worth looking into as it supports both Windows and MacOS. Once installed, you could simply use e.g.:
magick screenshot1.png -resize 50% thumbnail-screenshot1.png
to resize an image (although there are many more potential options available).
Note that the command above is for current versions of ImageMagick 7.x+. For legacy versions of ImageMagick, you will likely want to use convert in place of magick i.e.:
convert screenshot1.png -resize 50% thumbnail-screenshot1.png
You could make these (or any similar commands) part of the script that captured the screenshots themselves or part of a separate post-processing script.
Are there other ways?
You may want to consider using Chrome in --headless (GUI-less) mode (available since version 59+). Firefox has had a similar feature since version 56+.
Combined with the --headless option in Chrome (or -headless in Firefox), you can use the --screenshot option (since Firefox 57) to take screenshots of a website from the command line. These features should be supported on both Windows and MacOS, assuming you are using the current versions of each browser.
Chrome on Windows
As an example of using Chrome on Windows to capture a web page, you could use the following command to take a screenshot of e.g. http://example.com:
"C:Program Files (x86)GoogleChromeApplicationchrome.exe" --headless --disable-gpu --enable-logging --screenshot="C:pathtoscreenshot.png" http://example.com/
Chrome on MacOS
Likewise, you should be able to use a similar command with Chrome on MacOS:
chrome --headless --disable-gpu --enable-logging --screenshot http://example.com/
Note that simply using chrome (above) seems to generally rely on having an appropriate alias e.g.:
alias chrome="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
Additional Options
--print-to-pdf — creates a
.pdfversion of a web page e.g.--print-to-pdf="C:pathtooutput.pdf"--window-size — specify an exact window size to render for screenshots, etc. e.g.
--window-size=1366,768--hide-scrollbars — removes any scroll bars that might otherwise be rendered in a screenshot, etc. (due to a small viewport).
An updated list of additional switches is available here.
Headless Chrome Pitfalls
On Windows, Chrome seems extremely picky regarding paths. To avoid odd behaviors (or outright failures), make sure to always specify a full path + file name. This applies to
--screenshotand--print-to-pdfparticularly, but even putting Chrome in your Windows PATH/Path and simply usingchrome(ala MacOS) could lead to issues (especially in batch files).Individual pages take individual times to render. For example, a screenshot of https://example.com was created nearly instantaneously on a test system, whereas https://superuser.com consistently took around thirty seconds or longer to render.
Using
--screenshotwithout--headlesscould cause issues with capturing multiple screenshots.Screenshots are captured as
.pngfiles, regardless of image extension (i.e. no.jpgfiles).If there is content you wish to capture that isn't being captured, try adjusting the
--window-sizeoption. Note, however, that capturing "full" (scrolling) web pages may be problematic (at least in theory), so you may have to dig into more complex solutions later, depending upon circumstances.Capturing screenshots works best with more "traditional" web pages. Web applications may produce undesirable results.
I couldn't find a Chrome extension that accepts a list of URLs. I only found extensions that save a screenshot of one open page, not a batch.
Unfortunately, using --headless mode and --screenshot doesn't allow you to directly specify multiple URLs to capture (as far as I am aware). You will probably need to create a script of some kind to accomplish this goal.
For instance, as brute force method in Windows, you could simply save variations of the appropriate command in a batch (.bat) file e.g.:
ECHO off
REM A batch file to automate downloading website screenshots
ECHO on
"C:Program Files (x86)GoogleChromeApplicationchrome.exe" --headless --disable-gpu --enable-logging --screenshot="C:pathtoscreenshot1.png" http://website1.com/
REM More commands here [...]
"C:Program Files (x86)GoogleChromeApplicationchrome.exe" --headless --disable-gpu --enable-logging --screenshot="C:pathtoscreenshot20.png" http://website20.com/
A similar approach using shell scripting would likely work in MacOS as well.
Of course, you can make a script that actually reads a list of URLs (say from a text file) with e.g. batch (Windows), Powershell (Windows), shell scripting (MacOS), Python (Windows and MacOS) or any other options available.
I need to save thumbnail-sized screenshots of about 20 intranet pages [...] I ruled out installing an application because my office uses both Windows and Mac OS. I didn't want to rely on an application some of us can't install.
I don't think that you will be able to get around a third-party application for this step. Again, --headless mode with --screenshot doesn't support actually resizing images (just the viewport i.e. window size). Furthermore, Windows doesn't come with a built-in tool to resize images (outside of MS Paint).
As a recommendation, ImageMagick might be worth looking into as it supports both Windows and MacOS. Once installed, you could simply use e.g.:
magick screenshot1.png -resize 50% thumbnail-screenshot1.png
to resize an image (although there are many more potential options available).
Note that the command above is for current versions of ImageMagick 7.x+. For legacy versions of ImageMagick, you will likely want to use convert in place of magick i.e.:
convert screenshot1.png -resize 50% thumbnail-screenshot1.png
You could make these (or any similar commands) part of the script that captured the screenshots themselves or part of a separate post-processing script.
edited Mar 3 at 17:57
answered Mar 3 at 4:04
AnaksunamanAnaksunaman
5,64821423
5,64821423
Running Chrome from the command line! I didn't know about that. I can use that solution. ImageMagick will help me too.
– scenography
Mar 3 at 5:43
add a comment |
Running Chrome from the command line! I didn't know about that. I can use that solution. ImageMagick will help me too.
– scenography
Mar 3 at 5:43
Running Chrome from the command line! I didn't know about that. I can use that solution. ImageMagick will help me too.
– scenography
Mar 3 at 5:43
Running Chrome from the command line! I didn't know about that. I can use that solution. ImageMagick will help me too.
– scenography
Mar 3 at 5:43
add a comment |
Also looked for such soft, in the end wrote the script myself
https://github.com/rytsikau/eeScreen
1
Welcome to Super User! Whilst this may theoretically answer the question, it would be preferable to edit your post to include your script in your answer. Thanks!
– bertieb
Mar 8 at 15:04
add a comment |
Also looked for such soft, in the end wrote the script myself
https://github.com/rytsikau/eeScreen
1
Welcome to Super User! Whilst this may theoretically answer the question, it would be preferable to edit your post to include your script in your answer. Thanks!
– bertieb
Mar 8 at 15:04
add a comment |
Also looked for such soft, in the end wrote the script myself
https://github.com/rytsikau/eeScreen
Also looked for such soft, in the end wrote the script myself
https://github.com/rytsikau/eeScreen
edited Mar 8 at 15:13
answered Mar 8 at 14:34
Eugen RytikovEugen Rytikov
11
11
1
Welcome to Super User! Whilst this may theoretically answer the question, it would be preferable to edit your post to include your script in your answer. Thanks!
– bertieb
Mar 8 at 15:04
add a comment |
1
Welcome to Super User! Whilst this may theoretically answer the question, it would be preferable to edit your post to include your script in your answer. Thanks!
– bertieb
Mar 8 at 15:04
1
1
Welcome to Super User! Whilst this may theoretically answer the question, it would be preferable to edit your post to include your script in your answer. Thanks!
– bertieb
Mar 8 at 15:04
Welcome to Super User! Whilst this may theoretically answer the question, it would be preferable to edit your post to include your script in your answer. Thanks!
– bertieb
Mar 8 at 15:04
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1410641%2fhow-to-take-screenshots-of-a-list-of-urls%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown