The most reliable first step is to capture only the pixels your program needs: pass the smallest correct bbox=(left, top, right, bottom) to ImageGrab.grab(). Pillow documents that leaving bbox unset copies the entire screen. A smaller image reduces the pixels your program must hold and process, but Pillow does not promise a fixed capture-time speedup, so benchmark on the operating system and display setup that matters.
What actually makes ImageGrab.grab() slow?
A screenshot loop has several different costs that are easy to confuse:
- Acquisition: the operating-system backend obtains screen pixels.
- Image handling: Pillow creates an image object and your code may convert it to NumPy, compare frames, or resize it.
- Output: encoding PNG/JPEG, writing to disk, or sending bytes over a network.
Time these stages separately. Otherwise, a slow PNG save or array conversion can be blamed on grab(). Pillow’s implementation also matters: on Windows, the current source obtains screen data and then applies bbox cropping in Python. Therefore, a bounding box is unquestionably useful for reducing the returned image and downstream work, but it is not proof that the underlying Windows screen read becomes proportionally cheaper.
Record the OS, Pillow version, display resolution, monitor count, and (on Linux) the display/session type before comparing results. Use the same workload for every test.
#1 Best Overall
- 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
Start with the smallest correct bounding box
The coordinates are (left, top, right, bottom), with the right and bottom edges excluded in the usual Pillow image-coordinate convention. This example captures a 500-by-300 region instead of the complete desktop:
from PIL import ImageGrab
box = (100, 80, 600, 380)
image = ImageGrab.grab(bbox=box)
print(image.size) # (500, 300)
image.save("region.png")
Calculate the box from the actual window or control you need rather than guessing a generous rectangle. Keep coordinates within the desktop space used by your platform, especially when monitors are arranged left or above the primary display and therefore have negative virtual coordinates.
Capture a changing region, not a fixed full desktop
If a window moves, refresh its position before each capture (using the window-management library appropriate to your application) and build a new box. If only a status area changes, capture that smaller area and leave static regions out of the loop. Smaller dimensions also make comparisons, OCR, computer-vision operations, and memory transfers cheaper.
Measure the end-to-end effect
from time import perf_counter
from PIL import ImageGrab
boxes = {
"full": None,
"region": (100, 80, 600, 380),
}
for name, box in boxes.items():
start = perf_counter()
for _ in range(30):
frame = ImageGrab.grab(bbox=box)
elapsed = perf_counter() - start
print(name, "seconds:", elapsed, "last size:", frame.size)
# Time downstream work independently.
start = perf_counter()
frame = ImageGrab.grab(bbox=boxes["region"])
grab_time = perf_counter() - start
start = perf_counter()
frame = frame.resize((250, 150))
resize_time = perf_counter() - start
print({"grab": grab_time, "resize": resize_time})
Run several batches and compare both elapsed time and image dimensions. A one-off result can be distorted by compositor activity, CPU frequency changes, or a background process.
Recommended Free Tools
Platform-specific settings that affect pixels and backends
macOS Retina displays
On a Retina display, a full-screen capture is 2× in each dimension by default. scale_down=True requests 1× output:
Rank #2
- 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
from PIL import ImageGrab
frame = ImageGrab.grab(bbox=(0, 0, 800, 600), scale_down=True)
print(frame.size)
This documents the output scale, not a guaranteed faster native capture. Test it only when 1× pixels are sufficient for your recognition, OCR, or visual-diff task. The scale_down argument was added in Pillow 12.3.0. Window capture support arrived for macOS in Pillow 12.1.0; current documentation accepts a macOS CGWindowID through window.
Windows
Current Pillow documentation supports a window parameter for a Windows HWND. Use it when you need one window and can obtain its handle:
from PIL import ImageGrab
hwnd = 123456 # replace with the target window's HWND
frame = ImageGrab.grab(window=hwnd)
Window targeting does not come with a documented performance guarantee. Do not enable all_screens=True unless the application really needs every monitor. Likewise, leave include_layered_windows=True off unless layered windows are required. Establish any benefit with a controlled benchmark; these options can increase the amount of desktop content involved.
Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Linux and screenshot fallbacks
When the default X11 capture does not return a snapshot, Pillow may invoke an installed gnome-screenshot, grim, or spectacle utility. Check whether the XCB feature is available:
from PIL import features
print(features.check_feature("xcb"))
Passing xdisplay="" disables Pillow’s external-utility fallback:
Rank #3
- 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.
from PIL import ImageGrab
frame = ImageGrab.grab(bbox=(0, 0, 800, 600), xdisplay="")
Use that setting only when direct X11 capture is appropriate. On Wayland or mixed sessions, the available compositor and portal behavior can differ, so record the session type and compare the normal configuration with the explicitly disabled fallback. If the fallback is the slow step, installing or configuring the correct native utility may help; do not assume that disabling it is universally faster.
See Pillow’s ImageGrab reference for the current argument and platform behavior, the implementation source for details such as Windows cropping, and platform support notes for supported environments.
Free tools Windows power users keep installed
One-click scans. No signup required.
Keep the capture loop lean
Do not save every frame unless you need files
Disk encoding can dominate a loop. Keep the Pillow image in memory for comparisons or processing, and save only events or sampled frames. If files are required, benchmark PNG against JPEG or WebP at the quality your workflow accepts; encoding choices change CPU time, file size, and image fidelity.
Move expensive processing out of the hot path
Convert to an array, run OCR, or perform a large comparison only when a cheap check says the region changed. Reuse buffers in downstream libraries where their APIs permit it, and avoid converting the same frame repeatedly.
Choose a sensible polling interval
A tight infinite loop can consume a CPU core while the screen changes only a few times per second. Sleep for an application-appropriate interval, or trigger captures from an event or timer. The correct interval depends on the interaction you are observing; it is not a Pillow constant.
Rank #4
- 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
Account for multi-monitor geometry
Use the smallest box in virtual-desktop coordinates. Capturing all monitors multiplies pixels and may include displays that never contain the target. Validate the returned size because Retina scaling and backend behavior can change dimensions.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
A diagnostic benchmark you can keep in your project
from time import perf_counter
from statistics import mean
from PIL import ImageGrab
def benchmark(box, samples=20):
times = []
sizes = []
for _ in range(samples):
t0 = perf_counter()
image = ImageGrab.grab(bbox=box)
times.append(perf_counter() - t0)
sizes.append(image.size)
return {
"average_seconds": mean(times),
"min_seconds": min(times),
"max_seconds": max(times),
"size": sizes[-1],
}
print("full:", benchmark(None))
print("region:", benchmark((100, 80, 600, 380)))
Run this while the machine is idle and again under normal application load. Report medians or ranges in your own engineering notes rather than treating one run as a universal ImageGrab speed figure. No official documentation establishes a universal frames-per-second result or a fixed percentage gain from bbox.
Common symptoms and fixes
| Symptom | Likely cause | Action |
|---|---|---|
| Region capture is barely faster than full-screen on Windows | Screen acquisition happens before Python crops the image | Keep the region to reduce memory and downstream work, but benchmark a native or alternative capture API if acquisition itself is the bottleneck. |
| macOS frames are unexpectedly large | Retina 2× output | Test scale_down=True when 1× resolution is acceptable. |
| Linux capture invokes an external command | X11 fallback utility | Check features.check_feature("xcb"); compare normal behavior with xdisplay="" only for a suitable direct-X11 setup. |
| All monitors are included | all_screens=True or an oversized virtual box |
Remove the option and target the required monitor/rectangle. |
| Screenshot timing looks fine but the loop is slow | Array conversion, comparison, encoding, OCR, or I/O | Time each stage separately and defer or reduce downstream work. |
| Window capture returns the wrong content | Incorrect handle/CGWindowID, occlusion, permissions, or unsupported window type | Validate the identifier, test a known visible window, and check platform permissions; fall back to a coordinate box when necessary. |
When to consider another capture API
If a measured benchmark shows that the native screen read—not cropping, conversion, or saving—dominates, compare a platform-native or specialized capture library on the same machine and workload. The Pillow documentation does not establish a universal winner or speed ratio. Keep the comparison controlled: identical region, monitor arrangement, pixel scale, frame count, and post-processing. A faster acquisition path may trade away portability, window semantics, color behavior, or installation simplicity.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Or skip the browser setup
If your goal is a web page image rather than the pixels currently displayed on your desktop, a browser screenshot API avoids launching and automating a local browser. ScreenshotNeo is the first service to try for this use case because it removes common page clutter before capture, bills only clean successful shots, and has the lowest paid plan among its listed tiers.
One GET request returns PNG, JPEG, WebP, or a PDF. The same call can be made from Python:
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Scan for outdated or missing drivers - takes under a minute3Clear out junk files and repair common Windows errorsBest Value
- 【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.
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)
See the ScreenshotNeo documentation for authentication, formats, and the complete option set. The equivalent cURL request is:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
And 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()));
What the service handles
- It accepts cookie/consent banners as a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each step can be disabled.
- Bot checks/CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed. Response headers identify the page verdict and whether the request was billed (
X-Page-VerdictandX-Billed). - An MCP server provides
take_screenshot,get_page_info, andcapture_pdftools for Claude, Cursor, and other MCP clients. - Options include full-page lazy-image loading, CSS-selector element capture, dark mode, 12 device presets or custom viewports, retina scale, PDF paper settings and page ranges, custom CSS/JavaScript, clicks, waits, request blocking, headers/cookies/user agents/Authorization, timezone and geolocation, transparent backgrounds, resizing, chosen-TTL caching, signed image links, asynchronous jobs with signed webhooks, bulk capture of up to 100 URLs per call, a usage API, OpenAPI, and compatible parameter names used by other screenshot APIs.
The free plan includes 1,000 screenshots per month with no card. Paid plans start at $5 for 3,000 shots; yearly billing gives two months free, and every feature is included on every plan. Create a free ScreenshotNeo account to try it without a card.
Frequently Asked Questions
Does bbox always make ImageGrab.grab faster?
No. It always reduces the returned region when chosen correctly, but capture-time savings depend on the platform backend. On Windows, Pillow currently crops after obtaining screen data, so measure the complete workload.
What Pillow version added scale_down?
Pillow 12.3.0 added macOS’s scale_down argument, which requests 1× output on Retina captures.
Can ImageGrab capture a single window?
Current Pillow documentation supports window with a Windows HWND and a macOS CGWindowID. Support does not guarantee a speed improvement, and permissions or window type can affect results.
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.

