Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

How-to: Generate full-page screenshots of web pages, using Pale Moon

Message
Author
User avatar
MX-16_fan
Forum Regular
Forum Regular
Posts: 957
Joined: Mon Feb 13, 2017 12:09 pm

How-to: Generate full-page screenshots of web pages, using Pale Moon

#1 Post by MX-16_fan » Tue Jul 17, 2018 7:42 am

Sometimes you need to generate not only screenshots of the right-then screen-visible part of a web page, but of a whole page, meaning including the parts of it that you'd only see after scrolling.

The aim of this thread here is to work out a short how-to that explains how to solve this task using the Pale Moon browser.

Currently Pale Moon doesn't seem to offer any obvious GUI function for this. Activating the "screenshots" function in the developers' section via GUI hasn't worked here either.

But what worked o.k. in a way was the following:


a)
Press Shift+F2, and you'll see some sort of browser command line opening at the bottom of your browser window.

You can alternatively get there via GUI. I currently have to help a friend fix his system, which has a German language version of Pale Moon on it. On that system, the GUI way to get there is Extras -> Web-Entwickler -> Entwickler-Symbolleiste. (As I have been told, "Entwickler-Symbolleiste" is some faulty translation.)


b) Type

Code: Select all

screenshot --fullpage [file name you wish for your screenshot]
and press "Enter".


That's it. You'll get a PNG file.

The very huge downside of this method is that you get only the actual page, not the browser window itself, nor anything else. So in your PNG you won't see even the first part of the URL your screenshot is from, nor will you have any chance of seeing the state of your system's clock (which would be nice in order to have some kind of documentation that shows when the screenshot was taken.)

Unfortunately Pale Moon doesn't seem to write those pieces of information into the PNG's EXIF data either.

There might be more options for the "screenshot" command. Unfortunately I couldn't find any documentation about that.

In case anyone knows where to find documentation of the "screenshot" command, please post the link here if you wish.


Greetings, Joe

User avatar
fehlix
Forum Guide
Forum Guide
Posts: 1734
Joined: Wed Apr 11, 2018 5:09 pm

Re: How-to: Generate full-page screenshots of web pages, using Pale Moon

#2 Post by fehlix » Tue Jul 17, 2018 8:53 am

MX-16_fan wrote:
Tue Jul 17, 2018 7:42 am
In case anyone knows where to find documentation of the "screenshot" command, please post the link here if you wish.
Yes, here a nice article from Martin Brinkmann:
https://www.ghacks.net/2012/11/02/take- ... r-toolbar/
which is valid for palemonn too.
The command which worked for me:

Code: Select all

screenshot palemoon_full1 --fullpage
and

Code: Select all

screenshot palemoon_chrome1 --chrome
The combination didn't made a fullpage but a visble-page screenshot only:

Code: Select all

screenshot palemoon_chrome_full1 --chrome --fullpage
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
MX-16_fan
Forum Regular
Forum Regular
Posts: 957
Joined: Mon Feb 13, 2017 12:09 pm

Re: How-to: Generate full-page screenshots of web pages, using Pale Moon

#3 Post by MX-16_fan » Tue Jul 17, 2018 2:48 pm

@fehlix:
fehlix wrote:
Tue Jul 17, 2018 8:53 am
(...)
Yes, here a nice article from Martin Brinkmann:
https://www.ghacks.net/2012/11/02/take- ... r-toolbar/
which is valid for palemonn too.
The command which worked for me:

Code: Select all

screenshot palemoon_full1 --fullpage
and

Code: Select all

screenshot palemoon_chrome1 --chrome
The combination didn't made a fullpage but a visble-page screenshot only:

Code: Select all

screenshot palemoon_chrome_full1 --chrome --fullpage
Thanks!

Where did Brinkmann get the "manpage" for the "screenshot" command from – the "manpage you can see here: https://cdn.ghacks.net/wp-content/uploa ... enshot.jpg?)

Anyway, to sum up what Brinkmann said about the use of that command in Firefox, as of 2012, was the following:

The syntax for the "screenshot" should be:

Code: Select all

