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

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

To capture a webpage from a Laravel application with Spatie’s laravel-screenshot, install the package, choose where Chromium will run, then call the Screenshot facade. A basic capture takes one line: Screenshot::url('https://example.com')->save('screenshot.png'). The package documents a local Browsershot/Chromium driver and a Cloudflare Browser Rendering driver; the right choice depends on whether your Laravel host can run a browser and whether you want to use an external rendering service.

Install the Laravel screenshot package

Install Spatie’s package with Composer:

composer require spatie/laravel-screenshot

Check the package’s installation guide for its current Laravel setup and driver configuration: Spatie Laravel Screenshot installation and setup. The package is documented at Spatie Laravel Screenshot on GitHub. The examples below follow those docs; they are not a report of a runtime test. Packagist listed release 1.2.0 and an update timestamp of September 7, 2026 when checked on September 29, 2026, but registry metadata can change, so check the package page for the current release and compatibility details: Packagist: spatie/laravel-screenshot.

Choose where the browser runs

The package documents two drivers. This is the most important deployment decision: the default local driver needs browser runtime dependencies on your Laravel host, while the Cloudflare driver moves browser rendering to an external service.

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.
Driver Where rendering runs What to account for
Browsershot (default) On the Laravel host, using Chromium through spatie/browsershot. Install and maintain Browsershot’s required runtime dependencies, including Node.js and a Chrome/Chromium binary. This option is appropriate when your environment permits local browser execution and you need control over browser behavior.
Cloudflare Browser Rendering Through Cloudflare Browser Rendering. The Laravel host does not need Node.js or a Chrome binary for this driver, but the application depends on an external service. Verify current Cloudflare account setup, credentials, limits, and pricing with Cloudflare; those specifics are not established here.

Set the default driver through LARAVEL_SCREENSHOT_DRIVER or the package configuration. You can also choose a driver for an individual capture with driver('cloudflare'). See the installation and setup guide for the package’s current configuration details.

#1 Best Overall
Sale
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black
  • 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

Take and save a basic screenshot

In application code, import the facade and provide the target URL and output path:

<?php

use SpatieLaravelScreenshotFacadesScreenshot;

Screenshot::url('https://example.com')
    ->save('screenshot.png');

The package documents default captures as a 1280 × 800 viewport, device scale factor 2, PNG format, and a wait for network idle. These are package defaults, not a guarantee that every target page will finish loading or look identical across environments. The output path is where the screenshot is saved; make sure the PHP process can write to the intended location.

Set dimensions and image quality

For a specific viewport and JPEG output, set dimensions and quality before saving:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
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.
Screenshot::url('https://example.com')
    ->width(1920)
    ->height(1080)
    ->quality(80)
    ->save('screenshot.jpg');

Choose dimensions based on the content you need, not just the display size of the final file. A larger viewport can expose more of a page, but a normal viewport capture is not the same as a full-page capture. Confirm the package’s current supported methods before relying on an option not shown in its documentation.

Customize browser behavior with Browsershot

When you use the Browsershot driver, the package lets you configure Browsershot globally or for one capture. Its customization documentation shows examples for request headers, a custom user agent, cookies, dialog handling, and timeouts. Use these options when the target needs authentication, a particular browser identity, or more time to render. Keep credentials out of source control and use the application’s normal secret-management practices.

For per-capture customization, the documented approach is withBrowsershot(). Consult Spatie’s Browsershot customization guide for the supported API and examples. The same guide covers global configuration such as binary paths, which can matter when development and production hosts install Chromium in different locations.

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.

Restricted containers and no-sandbox mode

In Docker or another restricted environment, the package documentation describes enabling no-sandbox mode globally with LARAVEL_SCREENSHOT_NO_SANDBOX=true or for a capture through Browsershot’s noSandbox(). Do not enable it automatically as a generic fix: sandbox settings affect browser isolation. Apply the change only when required by your environment and consistent with your deployment’s security requirements.

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

Move slow captures to a queue

A synchronous save() runs as part of the current request, so a slow page can keep the request open. If screenshot generation should happen in the background, the package documents saveQueued():

Screenshot::url('https://example.com')
    ->saveQueued('screenshot.png');

Queued generation relies on Laravel’s queue infrastructure and worker being configured and running. The package also documents queue, connection, delay, storage-disk, and replaceable-job configuration; its job class can be adjusted for retry, timeout, or backoff behavior. Decide how your application will notify a user or update a record when the queued file is ready, and set retry behavior to suit the target site and your workload. See the queued screenshot generation guide for configuration details.

Rank #4
Sale
EMEET C960 1080P Webcam with Microphone, 2 Mics, 90° FOV, Computer Camera
  • 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)

There is an important constraint: do not combine saveQueued() with withBrowsershot(). The documentation warns that the closure cannot reliably be serialized for a queued job. If a queued capture needs browser settings, use an approach supported by the package’s persistent configuration rather than passing that closure.

Use Dusk for browser-test screenshots

If your purpose is to capture evidence during a browser test, Laravel Dusk is a different fit. Dusk provides browser, responsive, and element screenshot methods in its test automation workflow. Spatie’s package is the flow described here for capturing a webpage from application code; its README also demonstrates faking capture in a test and asserting that a target URL was saved. See Laravel Dusk documentation for the testing API. Choose based on whether the screenshot is an application output or a test artifact, rather than treating the two tools as interchangeable.

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

Or skip the browser setup

If you want an HTTP screenshot API rather than installing and operating Chromium or configuring a hosted browser driver, ScreenshotNeo takes a URL in one GET request and returns an image or PDF. For example, with cURL:

Best Value
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black
  • Compatible with Nintendo Switch 2’s new GameChat mode
  • HD lighting adjustment and autofocus: The Logitech webcam automatically fine-tunes the lighting, producing bright, razor-sharp images even in low-light settings. This makes it a great webcam for streaming and an ideal web camera for laptop use
  • Advanced capture software: Easily create and share video content with this Logitech camera that is suitable for use as a desktop computer camera or a monitor webcam
  • Stereo audio with dual mics: Capture natural sound during calls and recorded videos with this 1080p webcam, great as a video conference camera or a computer webcam
  • Full HD 1080p video calling and recording at 30 fps. You'll make a strong impression with this PC webcam that features crisp, clearly detailed, and vibrantly colored video
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com -o shot.webp

More options and API details are in the ScreenshotNeo documentation. Cookie banners are accepted and removed before the shot, along with supported newsletter popups and chat widgets; those steps can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits cost nothing, and response headers report the page verdict and billing status. An MCP server provides screenshot tools for AI agents, and the free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000. Sign up for the free plan.

Troubleshooting Laravel screenshot captures

  • Missing Node.js, Chromium, or browser executable: This usually points to an incomplete Browsershot runtime or a path mismatch. Install the dependencies required by Browsershot in the deployment environment, verify the configured binary paths, or select the Cloudflare driver if the host should not run a local browser.
  • Capture fails in a container: Check the Browsershot and Chromium configuration for that image. The package documents no-sandbox mode for restricted environments; use it only after reviewing your security requirements.
  • The page is incomplete or appears blank: The documented default waits for network idle, but some sites continue making requests or render content after that point. Check the target page’s loading behavior and use documented timeout or dialog settings where appropriate. Do not assume that a successful method call means every page element was ready.
  • Request takes too long: A synchronous capture occupies the current request while the page renders. Use saveQueued() when your application can deliver the result asynchronously, and configure the queue worker and job timeout/retry behavior for your workload.
  • Queued capture cannot serialize its settings: Remove withBrowsershot() from the queued call; the package warns that its closure cannot reliably be serialized. Configure supported settings outside that closure.
  • Output file is missing or unwritable: Confirm the destination path, filesystem permissions, and storage configuration for the PHP process or queue worker. For a queued job, check the worker’s logs and the queue connection as well as the web request logs.
  • Cloudflare capture is not configured: Confirm current account setup and credentials with Cloudflare and verify that the application can reach the service. Limits and pricing are provider-specific and should be checked directly rather than inferred from the Laravel package.

Plan for latency, reliability, and cost

The package documentation establishes driver choices and queueing behavior, but it does not establish a reliable latency comparison or current cost comparison between local Browsershot and Cloudflare Browser Rendering. Actual duration depends on the page, browser startup, deployment resources, network, and service configuration. Measure representative URLs in your own environment before setting user-facing deadlines.

For a request that must return promptly, queueing separates page rendering from the user’s request but adds the operational need for a worker, result persistence, and a way to communicate completion. For a local driver, include Chromium and its dependencies in deployment and monitor disk, memory, and process capacity. For a hosted driver, account for the external service and verify its current credentials, limits, and pricing with its provider. Neither driver removes the need to handle failures such as unreachable pages or pages that do not finish rendering.

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

Quick Recap

SaleBestseller No. 1
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black
Logitech Brio 101 Full HD 1080p Webcam for Streaming and Meetings - Black
Compatible with Nintendo Switch 2’s new GameChat mode; Built-In Mic: The built-in microphone lets others hear you clearly during video calls
$35.90
SaleBestseller No. 2
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
Logitech C270 720p Webcam Plug-and-Play Wide Screen Video Calling - Black
Compatible with Nintendo Switch 2’s new GameChat mode
$16.89
Bestseller No. 5
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black
Logitech C920x HD Pro PC Webcam Full 1080p/30fps Video - Black
Compatible with Nintendo Switch 2’s new GameChat mode; Fully compatible with Windows 11
$69.99

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.