October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk3 min

How to Capture a Website Screenshot with Chromium on Linux

Use Chromium’s headless screenshot flag for a quick Linux capture, or Puppeteer for full-page images and repeatable automation.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For a quick screenshot on Linux, run Chromium in headless mode with the --screenshot flag and the page URL:

chromium --headless --screenshot --window-size=1280,900 https://example.com/

Chromium saves screenshot.png in the terminal’s current working directory. The executable may be named differently on your system; use the Chromium or Chrome binary installed on your machine.

As an Amazon Associate I earn from qualifying purchases.

Capture a page from the Linux terminal

  1. Open a terminal in the directory where you want the image saved.
  2. Run the command below, replacing the URL with the page you want to capture:
    chromium --headless --screenshot --window-size=1280,900 https://example.com/
  3. Find screenshot.png in the current working directory. Chrome’s command-line reference documents that --screenshot writes that default filename there. Chrome Headless command-line reference.

If chromium is not recognized, try the executable name available on your installation. Chrome’s documentation uses chrome in its command-line example and google-chrome in its Linux Headless mode example. Chrome Headless mode.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Set the screenshot viewport and wait

Choose the viewport dimensions

Use --window-size=WIDTH,HEIGHT to set the headless window dimensions. For example, --window-size=412,892 captures at a narrow, phone-like viewport; use dimensions suited to the layout you need to inspect. The screenshot represents the viewport, not automatically the entire scrollable page.

#1 Best Overall
Philips 24 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 241V8LB
  • CRISP CLARITY: This 23.8″ Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
  • WORK SEAMLESSLY: This sleek monitor is virtually bezel-free on three sides, so the screen looks even bigger for the viewer. This minimalistic design also allows for seamless multi-monitor setups that enhance your workflow and boost productivity
  • A BETTER READING EXPERIENCE: For busy office workers, EasyRead mode provides a more paper-like experience for when viewing lengthy documents

Give the page time to load

Chrome’s CLI supports --timeout as the maximum wait in milliseconds before taking the screenshot. For example:

chromium --headless --screenshot --window-size=1280,900 --timeout=5000 https://example.com/

This sets a five-second maximum wait; it does not guarantee that every asynchronous image, animation, or other dynamic content has finished rendering by then.

Rank #2
Philips 22 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 221V8LB
  • CRISP CLARITY: This 22 inch class (21.5″ viewable) Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • 100HZ FAST REFRESH RATE: 100Hz brings your favorite movies and video games to life. Stream, binge, and play effortlessly
  • SMOOTH ACTION WITH ADAPTIVE-SYNC: Adaptive-Sync technology ensures fluid action sequences and rapid response time. Every frame will be rendered smoothly with crystal clarity and without stutter
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors

Capture a full page or automate repeated screenshots

The Chrome CLI reference documents viewport-sized screenshots and window dimensions, but does not document a full-page command-line switch. For full-page captures or repeatable scripts, Puppeteer provides a screenshot API with fullPage: true; that option defaults to false. Its guide also demonstrates navigating with a wait condition, saving an image, and capturing a particular element with ElementHandle.screenshot(). Puppeteer ScreenshotOptions · Puppeteer Screenshots guide.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A minimal Node.js example using Puppeteer:

const puppeteer = require('puppeteer');

(async () => {
  const browser = await puppeteer.launch({ headless: true });
  try {
    const page = await browser.newPage();
    await page.setViewport({ width: 1280, height: 900 });
    await page.goto('https://example.com/', { waitUntil: 'networkidle0' });
    await page.screenshot({ path: 'screenshot.png', fullPage: true });
  } finally {
    await browser.close();
  }
})();

Install Puppeteer in your project using its current official installation instructions before running this script. The CLI is simpler for an occasional visible-viewport shot; Puppeteer is the documented route when you need full-page capture, element screenshots, or a repeatable navigation-and-capture workflow.

