Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I create high resolution screenshots in Firefox?

Tags:

firefox

In Firefox I can create a fullpage screenshot when I go to the web developer toolbar (can be activated in the developer tool settings). Unfortunately, I can do this only with the default resolution. Is there a chance to get images of higher resolution anyhow? With Firefox or an add-on? Or is it possible in another browser?

like image 335
robsch Avatar asked Sep 23 '15 15:09

robsch


People also ask

How do I make my screenshot higher resolution?

For the screen resolution, go to Display Settings > Display Resolution. Choose the recommended native resolution. Ensure that Windows can fix apps so that they are not blurry by going to Display Settings > Advanced Scaling Settings > and toggle on “Let Windows try to fix Apps….”

Does Firefox allow screenshots?

To take a screenshot, either use the Firefox Screenshots feature or else follow the directions given below to create a screenshot on your computer, iOS device or Android device.


Video Answer


2 Answers

Firefox 62 and following

In Firefox 62 and following, the GCLI was removed and the screenshot command was moved to the Web Console and prefixed with a colon.

To take a screen shot at 4 times the native screen resolution, open the web console (Tools -> Web Developer -> Web Console or CtrlShiftK, CmdOptionK on Mac) and type:

:screenshot --dpr 4

The file name is now optional and the console will tell you where the file was saved (typically in 'Downloads' with a system-specific naming scheme).

Additional parameters are available, see the Web Console documentation and Erik Meyer's blog post for more.

An additional note: large DPR values don't always work. There seems to be a limit around 120 megapixels. Larger screenshots will simply not complete and do nothing, silently. If the command does nothing for you, try lowering the dpr or resizing the window, until you get something out.

like image 60
Calimo Avatar answered Nov 02 '22 06:11

Calimo


In Firefox, I use these tricks :

  • Shift-F7 (or go to "Tools" menu -> Web Developer -> style editor) and insert these lines to zoom the whole page (here, by 4 or 400% so for example 72dpi becomes 288dpi and we get closer to a printable picture) :

body {
  zoom: 4;  /* change zoom factor here... */
  -moz-transform: scale(4);  /* ...and here. */
  -moz-transform-origin: 0 0;
}
  • then Shift+F2 (or "Tools" > Web Developer > developer toolbar), and, in the little prompt at the bottom :

screenshot --fullpage
// or, directly into the clipboard instead of a png in the download folder
screenshot --fullpage --clipboard

You can also play with the Tools > Web Developer > Responsive Design View (or Ctrl+Shift+M) which allows you to specify custom resolutions and have a nifty button to take the screenshot, but zoom still has to be done manually.

Beware when choosing the zoom factor : Firefox gets grumpy if you try to generate a PNG too big. In very high resolution, you will have to drop the --fullpage option, screenshot fragment by fragment and reassemble in your image editor.

Ref: got the first trick from How can I scale an entire web page with CSS? : it seems Firefox still has issues with the zoom CSS rule so the -moz-* rules still have to be added, at least until version 38. If this gets corrected in future versions, just specify zoom: NN;.

like image 21
Chl Avatar answered Nov 02 '22 05:11

Chl