DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
World desk4 min

How to Fix Playwright Screenshots That Are Too Tall or Clipped

Fix tall or clipped Playwright screenshots by checking capture mode, clip bounds, target type, and pixel scale.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

First identify what is wrong: the capture target, the crop, or the output’s pixel density. Use fullPage: true for the full scrollable document, remove or correct an unintended clip rectangle, and choose scale: 'css' if device-pixel output is making the image dimensions larger than expected. These settings solve different problems, so changing scale will not reveal content outside the captured area.

Choose the screenshot area you actually need

With no fullPage option, page.screenshot() captures the viewport. To capture the full scrollable page, set fullPage: true. Playwright describes this as capturing the page as if it were displayed on a very tall screen. See the Playwright Screenshots guide.

As an Amazon Associate I earn from qualifying purchases.

await page.screenshot({ path: 'full-page.png', fullPage: true });

Use viewport capture for a viewport-sized visual check; use full-page capture when you need the document beyond the fold. Full-page capture can naturally produce a tall image because it includes the page’s scrollable height.

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

Check the crop before changing page layout

The clip option sets an explicit capture rectangle with x, y, width, and height. A rectangle that is too short or narrow will cut off content even if the page itself is rendered correctly. Remove clip to use the normal target bounds, or adjust it when a fixed crop is intentional.

#1 Best Overall
Philips 24 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 241V8LB | 1920×1080 LED Monitor, 4ms GtG, Adaptive Sync, HDMI 1.4, Tilt Adjust, Low Blue Light, 4yr Advance Replacement Warranty
  • 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
await page.screenshot({
  path: 'crop.png',
  clip: { x: 0, y: 0, width: 1200, height: 800 },
});

Do not treat clip as a substitute for fullPage: the former defines a rectangle, while the latter requests the full scrollable page. Review the Page screenshot API for the options supported by your installed Playwright version.

Confirm whether you are capturing an element or a page

An element screenshot is bounded by that element’s position and size, not the entire document. For a scrollable element, Playwright documents that the capture shows only its currently scrolled content. If you need the full document, take a page screenshot with fullPage: true; if you need a particular element, confirm its dimensions and scroll position first. See the Locator screenshot API.

Rank #2
Philips 22 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 221V8LB | 1920×1080 LED Monitor, 4ms GtG, Adaptive Sync, HDMI 1.4, Tilt Adjust, Low Blue Light, 4yr Advance Replacement Warranty
  • 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

Reduce unexpectedly large pixel dimensions

Screenshot scale changes raster output dimensions, not the part of the page captured. The API supports scale: 'css', which uses one output pixel per CSS pixel, and device scale, which uses device pixels. On high-DPI devices, device scale may result in an image with substantially more pixels than the CSS dimensions suggest.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
await page.screenshot({ path: 'page.png', scale: 'css' });

Choose CSS scale when CSS-pixel-sized output is suitable. If content is missing, investigate the capture target or crop instead; lowering scale cannot uncrop it. Option details are in the Page screenshot API.

Rank #3
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.

Diagnose the problem in this order

  1. Decide between viewport and full document. Use the default page screenshot for the viewport; set fullPage: true for the full scrollable page.
  2. Inspect the screenshot call for clip. Check its origin and dimensions against the area you intend to capture. Remove it if no fixed crop is needed.
  3. Check the target type. If the call is on an element or locator, verify that its bounds and current scroll position match the desired result. Use a page screenshot for the full document.
  4. Compare CSS and device scale. If the captured area is right but the file has unexpectedly large pixel dimensions, try scale: 'css'.
  5. Separate geometry from visual variability. If results differ between runs, inspect the page’s CSS and rendering state as well as the screenshot settings. Playwright’s screenshot assertions wait for two consecutive screenshots to match before comparison; its visual-comparison guide documents stylePath for applying styles to help make captures repeatable. These tools help with stability, but do not establish why a particular page is clipped. See Visual comparisons.

Troubleshoot common symptoms

Symptom Likely setting to check What to do
Only the visible screen is captured fullPage is absent or false Set fullPage: true on a page screenshot if you need the full scrollable document.
The image ends at a fixed horizontal or vertical boundary clip is set Remove the crop or correct its x, y, width, and height.
An element’s lower content is missing Element screenshot bounds or scroll position Confirm the element’s size and current scroll position; use a page screenshot if the intended target is the whole document.
The image has more pixels than expected scale is using device pixels Try scale: 'css' when one pixel per CSS pixel is appropriate.
Captures differ across runs Page state or rendering variability Inspect the page’s CSS and rendering state; use screenshot assertion stability features and stylePath where appropriate. Do not assume this alone explains clipping.