Rank #3
Dell 24 Monitor - SE2426H - 23.8-inch FHD (1920x1080) 144Hz 1ms Display, in-Plane Switching (IPS) Technology, AMD FreeSync™, TÜV 3-Star 2X HDMI, Tilt
  • Clear visuals. Fluid motion: A 144Hz refresh rate and 1ms MPRT deliver smooth, tear‑free motion across work, gaming, and streaming for clearer, more fluid viewing.
  • Eye comfort: TÜV Rheinland 3‑star* certification reduces harmful blue light while preserving stunning color quality without compromise. *TÜV Rheinland 3-star eye comfort certification.
  • Wide viewing angle: Get consistent views across a wide 178° /178° viewing angle.
  • In-Plane Switching (IPS): See excellent color accuracy and consistency across wide viewing angles with In-plane Switching (IPS) technology.
  • Ultra-thin bezels: Maximize your viewing experience with thin bezels.

Or skip the browser setup

ScreenshotNeo provides a website screenshot API and MCP server. Its one-request example returns an image; see the ScreenshotNeo API documentation for options such as output format and full-page capture.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com/ -o shot.webp

ScreenshotNeo removes cookie banners, newsletter popups, and chat widgets before capture. Bot checks, blank pages, failed loads, timeouts, and cache hits are not billed. Its MCP server lets AI agents take screenshots. The Free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000.

Sign up for ScreenshotNeo’s free plan.

Troubleshoot common capture problems

  • “Command not found”: The binary name differs from the example or Chromium is not available on your PATH. Try the executable name installed on your Linux system, such as google-chrome or chrome if applicable.
  • No screenshot where expected: The CLI writes screenshot.png to the current working directory, which may not be the directory containing your command or script. Change directories first or check the terminal’s current directory.
  • Content is missing or still loading: Increase --timeout to allow more time, while remembering it is only a maximum wait. For pages with asynchronous content, use Puppeteer and a suitable navigation wait condition, then adjust the script to wait for the specific content you need.
  • Only part of a long page appears: A viewport capture is not a full-page capture. Use Puppeteer’s fullPage: true.
  • The layout looks unlike a phone or desktop: Set --window-size to the dimensions you want to test. The capture reflects that viewport size.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Frequently Asked Questions

What is the default filename for a Chromium headless screenshot?

The default output is screenshot.png, saved in the current working directory.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
Samsung 27" Essential S3 (S36GD) Series FHD 1800R Curved Computer Monitor | 100Hz, Game Mode, Advanced Eye Comfort, HDMI and D-sub Ports (LS27D366GANXZA)
  • CURVED FOR ENHANCED ENGAGEMENT: An immersive viewing experience with a curved monitor that wraps more closely around your field of vision; It creates a wider view, enhancing depth perception and minimizing peripheral distraction
  • SMOOTH PERFORMANCE FOR SEAMLESS CONTENT: Stay in the action when playing games, watching videos, or working on creative projects; The 100Hz refresh rate reduces lag and motion blur so you don't miss a thing in fast-paced moments¹
  • MORE GAMING POWER: Gain the edge with optimizable game settings; Color and image contrast can be adjusted to see scenes more vividly and spot enemies hiding in the dark; Game Mode adjusts any game to fill the screen so you can view every detail²
  • KEEP IT EASY ON THE EYES: Care for your eyes and stay comfortable, even during long sessions; Advanced eye comfort technology certified by TÜV reduces eye strain by minimizing blue light and reducing irritating screen flicker²
  • INCREASED VERSATILITY: Connect to more; Plug devices straight into your monitor for increased flexibility, making your computing environment even more convenient

Does Chromium’s screenshot command capture the whole page?

The documented CLI workflow covers the screenshot viewport, not a full-page option. Puppeteer documents full-page capture with fullPage: true.

Best Value
Sale
Sceptre New 22-Inch Gaming Monitor, FHD 1080p, Up to 144Hz, HDMI, DisplayPort, Built-in Speakers, Machine Black (E225W-FW144 Series, 2026)
  • 【INTEGRATED SPEAKERS】Whether you're at work or in the midst of an intense gaming session, our built-in speakers provide rich and seamless audio, all while keeping your desk clutter-free.
  • 【EASY ON THE EYES】 Protect your eyes and enhance your comfort with Blue-Light Shift technology. This feature reduces harmful blue light emissions from your screen, helping to alleviate eye strain during long hours of use and promoting healthier viewing habits.
  • 【WIDEN YOUR PERSPECTIVE】Our sleek minimal bezel design ensures undivided attention. The nearly bezel-free display seamlessly connects in a dual monitor arrangement, delivering an unobstructed view that lets you focus on more at once, completely distraction-free.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.