screenshot [filename] [clipboard] [chrome] [delay] [fullpage] [selector]
As for "filename", Brinkmann says that you should add a filetype extension. However, if you don't, Pale Moon adds ".png" anyway.

"clipboard": By default, Pale Moon seems to save your screenshot to a file. If you use the "clipboard" option, you should have it in the clipboard instead.

"chrome": By default, you'll get the web page's content window only. If you use the "chrome" option, you should get the "user interface chrome" (i.e. "the borders and widgets that frame the content part of a window", cf. https://en.wikipedia.org/wiki/Chrome#Computing), too.

As for "delay", you should only have to fill in a number, and that'll be the number of seconds Pale Moon waits before generating the screenshot. If you fill in nothing: no delay.

As for "fullpage", this is the option you should need if you want the whole web page, not only the currently visible part.

So, for example,

Code: Select all

screenshot myscreenshot.png --chrome 10 --fullpage
should, after 10 seconds, save your whole web, including the browser window itself, as "myscreenshot.png".

However, this doesn't work in Pale Moon here – Pale Moon claims that this is too many options. So I can confirm the restriction you mentioned.

I guess that the command's syntax has changed since Brinkmann wrote his article (meaning that the current Pale Moon has been derived from a later Firefox than the one that Brinkmann tested).

Any idea where we could get Pale Moon's current syntax from?


Greetings, Joe

vksan
Forum Novice
Forum  Novice
Posts: 15
Joined: Tue Jul 25, 2017 7:36 pm

Re: How-to: Generate full-page screenshots of web pages, using Pale Moon

#4 Post by vksan » Tue Jul 17, 2018 7:38 pm

MX-16_fan wrote:
Tue Jul 17, 2018 2:48 pm
Where did Brinkmann get the "manpage" for the "screenshot" command from – the "manpage you can see here: https://cdn.ghacks.net/wp-content/uploa ... enshot.jpg?)
Type the following into Firefox's Developer Toolbar:

Code: Select all

screenshot --
And the options (commands) are displayed.

Doesn't work in Pale Moon.

Brinkmann's article is from 2012. Here is one from 2015:

https://meyerweb.com/eric/thoughts/2015 ... t-command/

From the above link:
If you want the browser --chrome to show around your screenshot, though, you can’t capture the --fullpage. Firefox will just ignore the -fullpage option if you invoke --chrome, and give you the visible portion of the page surrounded by your browser chrome, including all your addon icons and unread tabs.
It appears these options (commands) have changed over time.

Code: Select all

--chrome
is no longer displayed as an option in the latest Firefox.

User avatar
MX-16_fan
Forum Regular
Forum Regular
Posts: 957
Joined: Mon Feb 13, 2017 12:09 pm

Re: How-to: Generate full-page screenshots of web pages, using Pale Moon

#5 Post by MX-16_fan » Thu Jul 19, 2018 1:56 pm

@vksan:
vksan wrote:
Tue Jul 17, 2018 7:38 pm
(...)
Type the following into Firefox's Developer Toolbar:

Code: Select all

screenshot --
And the options (commands) are displayed.

Doesn't work in Pale Moon.
(...)

Thanks!

a)
I just went to a system with Pale Moon version 27.9.4 installed, and I could reproduce that "screenshot --" doesn't work. This non-display of available options obviously is a bug: Pale Moon does give you a heading ("Verfügbare Optionen") for the supposedly following list of available options, but there isn't any list being displayed.

b)
Apart from that, no longer being able to combine "--chrome" and "--fullpage" clearly is a regression that (hopefully) Pale Moon's developer will fix. Until then, I see no way of completing this how-to here, as the functionality in question isn't fully available.


Greetings, Joe

User avatar
MX-16_fan
Forum Regular
Forum Regular
Posts: 957
Joined: Mon Feb 13, 2017 12:09 pm

Re: How-to: Generate full-page screenshots of web pages, using Pale Moon

#6 Post by MX-16_fan » Thu Jul 19, 2018 2:03 pm

@Stevo:

Just to make sure:

