Logo

dev-resources.site

for different kinds of informations.

How to capture Screenshot within the browser

Published at
8/17/2021
Categories
webdev
html
devtools
screenshot
Author
soulehshaikh99
Categories
4 categories in total
webdev
open
html
open
devtools
open
screenshot
open
Author
14 person written this
soulehshaikh99
open
How to capture Screenshot within the browser

Ever wondered, if there could be a better way to take screenshots of elements within the browser? Well, if you do then you might find this post interesting.πŸ˜‡

In this tutorial, I am going to show you the best method to take screenshots of page elements without the need for any browser extension or third-party snipping software.

Prerequisite:

Basic knowledge of:

1) HTML
2) Browser's Developer Tools

Demonstrated on following browsers:

1) Google Chrome (StoryboardThat)
2) Microsoft Edge (Google Colab)
3) Brave Browser (Google Form)
4) Firefox (Flipkart)
5) Opera (GitHub)

Note: This tutorial only covers an in-depth explanation for Google Chrome but the steps remain same for all browsers.

1) StoryboardThat using Google Chrome

Step 1:

Open DevTools and select the particular HTML Element you want to take a screenshot of. Make sure that the blue selection covers the entire element you want.

2021-08-17_23h49_51

View this image

Step 2:

Now, right-click and from the context menu, select the Capture node screenshot option.

2021-08-17_23h50_53

View this image

Step 3:

The screenshot will be automatically downloaded in PNG format.

2021-08-17_23h51_30

View this image

Result:

2021-08-17_23h51_47

View this image

Step 4:

What if the screenshot image seems to be smaller than expected? πŸ˜₯
Well, there are some creative ways of increasing the element dimensions so that you may end up with a much higher image resolution. You can try the below-mentioned steps:

  1. Switch to Full Screen Mode
  2. Delete unnecessary HTML elements from the page
  3. Increase the page zoom level to make the desired element as big as possible.
  4. Change the element's or its parent width and height to cover up the entire page space if needed.

Optional Step: Open the same webpage on a screen with higher resolution (if you have one).

Note: While zooming the page, always make sure that your element dimensions do not extend beyond the browser's inner dimensions. And in case if it exceeds, then only the visible region is included, the rest part is cropped out of the screenshot.

Step 4.1:

Delete all the unnecessary elements from the page.
2021-08-19_00h47_57

View this image

2021-08-19_00h49_06
View this image

2021-08-19_00h49_35
View this image

2021-08-19_00h50_03
View this image

2021-08-19_00h50_36
View this image

Step 4.2:

Extend the height of the element's container to fill up the page's white space.
2021-08-19_00h50_36

View this image

2021-08-19_01h16_47
View this image

Step 4.3:

Make the browser Full Screen using F11 shortcut key or whatever is applicable for your browser. Also, increase the page zoom level, I have set mine at 175%

2021-08-19_01h26_42

View this image

Step 4.4:

Repeat steps 2 and 3 to take the screenshot.
Now open the new screenshot, you will notice that its resolution is much greater than the previous one.

2021-08-18_00h06_56

Left: Old Screenshot Β |Β  Right: New Screenshot
View this image

2) Google Colab using Microsoft Edge

14

View this image
15
View this image

3) Google Form using Brave Browser

16

View this image
17
View this image

4) Flipkart using Firefox

18

View this image
19
View this image

5) GitHub using Opera

20

View this image
21
View this image


Well, that's it for this article. I hope you learned something new. Follow me for more posts just like this and let me know your thoughts in the comment section.
Share this post with your friends. Thanks. 😊
screenshot Article's
30 articles in total
Favicon
From 80 to 8000/m: A Journey of SEO Optimization (Part 1)
Favicon
CodeSnap : prendre des captures d'Γ©cran de code dans VS Code
Favicon
rails system test, save failed screenshots
Favicon
πŸš€ πŸ“Έ Creating Accessible and Stunning code screenshots
Favicon
AVIF Studio - Web page screen capture Chrome extension Made with Svelte and WebAssembly.
Favicon
Edge: Screenshots einer Seite erstellen ohne Addons
Favicon
Web Scraping Using Image Processing
Favicon
Edge: Create screenshots of a page without addons
Favicon
How to Perform Screenshot Comparison in Playwright
Favicon
How to take screenshots effectively on windows 11
Favicon
How to screenshot webpages in Golang
Favicon
Screenshot all your pages
Favicon
CodeSnap: Take Code Screenshots In VS Code
Favicon
Rendering NativeScript Angular Templates and Components into images
Favicon
How to run a code in editor in Atom IDE
Favicon
Take a Full-Page Screenshot in Browser (without extension or add-on)
Favicon
Tomar capturas de pantalla facilmente en i3wm
Favicon
Building A Serverless Screenshot Service with Lambda
Favicon
Android - How to do Screenshot Testing in Jetpack Compose
Favicon
How to capture a screenshot of the single window you want (using command line).
Favicon
How to Scan QR Code from Desktop Screen in Python
Favicon
react-native detect when user takes a screenshot
Favicon
Set Flameshot as default screenshot app on Ubuntu :)
Favicon
How to capture Screenshot within the browser
Favicon
Capture Website Screenshots with Python
Favicon
Reducing a Screenshot Size in Mac
Favicon
Employee Monitoring Tool to improve employee productivity
Favicon
Configuring screenshots in Mac
Favicon
How to take a screenshot of Jira kanban
Favicon
How To Capture Screenshots In Selenium? Guide With Examples

Featured ones: