Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon 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 desk5 min

Take a Full-Page Screenshot in PHP with Symfony Panther

Panther’s standard screenshot method is not a full-page guarantee. See the reported window-resize workaround, Chrome’s CDP option, and their limits.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Panther’s documented takeScreenshot() call does not guarantee a full-page capture. For a quick attempt, measure the document, resize the browser window, then take the screenshot—but this is a community-reported workaround, not a reliable Panther feature. If you need Chrome-specific capture beyond the viewport, Chrome DevTools Protocol provides Page.captureScreenshot with captureBeyondViewport: true.

What Panther’s screenshot method captures

Symfony Panther is a PHP library for browser testing and web crawling that drives real browsers through WebDriver. Its README documents a screenshot call such as $client->takeScreenshot('screen.png'). The client delegates screenshot capture to WebDriver; the documented call alone does not establish that the entire scrollable page will be captured.

As an Amazon Associate I earn from qualifying purchases.

For a full-page attempt, you have two distinct routes: resize the browser window through Panther/WebDriver, or use Chrome DevTools Protocol (CDP). The first is a workaround with uncertain reliability; the second is a Chrome-specific protocol feature, not a built-in cross-browser Panther convenience method.

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

Try the Panther window-resize workaround

A Panther issue opened February 20, 2023 shows a community workaround: read the document’s scroll dimensions, resize the browser window to match, and take the ordinary screenshot.

#1 Best Overall
Sale
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black | 1080p with auto-Light Correction, Built-in mic, Privacy Shutter, USB-A, Compatible with Teams, Google Meet, Zoom and More
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • Auto-Light Balance: RightLight boosts brightness by up to 50%, reducing shadows so you look your best—compared to previous-generation Logitech webcams (1)
  • Privacy with a Slide: The integrated webcam cover makes it easy to get total, reliable privacy when you're not on a video call
  • Built-In Mic: The built-in microphone lets others hear you clearly during video calls
  • Easy Plug-And-Play: The Brio 101 works with most video calling platforms, including Microsoft Teams, Zoom and Google Meet—no hassle; it just works

Install and run a basic Panther capture

Install Panther with Composer, following the project’s current browser and driver setup instructions. The exact driver setup depends on your browser and environment, so confirm the current README instructions before configuring a machine or CI runner.

composer require symfony/panther

With Chrome and its required driver available, the following PHP script applies the reported resize approach:

Rank #2
Sale
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • Crisp HD 720p/30 fps video calls with diagonal 55° field of view and auto light correction. Compatible with popular platforms including Skype and Zoom.
  • The built-in noise-reducing mic makes sure your voice comes across clearly up to 1.5 meters away, even if you’re in busy surroundings.
  • C270’s RightLight 2 feature adjusts to lighting conditions, producing brighter, contrasted images to help you look good in all your conference calls.
  • The adjustable universal clip lets you attach the camera securely to your screen or laptop, or fold the clip and set the webcam on a shelf. You’re always ready for your next video call.
<?php

require __DIR__.'/vendor/autoload.php';

use FacebookWebDriverWebDriverDimension;
use SymfonyComponentPantherClient;

$client = Client::createChromeClient();
$client->request('GET', 'https://example.com');

$width = $client->executeScript('return document.documentElement.scrollWidth');
$height = $client->executeScript('return document.documentElement.scrollHeight');

$client->manage()->window()->setSize(new WebDriverDimension($width, $height));
$client->takeScreenshot('screenshot.png');

Run it from the project directory with php path/to/your-script.php. If the target page renders content asynchronously, wait for the relevant element before measuring dimensions. Panther’s README documents waiting for rendered elements; choose a selector that indicates the content you actually need is present.

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.

What can go wrong with resizing

  • Responsive layout changes: changing the window width can trigger a different layout, so the dimensions measured before resizing may no longer describe the page after the resize.
  • Dynamic or lazy-loaded content: the script measures the document as it exists at that moment. It does not establish a universal way to trigger content that appears only after scrolling or additional loading.
  • Very tall pages: the cited issue does not establish a maximum size or guarantee that the browser and driver will produce a complete image at arbitrary dimensions.
  • Browser differences: this is a community example using Panther and WebDriver, not a guarantee of consistent behavior across Chrome, Firefox, remote browsers, or every page.

The issue author explicitly questions whether the workaround will work in every case. Treat the saved image as something to inspect, and test the exact browser, page, and runner you intend to use.

Rank #3
Sale
NexiGo N60 1080P Webcam with Microphone, Software Control & Privacy Cover, USB HD Computer Web Camera, Plug and Play, for Zoom/Skype/Teams, Conferencing and Video Calling
  • 【Full HD 1080P Webcam】Powered by a 1080p FHD two-MP CMOS, the NexiGo N60 Webcam produces exceptionally sharp and clear videos at resolutions up to 1920 x 1080 with 30fps. The 3.6mm glass lens provides a crisp image at fixed distances and is optimized between 19.6 inches to 13 feet, making it ideal for almost any indoor use.
  • 【Wide Compatibility】Works with USB 2.0/3.0, no additional drivers required. Ready to use in approximately one minute or less on any compatible device. Compatible with Mac OS X 10.7 and higher / Windows 7, 8, 10 & 11 / Android 4.0 or higher / Linux 2.6.24 / Chrome OS 29.0.1547 / Ubuntu Version 10.04 or above. Not compatible with XBOX/PS4/PS5.
  • 【Built-in Noise-Cancelling Microphone】The built-in noise-canceling microphone reduces ambient noise to enhance the sound quality of your video. Great for Zoom / Facetime / Video Calling / OBS / Twitch / Facebook / YouTube / Conferencing / Gaming / Streaming / Recording / Online School.
  • 【USB Webcam with Privacy Protection Cover】The privacy cover blocks the lens when the webcam is not in use. It's perfect to help provide security and peace of mind to anyone, from individuals to large companies. 【Note:】Please contact our support for firmware update if you have noticed any audio delays.
  • 【Wide Compatibility】Works with USB 2.0/3.0, no additional drivers required. Ready to use in approximately one minute or less on any compatible device. Compatible with Mac OS X 10.7 and higher / Windows 7, 10 & 11, Pro / Android 4.0 or higher / Linux 2.6.24 / Chrome OS 29.0.1547 / Ubuntu Version 10.04 or above. Not compatible with XBOX/PS4/PS5.

Use Chrome DevTools Protocol to capture beyond the viewport

Chrome DevTools Protocol documents Page.captureScreenshot, including the captureBeyondViewport option. Its default is false; setting it to true enables capture beyond the viewport. CDP also supports an optional clip region and PNG, JPEG, or WebP output. See the Chrome DevTools Protocol Page reference.

This is a Chrome protocol route, not proof that Panther’s ordinary takeScreenshot() wrapper exposes a cross-browser full-page option. To use it, your PHP application must access and send commands through a Chrome DevTools Protocol connection; the protocol documentation describes the browser capability, but Panther’s cited README does not provide a built-in Panther full-page method or a ready-made CDP integration recipe.

Rank #4
Sale
EMEET C960 1080P Webcam with Microphone, 2 Mics, 90° FOV, Computer Camera | USB Type-A & A-to-C Adapter, Fixed Focus, Plug&Play for Zoom/Teams/Facetime/YouTube/Google Meet/Switch 2 Camera, 2025 Version
  • 1080P Webcam with Cover for Video Calls - EMEET computer webcam provides design and Optimization for professional video streaming. Realistic 1920 x 1080p video, 5-layer anti-glare lens, providing smooth video. C960 computer camera delivers 1920x1080 video with fixed focus (11.8–118.1 inches), so as to provide a clearer image. C960 USB webcam has a cover and can be removed automatically to meet your needs for privacy. For optimal image performance, use the webcam in a well-lit environment.
  • Built-in 2 Omnidirectional Mics - EMEET webcam with microphone for desktop features 2 built-in omnidirectional microphones, picking up your voice to create clear audio for communication. When installing the webcam, select EMEET C960 as the default microphone input device in your computer and video applications and select C960 as the default device in Zoom/Teams and ensure microphone permissions are enabled for proper use. Please note that C960 does not include built-in speakers.
  • Automatic Light Adjustment - Automatic exposure adjustment is applied in EMEET HD webcam 1080p so that the streaming webcam can deliver stable image performance. EMEET C960 camera for computer also features color adjustment and exposure optimization to help you look your best. For optimal video quality, it is recommended to use the webcam in normal or well-lit environments and select suitable video settings in your application. Proper lighting helps achieve a clearer and more balanced image.
  • Plug-and-Play & Upgraded USB Connectivity - New C960 webcam features both USB Type-A & A-to-C adapter connections for wider compatibility. For stable performance, connect the webcam directly to the computer's main USB port and ensure the device is recognized correctly. If a hub or docking station is used, please ensure it provides sufficient power and stable data transmission, as limited ports may affect performance. 90° wide-angle lens captures more participants without frequent adjustments.
  • High Compatibility & Multi Application - C960 webcam for laptop is compatible with Windows 10/11, macOS 10.14+, and Android TV 7.0+. Not supported: Windows Hello, TVs, tablets, or game consoles. It works with Zoom, Teams, Facetime, Google Meet, YouTube and more. Please select C960 webcam as the default camera and microphone device in your application and ensure camera/microphone permissions are enabled, especially on macOS. (Tips: Incompatible with Windows Hello)

Choose CDP when Chrome-only behavior is acceptable and you can manage the protocol integration. Choose the resize attempt when you want to stay with Panther’s ordinary WebDriver calls and can validate the result. Neither route is established here as a universal solution for arbitrary page sizes or dynamic content.

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

Run Panther with local or remote browsers

Panther documents Chrome and Firefox clients, WebDriver-based operation, and remote browser services including BrowserStack and Sauce Labs. Remote execution can help when your tests need a browser environment provided elsewhere, but it does not change the distinction between a regular screenshot call and a guaranteed full-page API. Check the current Panther project instructions and the chosen service’s own setup documentation for the applicable driver and configuration details.

Troubleshoot an incomplete or missing screenshot

  • The image contains only the visible viewport: takeScreenshot() by itself is not a documented full-page guarantee. Try the resize workaround and inspect the output, or implement Chrome CDP capture with captureBeyondViewport: true.
  • The page is blank or missing content: wait for a page-specific rendered element before measuring and capturing. A navigation request finishing does not by itself prove that all application content has rendered.
  • The screenshot layout differs from the browser’s normal page: resizing can change responsive breakpoints. Compare the dimensions and layout before and after resizing; the workaround may not suit pages whose content reflows.
  • The script cannot start Chrome: verify that Panther’s required browser and compatible driver are installed and available to the process. Follow the project’s current setup instructions, since driver installation details can change.
  • The screenshot is cut off on an unusually long page: the cited sources provide no general maximum dimensions or cross-browser guarantee. Test the target page and browser; do not assume a larger window will always yield a complete capture.

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server. A single GET request can return a screenshot or PDF without setting up Panther and a browser driver for this capture. Cookie banners are accepted and removed before capture, along with supported consent platforms, newsletter popups, and chat widgets. Bot checks, blank pages, and failed loads are not billed; responses identify the page verdict and billing status. Its MCP server lets AI agents use screenshot tools, and the free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 shots.

For a direct request, save this as shot.php and run it with PHP and the Requests library installed. Replace the API key with your own. The response is written to shot.webp.

<?php

require __DIR__.'/vendor/autoload.php';

$response = Http::get('https://api.screenshotneo.com/v1/shot', [
    'access_key' => 'YOUR_API_KEY',
    'url' => 'https://example.com',
]);

file_put_contents('shot.webp', $response->body());

The example above requires a PHP HTTP client; for a dependency-free command-line request, use cURL instead:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp

See the ScreenshotNeo API documentation for request parameters and response details. Sign up for 1,000 free screenshots a month, with no card required.

Frequently Asked Questions

Can Panther capture beyond the viewport?

Not through a documented full-page option on its ordinary screenshot call. Chrome DevTools Protocol has a Chrome-specific option, captureBeyondViewport, which must be enabled.

Does resizing the Panther window always create a full-page screenshot?

No. It is a community-reported workaround, and its author notes that it may not work in every case.

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.

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

Leave a Reply

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

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.