Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Clear out junk files and repair common Windows errors3Fix the driver behind crashes, sound loss and screen glitchesSome links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.
The right command depends on your operating system, desktop session, and the capture target. On GNOME, use gnome-screenshot; on a Wayland compositor, use grim (often with slurp); on Windows, Microsoft’s documented command-line route opens the interactive Snipping Tool overlay through an ms-screenclip: URI. These methods are not interchangeable, and Windows’ documented URI does not silently save an image to an arbitrary path.
Choose the command by environment
Before writing a script, identify three things:
- Session: GNOME on X11, GNOME on Wayland, another Wayland compositor, or Windows.
- Target: the whole display, one window, or a selected rectangle.
- Output: a file, standard output, or the clipboard.
A command that works in a GNOME/X11 session may fail in Wayland, and a compositor-specific tool may not work on another desktop. Check that the utility is installed and that your compositor supports the capture interface it requires.
| Environment | Primary command | Targets | Automation notes |
|---|---|---|---|
| GNOME | gnome-screenshot |
Full screen, active window, area | Writes a named file with -f; supports delay |
| Wayland compositor | grim |
Outputs and geometry regions | Can combine with slurp; can write to stdout |
| Windows | ms-screenclip:// |
Rectangle, freeform, window | Launches an interactive overlay; documented URI is not a silent file writer |
GNOME: save a full screen, window, or area
When gnome-screenshot is installed, its documented options cover the common scripted cases. The following examples save PNG files in the current directory.
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallFull screen
gnome-screenshot -f screenshot.png
The -f option supplies the destination filename. Use an absolute path when a scheduled job or service may start in a different working directory, for example gnome-screenshot -f "$HOME/Pictures/nightly.png".
#1 Best Overall
- 【1080P 60FPS Video Capture Card】 This HDMI game capture card is based on USB3.0 high speed transmission port, input resolution up to 4K@30HZ, output resolution up to 2K@30Hz or 1920×1080@60Hz. Type c and USB interface can meet most of the devices in daily life. Easily meet the online capture, real-time recording, online meetings, live gaming and other functions, so you have a better visual enjoyment. Note: For capture use only; requires capture software to function and is not intended for direct screen casting to a monitor or TV
- 【Ultra Low Latency Screen Sharing】 HDMI capture card is made of good quality aluminum alloy with strong heat dissipation, allowing you to enjoy ultra low latency while live gaming or video recording or live streaming, avoiding blue screens and lag. This HDMI to USBC capture card supports easy recording of good quality audio or HD video and transferring it to your computer or streaming platform, allowing you to record 60 fps HD video directly on your hard drive and real-time preview
- 【Plug and Play, Easy to Carry】 This HDMI 1080P video capture card does not require any additional drivers or external power supply, just plug and play for fast capture. The capture card is small and lightweight, so you can put it in your bag for emergencies, making it very portable for outdoor live streaming. It's also a great way to share content in game recording, video conference, video recorder and online teaching
- 【Wide Compatibility USB Capture Card】 Easily streams to Facebook, Youtube or Twitch. With the connection, this HDMI to USB C/3.0 video capture devices can be working on several Operating Systems and various software: Windows 7/ 8/ 10, Mac OS or above, Linux, Android, Laptop, Xbox One, PS3/PS4/PS5, Camera, DVDs, Set Top Box, Webcame, DSLR, Switch/Switch 2, TV BOX, HDTV, Potplayer/VLC, ZOOM, OBS Studio etc.
- 【Package Content & Note】 1x HD Audio Capture Card , 1x USB 3.0 to USB C Adapter (A-side 3.0, B-side 2.0), 1x user manual. Please note that you need to restart the OBS Studio software after the audio setup is complete, otherwise it will result in no sound output. When using an adapter, if the device is recognized as USB 2.0, try using the other side with the USB-C port. Simply flip the capture card and reconnect it to be recognized as USB 3.0
Active window
gnome-screenshot -w -f active-window.png
-w captures the active window. Focus the intended window before running the command; a terminal launched by a script may become the active window instead.
User-selected area
gnome-screenshot -a -f selected-area.png
-a starts area selection. This is interactive, so it is unsuitable for unattended jobs unless you replace it with a fixed geometry workflow or another capture tool.
Delay before capture
gnome-screenshot -d 3 -f delayed.png
-d 3 waits three seconds. A delay gives you time to open a menu or move the pointer, but it also makes a script slower and can capture a different screen state than expected.
Recommended Free Tools
Clipboard and pointer options
The command reference also documents -c for copying to the clipboard and -p for including the pointer. Border and border-effect switches are deprecated in the cited manpage. Do not assume every Linux distribution installs this utility or gives it identical defaults. GNOME’s desktop screenshot interface may save to Pictures/Screenshots and copy to the clipboard, but that interface is separate from the file-oriented examples above.
Wayland: use grim, optionally with slurp
grim captures from a Wayland compositor. It is not a universal Linux screenshot command: the compositor must expose the required protocol, and the utility must be installed. The project’s GitHub repository is archived and says development moved elsewhere, so verify the maintained project location, installed version, and compositor compatibility before standardizing it.
Capture the default output
grim screenshot.png
Capture one monitor
grim -o DP-1 monitor.png
Replace DP-1 with the output name reported by your compositor. If the name is wrong, the command cannot select that display.
Rank #2
- [Enhanced 4K-1080P Video Capture Experience] Capture the Magic: Elevate your video recordings to new heights with our upgraded anti-static 1080P Video Capture Card. Immerse yourself in stunning visuals, supporting HDMI input at 4K 60FPS and USB output for capturing in 1080P, complete with rich stereo sound. Enjoy crystal-clear video recordings, dynamic gaming live streams, and professional conference broadcasts. Note: HDMI resolution: Max input can be 3840×2160@30Hz / Video output resolution: Max output can be 1920×1080@30Hz
- [Seamless Real-Time Preview] Stay in the Moment: Our advanced ultra-low latency technology ensures seamless real-time transmission of video streams. Experience instant, lag-free previews, allowing you to capture every detail precisely. Effortlessly record video directly to your hard disk, all without compromising on quality or introducing any delays.
- [Versatility and Broad Compatibility] Your Creative Hub: Connect your DSLR, camcorder, or action camera to a wide range of operating systems, including Windows, MacOS, and Linux. Unlock a world of possibilities with real-time streaming to popular platforms like Twitch, Youtube, OBS, Zoom, Potplayer, and VLC, giving you the tools to share your content effortlessly.
- [Effortless Plug and Play] Simplicity Redefined: Say goodbye to complex installations. Our plug-and-play design eliminates the need for drivers or external power supplies. Seamlessly integrate high-definition acquisition into various scenarios, whether it's educational recordings, immersive gaming, precise medical imaging, captivating live streams, or professional broadcasting.
- [Seize Every Detail with Precision] Unleash your creativity and attention to detail with our video capture card. Capture every nuance, every color, and every moment with precision, thanks to the enhanced capabilities of our technology. Whether you're a content creator, a gamer, or a professional, our capture card empowers you to seize the finest elements and bring them to life in your recordings and live streams.
Capture fixed geometry
grim -g "10,20 300x400" region.png
The geometry describes an origin and a size. Fixed geometry is useful in repeatable tests, but it assumes the same monitor arrangement, scale, and window layout every time.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Select a region interactively
grim -g "$(slurp)" selected-region.png
slurp supplies the rectangle; grim performs the capture. Both commands must be installed, and the compositor must support them.
Send image bytes to another command
grim - | wl-copy
A filename writes an image to disk. A lone hyphen sends image bytes to standard output, allowing a pipeline such as wl-copy to place the result on the Wayland clipboard. Ensure the receiving command expects the image format emitted by your installed version.
Windows: launch Snipping Tool from a command
Microsoft documents the ms-screenclip: URI protocol for starting Snipping Tool capture. The image path requires exactly one mode parameter: rectangle, freeform, or window.
Rectangle, freeform, and window modes
start "" "ms-screenclip://capture/image?rectangle"
start "" "ms-screenclip://capture/image?freeform"
start "" "ms-screenclip://capture/image?window"
Run these from Command Prompt. In PowerShell, invoke the URI through the shell:
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Start-Process "ms-screenclip://capture/image?rectangle"
Each command opens an interactive overlay in which you complete the selection. The documented behavior does not establish a silent command that writes a screenshot directly to a chosen path, so do not use this URI as if it were an unattended export API. For scheduled or server-side capture, use a tool that explicitly supports noninteractive output rather than assuming Snipping Tool does.
Rank #3
- 【4K HDMI Input, 2K@30Hz Recording】Powered by a true USB 3.0 high-speed interface, the capture card supports up to 4K@30Hz HDMI input and records at 2K@30Hz or 1080P@60Hz. Perfect for gamers, streamers, and professionals who need crisp, smooth video for live streaming, gameplay recording, or online meetings.
- 【Ultra Low Latency Screen Sharing】Built with a premium aluminum alloy shell and advanced chipset for stable heat dissipation, ensuring ultra-low latency transmission. Capture high-quality video and dual-channel audio in real time—no lag, no frame drop—ideal for Twitch, YouTube, or OBS streaming.
- 【Easy Plug and Play, Compact & Portable】No driver or external power required—just plug and play via USB 3.0 or Type-C connection to your Windows or macOS computer. Lightweight and compact design makes it easy to carry for outdoor streaming, live shows, or mobile recording setups.
- 【Wide Compatibility & Multi-Device Support】Compatible with Windows 7 8 10 11, macOS, Linux,Android and supports most popular software such as OBS, Zoom, VLC, Twitch Studio, and more. Works seamlessly with PS4, PS5, Xbox, Switch, DSLR cameras, TV boxes, and other HDMI-output devices for streaming to YouTube, Twitch, etc.
- 【What You Get】Includes: HDMI Capture Card, USB 3.0 to USB-C Adapter, User Manual. Tips: Make sure your tablet’s OTG function is enabled before connecting. Test your HDMI device with a monitor first to confirm video and audio output, then connect to the Video Capture Card for recording.
What about macOS?
macOS has built-in screenshot tooling, but the exact current command syntax and flags should be checked in the target system’s current Apple documentation or local manual. Availability and behavior can vary by macOS release. This guide therefore does not present unverified macOS switches as guaranteed commands.
Make command-line captures reliable
Use explicit paths and formats
Relative paths depend on the process’s working directory. Prefer an absolute destination and create the parent directory before capture. Use a filename extension that matches the format your tool writes, and check the exit status in scripts.
Account for focus and interaction
Active-window and area modes require a human state: focus, pointer position, and a selection gesture. They are appropriate for ad-hoc terminal use, not for unattended CI. Full-output or fixed-geometry commands are more deterministic, provided the display layout is stable.
Consider display servers and permissions
Wayland intentionally restricts arbitrary screen reads, so a compositor-approved utility such as grim is required. A GNOME command may fail when run from a headless SSH session because there is no graphical display or session bus. Run the command inside the logged-in graphical session, or use a capture service designed for remote rendering.
Keep monitor layouts stable
Coordinates and output names can change after docking, unplugging a monitor, changing scale, or rotating a display. If a script depends on DP-1 or a fixed rectangle, validate the layout first and fail clearly when it has changed.
Troubleshooting common failures
“command not found”
The package is missing or the executable is not on PATH. Install the utility from your distribution’s trusted package source, then verify with command -v gnome-screenshot, command -v grim, or command -v slurp.
Rank #4
- 【1080P HD High Quality】Capture resolution up to 1080p for video source and it is ideal for all HDMI devices such as PS4, PS3, Xbox One, Xbox 360, Wii U, DVDs, DSLR, Camera, Security Camera and set top box. Note: Video input supports 4K30/60Hz and 1080p120/144Hz. Does not support 4K120Hz/144Hz. Output supports up to 2K30Hz.
- 【Plug and Play】No driver or external power supply required, true PnP. Once plugged in, the device is identified automatically as a webcam. Detect input and adjust output automatically. Won't occupy CPU, optional audio capture. No freeze with correct setting.
- 【Compatible with Multiple Systems】suitable for Windows and Mac OS. High speed USB 3.0 technology and superior low latency technology makes it easier for you to transmit live streaming to Twitch, Youtube, Facebook, Twitter, OBS, Potplayer and VLC.
- 【HDMI LOOP-OUT】Based on the high-speed USB 3.0 technology, it can capture one single channel HD HDMI video signal. There is no delay when you are playing game live.
- 【Support Mic-in for Commentary】Rybozen capture card has microphone input and you can use it to add external commentary when playing a game. Please note: it only accepts 3.5mm TRS standard microphone headset.
“cannot open display” or a blank image
The process may be outside the graphical session, connected to the wrong display, or blocked by the display server. Run it from the active desktop session and check the relevant session environment. On Wayland, use a compositor-supported capture tool instead of an X11-only workflow.
grim reports compositor or protocol errors
Confirm that you are actually running Wayland, that the compositor supports the protocol grim needs, and that your installed grim build matches the compositor. Check current project status because the original GitHub repository is archived.
slurp selection fails
Install both utilities and test slurp alone. If no selection rectangle appears, the compositor may not support the required layer-shell behavior, or the command may be running outside the graphical session.
The Windows URI opens nothing
Check the Windows version and Snipping Tool availability, and ensure the URI contains exactly one valid mode parameter. The documented URI launches an overlay; it does not provide a path to an output file.
The file exists but is empty or incomplete
Check disk permissions and free space, then inspect the command’s exit status. In pipelines, preserve failures with shell error handling so a downstream command cannot hide a capture error.
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →For website screenshots, a browser capture API is usually more dependable
Desktop commands capture the screen attached to your session. They do not give you a clean, repeatable rendering of a remote website, and they require a display server. For that job, ScreenshotNeo is the first service to try: it removes consent banners, newsletter popups, and chat widgets before capture, bills only clean shots, and has the lowest paid plan.
Or skip the browser setup
One GET request returns a PNG, JPEG, WebP, or PDF. The API accepts the target URL and an access key; the examples below save the response locally.
Best Value
- AV TO USB Converter: Capture videos and audios from VHS, VCR, Hi8, DV tapes to a PC, with the help of our USB Video Converter. Save room while digitizing your favorite old memories
- Quality Capture Card: Our USB Video Capture Card converting anolog RCA composite input into HD 720P USB output and capturing audio without any sound card. Advanced signal processing technology provides you with great precision, colors, resolutions, and details.
- Plug and Play: Automatically install the driver once you hook up this RCA to USB Converter to a PC. No external power is needed. User-friendly and easy to operate
- Wide Compatibility: The Video Capture Card can work with video devices with RCA connector or S-Video connector, such as VHS, VCR, Hi8, camcorder, compatible with Windows and Mac OS. Support video formats like NTSC, PAL, and support brightness, contrast, hue, and saturation control
- Note: The Video Converter is used with acquisition software. We recommend OBS Studio or PotPlayer for Windows, and QuickTime Player for Mac. They can be downloaded for free online. Please operate according to the steps in User Manual or contact us if you have any questions
cURL
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
Python
import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
r.raise_for_status()
open("shot.webp", "wb").write(r.content)
Node.js
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const fs = await import('node:fs/promises');
await fs.writeFile('shot.webp', Buffer.from(await res.arrayBuffer()));
See the ScreenshotNeo documentation for request options. It can load lazy images in full-page captures, target a CSS selector, emulate dark mode and 12 device presets, set any viewport and retina scale, produce PDFs with paper size, margins, landscape mode and page ranges, render HTML/CSS, run custom JavaScript, click before capture, hide selectors, wait for a selector, delay or network idle, block ads, trackers, requests or resource types, send headers, cookies, user agents and Authorization, set timezone and geolocation, use transparent backgrounds, resize images, cache with a chosen TTL, create signed image links, run asynchronous jobs with signed webhooks, capture up to 100 URLs per bulk call, expose usage data, and provide an OpenAPI specification. Parameter names used by other screenshot APIs also work, which eases migration.
Each response reports page and billing status in X-Page-Verdict and X-Billed headers. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing. An MCP server supplies take_screenshot, get_page_info, and capture_pdf tools for Claude, Cursor, and other MCP clients.
| Plan | Allowance | Price |
|---|---|---|
| Free | 1,000 shots/month | $0, no card |
| Starter | 3,000 shots | $5 |
| Growth | 15,000 shots | $15 |
| Pro | 60,000 shots | $39 |
| Scale | 250,000 shots | $99 |
| Business | 1,000,000 shots | $249 |
Yearly billing gives two months free, and every feature is included on every plan. Create a free ScreenshotNeo account to get 1,000 screenshots a month with no card.
Frequently Asked Questions
Can these commands capture a remote website without opening a browser?
No. GNOME, grim, and Snipping Tool capture the local desktop or display session. Use a website screenshot API when the input is a URL and you need server-side rendering.
Which output should I use in a shell pipeline?
Use a named file when another process needs a path. Use grim’s - output when the next command reads image bytes from standard input, such as a clipboard utility.
Why does the same Linux command behave differently on two computers?
Linux screenshot behavior depends on the desktop environment, display server, compositor, installed package version, monitor layout, and whether a graphical session is available.
Quick Recap
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.