Or skip the browser setup

ScreenshotNeo can return a screenshot from one GET request. The example saves a WebP response for the target URL; see the ScreenshotNeo API documentation for request options.

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

ScreenshotNeo accepts cookie or consent banners before capture and removes 60+ known consent platforms, newsletter popups, and chat widgets; each of those steps can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and the response identifies the page verdict and billing status in headers. Its MCP server includes take_screenshot, get_page_info, and capture_pdf for AI agents and other MCP clients. The Free plan includes 1,000 shots a month with no card; paid plans start at $5 for 3,000 shots. Learn about ScreenshotNeo or sign up for 1,000 free screenshots a month, with no card.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Frequently Asked Questions

Does fullPage: true change the viewport size?

No. It requests a full scrollable-page capture; it does not mean the normal viewport screenshot.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Acer 27in FHD 1920x1080 IPS 120Hz Gaming Monitor | Office KB272 G0bi | 1ms, AdaptiveSync, sRGB 99%, HDMI, VGA, VESA Mountable, Bluelight Filter
  • Incredible Images: The Acer KB272 G0bi 27" monitor with 1920 x 1080 Full HD resolution in a 16:9 aspect ratio presents stunning, high-quality images with excellent detail.
  • Adaptive-Sync Support: Get fast refresh rates thanks to the Adaptive-Sync Support (FreeSync Compatible) product that matches the refresh rate of your monitor with your graphics card. The result is a smooth, tear-free experience in gaming and video playback applications.
  • Responsive!!: Fast response time of 1ms enhances the experience. No matter the fast-moving action or any dramatic transitions will be all rendered smoothly without the annoying effects of smearing or ghosting. A 120Hz refresh rate speeds up the frames per second to deliver smooth 2D motion scenes in gaming and video.
  • 27" Full HD (1920 x 1080) Widescreen IPS Monitor | Adaptive-Sync Support (FreeSync Compatible)
  • Refresh Rate: Up to 120Hz | Response Time: 1ms VRB | Brightness: 250 nits | Pixel Pitch: 0.311mm

Will scale: 'css' bring back content cropped by clip?

No. Scale controls output pixel density. Remove or correct the crop to capture the intended area.

Best Value
Sale
MNN 15.6" FHD 60Hz Portable Monitor USB-C HDMI IPS HDR Gaming Laptop
  • Full HD Portable Monitor - MNN 15.6inch portable laptop monitor with 1920*1080 resolution, advanced IPS glossy screen support 178° full viewing angle, it renders accurate and bright color, draws you into the video or game with lifelike colors and amazing detail.It can effectively reduce blue light radiation damage, no flickering, eye-care, and make it easier to watch for a long time.A second monitor for working from home.
  • Double Type-C Port -For Plug & Play, the MNN monitor provides 2 Full Feature Type-C ports. Only One USB Type-C Cable is required to connect to the power supply & display signal transmission. NOTE: Your device should support thunderbolt 3.0 or USB 3.1 Type C DP ALT-MODE.which supports multiple connect ways to your laptops, PC, Phones, Macbooks, PS5/PS4, Xbox, and Switch.
  • Lightweight Ultra Slim for Travel - As a portable external monitor,MNN portable laptop monitor easily accommodate to every suitcase and backpack and stress-free when you are holding it for a long time. They are truly portable computer monitors for travelers, students, gamers,engineers, and everyone.
  • Give consideration to work and games - through multiple display modes [Copy Mode/Extended Mode/Second Screen Mode/Portrait Mode], we can bring you a clear second screen in the meeting, and expand the screen anytime and anywhere to improve work efficiency and improve the quality of life. Adjusting to HDR mode can upgrade the image to a new level, providing you with brighter highlights,deeper and more realistic colors, more realistic images, and amazing viewing/gaming experience.
  • Powerful Smart Cover - MNN portable external monitor can work in both landscape and portrait mode, can be used as a gaming monitor, screen extender for laptop or phone. Comes with a scratch-proof smart cover made of durable PU leather exterior, doubles as a stand, provides comprehensive protection for this portable computer monitor.

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
Outdated Drivers Are Slowing You DownFree scan - exact matches
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.