b) is a purely code-based regression, correct? Meaning: not something that would have anything to do with the way Pale Moon has been compiled for MX-17.1, nor with some interference with MX-17.1's Xfce desktop environment?


Greetings, Joe

vksan
Forum Novice
Forum  Novice
Posts: 15
Joined: Tue Jul 25, 2017 7:36 pm

Re: How-to: Generate full-page screenshots of web pages, using Pale Moon

#7 Post by vksan » Thu Jul 19, 2018 3:19 pm

I use Pale Moon in Windows.

When I enter:

Code: Select all

screenshot --
I get: "Available Options" without a list.

Based on my testing the 2015 article aligns with what works and what doesn't in Pale Moon.

I have tested Basilisk in Windows and it does provide a list of Available Options. Note: It is missing:

Code: Select all

--chrome

User avatar
fehlix
Forum Guide
Forum Guide
Posts: 1734
Joined: Wed Apr 11, 2018 5:09 pm

Re: How-to: Generate full-page screenshots of web pages, using Pale Moon

#8 Post by fehlix » Thu Jul 19, 2018 4:25 pm

MX-16_fan wrote:
Thu Jul 19, 2018 2:03 pm
b) is a purely code-based regression, correct? Meaning: not something that would have anything to do with the way Pale Moon has been compiled for MX-17.1, nor with some interference with MX-17.1's Xfce desktop environment?
I do not see it as a regression. The option "--chrome" does for me what it states to do:
"take the screenshot of the Pale Moon window"
The option "--fullpage" seems to be exlusive to the above as it takes
"the screenshot ...of the webpage which are outside.." of the Pale Moon window.
You can list list available options with "help screenshot":
help screenshot

Synopsis: » screenshol [filename] [--clipboard] [--chrome] [--delay ...] [--dpr ...] [--fullpage] [--selector ...]
Save a PNG image of the entire visible window (optionally after a delay)
Options:
* [filename] (string, optional)
The name of the file (should have a '.png' extension) to which we write the screenshot.
* [--clipboard] (boolean, required)
True if you want to copy the screenshot instead of saving it to a file.
* [--chrome] (boolean, required)
True if you want to take the screenshot of the Pale Moon window rather than the web page's content window
* [--delay . . .] (number, optional)
The time to wait (in seconds) before the screenshot is taken
* [--dpr ...] (number, optional)
The device pixel ratio to use when taking the screenshot
* [--fullpage] {boolean, required)
True if the screenshot should also Include parts of the webpage which are outside the current scrolled bounds
* [--selector ...] (node, optional)
A CSS selector for use With document.querySelector which identifies a single element
The above text was OCR scanned with gimagerader from this screendumped image:
help_screenshot-en.png
:puppy:
You do not have the required permissions to view the files attached to this post.
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

vksan
Forum Novice
Forum  Novice
Posts: 15
Joined: Tue Jul 25, 2017 7:36 pm

Re: How-to: Generate full-page screenshots of web pages, using Pale Moon

#9 Post by vksan » Thu Jul 19, 2018 8:42 pm

fehlix - Excellent.

I don't see it as a regression, either. When I re-read Brinkmann's article, I don't see a reference they can be used together, or he used them together and the results. If they did work together, and I don't believe they ever did, they didn't work in 2015 (per Meyer's article).

Quoting from the Meyer article:
Which makes some sense, I admit, but part of me wishes someone had gone to the effort of adding code to redraw the chrome all the way around a --fullpage capture if you asked for it.
Note he isn't saying bring back this great feature.

User avatar
MX-16_fan
Forum Regular
Forum Regular
Posts: 957
Joined: Mon Feb 13, 2017 12:09 pm

Re: How-to: Generate full-page screenshots of web pages, using Pale Moon

#10 Post by MX-16_fan » Fri Jul 20, 2018 1:45 pm

@fehlix:
fehlix wrote:
Thu Jul 19, 2018 4:25 pm
(...)
You can list list available options with "help screenshot":

Great hint, thanks. How did you find out about that? Greetings, and have a nice weekend, Joe.

Post Reply

Return to “Software / Configuration”