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.

Set the browser viewport to the required width and height before loading the page, then choose an output scale that matches your pixel requirement. For a quick capture, Chrome Headless accepts --window-size=WIDTH,HEIGHT; for repeatable scripts, Playwright lets you set the viewport directly. If the delivered image file itself must be exactly W×H pixels, inspect its dimensions: viewport size and output bitmap size can differ, especially with device-pixel scaling or full-page capture.

Choose what “exact size” means

A viewport is the browser area used to lay out the visible page. A screenshot file has pixel dimensions. Those values match when the capture uses CSS-pixel scale; device-pixel scale can produce a larger bitmap on a high-DPI configuration. A viewport screenshot shows the visible area, while a full-page screenshot extends down the scrollable document and therefore has a different height.

  • Exact layout viewport: specify the CSS viewport width and height.
  • Exact output bitmap: also control screenshot scale and verify the saved image dimensions.
  • Whole document: use full-page capture only when you want content beyond the visible viewport included.

Fast command-line capture with Chrome Headless

Chrome’s documented headless command uses --screenshot with --window-size. Replace the sample dimensions and URL with your target values:

chrome --headless --screenshot --window-size=412,892 https://developer.chrome.com/

The screenshot is saved in the current working directory. The example dimensions are illustrative. The command requests a browser capture size, but the CLI reference does not establish a universal guarantee that every platform configuration will produce a bitmap with exactly those dimensions. If the file must be precisely W×H pixels, check the saved image’s dimensions and adjust the capture configuration if necessary. Chrome Headless documentation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#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

Repeatable captures with Playwright

For automation, set the viewport before navigation. Playwright notes that changing to a phone-sized viewport after a site has loaded may not match how that site behaves when loaded at that size.

const { chromium } = require('playwright');

(async () => {
  const browser = await chromium.launch({ headless: true });
  const page = await browser.newPage();

  await page.setViewportSize({ width: 640, height: 480 });
  await page.goto('https://example.com');
  await page.screenshot({ path: 'screenshot.png', fullPage: false, scale: 'css' });

  await browser.close();
})();

Install Playwright in your project with npm install playwright; install the browser binaries required by your setup with npx playwright install. The example uses a viewport screenshot and scale: 'css', which maps one output pixel to one CSS pixel. If you want output pixels to follow device pixels instead, use scale: 'device'; the image may then be larger. Playwright’s screenshot options also support full-page capture, which includes the scrollable document rather than only the visible viewport. See Playwright screenshots and the viewport API.

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

Use this when the file must match the viewport dimensions

  1. Set the intended width and height with page.setViewportSize() before calling page.goto().
  2. Capture with fullPage: false so the screenshot represents the visible viewport only.
  3. Set scale: 'css' when you need one output pixel per CSS pixel.
  4. Inspect the resulting PNG’s actual dimensions in your image viewer or image-processing workflow. Do not assume the viewport request alone guarantees the final file size in every environment.

Which capture path fits?

Need Documented path Key consideration
One quick command-line screenshot Chrome Headless with --screenshot --window-size=WIDTH,HEIGHT Check the saved bitmap if its dimensions must be exact.
Repeatable scripted screenshots Playwright: set viewport before navigation, then call page.screenshot() Choose CSS or device scale according to the required output pixels.
Build your own lower-level browser workflow Chrome DevTools Protocol: Page.captureScreenshot and viewport metrics Requires working with protocol commands and capture parameters.

The Chrome DevTools Protocol screenshot method supports a clip option, and its page metrics expose CSS layout and visual viewport measurements.

Keep captures comparable

Matching width and height does not guarantee pixel-identical images across machines. Playwright cautions that rendering can vary with the host operating system, browser version, settings, hardware, power source, headless mode, and other factors. For visual checks, keep those conditions—and device scale—consistent between captures. See Playwright visual comparisons.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
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.

Common problems and fixes

The image dimensions do not match the requested viewport

Check whether the capture used device-pixel rather than CSS-pixel scale, and confirm that the capture is not full-page. In Playwright, use scale: 'css' and fullPage: false for a visible-viewport image, then inspect the resulting bitmap.

The page layout looks like the wrong viewport

In Playwright, set the viewport before navigation. Some sites do not behave as expected if their viewport is changed only after loading.

Rank #4
Sale
Samsung 27" Essential S3 (S36GD) Series FHD 1800R Curved Computer Monitor
  • 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

Two screenshots differ despite matching dimensions

Keep browser version, operating system, rendering settings, hardware conditions, headless mode, and device scale consistent. Differences may still reflect environment-dependent rendering.

The full-page result is taller than expected

Full-page capture includes the scrollable document, not only the visible viewport. Disable full-page capture when the deliverable must represent just the specified viewport.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
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.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server. A single GET request can return a PNG, JPEG, WebP, or PDF; set the viewport dimensions with the API’s supported parameters. Its capture flow removes cookie and consent banners, newsletter popups, and chat widgets before the shot, and failed loads, bot checks, blank pages, timeouts, and cache hits are not billed. The response includes page-verdict and billing headers. Its MCP server lets AI agents use take_screenshot, get_page_info, and capture_pdf.

For example, this cURL request captures a webpage; replace the sample URL and provide your API key:

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

See the ScreenshotNeo API documentation for viewport and output options. One thousand screenshots a month are free with no card; paid plans start at $5 for 3,000. Sign up for the free plan.

FAQ

Does an exact viewport always mean an image file of the same width and height?

No. Output scale affects bitmap dimensions, and full-page capture changes the image height. Verify the saved file when exact pixel dimensions are a hard requirement.

Free tools Windows power users keep installed

One-click scans. No signup required.

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

Should I use Chrome Headless or Playwright?

Use Chrome Headless for a quick one-off command. Choose Playwright when you need scripted captures with an explicit viewport and screenshot scale.

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.