Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.
The quickest way to crop a screenshot on Linux depends on whether you are capturing now or editing an existing image. On KDE Plasma, open Spectacle and choose Rectangular Region. On GNOME, choose the Screenshot tool’s user-defined area. On any desktop, Flameshot lets you drag a region and annotate it. If the image is already saved, use ImageMagick: magick input.png -crop 800x600+100+80 +repage output.png. The geometry means width × height + horizontal offset + vertical offset.
Choose the right cropping method
Use a region capture when you know what belongs in the screenshot and do not want a full-screen file created first. Use ImageMagick when the source file already exists, exact pixel dimensions matter, or the same crop must be repeated across many images.
| Situation | Best choice | Why |
|---|---|---|
| Fast, visual selection | KDE Spectacle, GNOME Screenshot, or Flameshot | Drag a rectangle while viewing the screen. |
| Annotations before saving | Flameshot | Its editor can mark up, copy, and save the selected region. |
| Exact or repeatable coordinates | ImageMagick | WIDTHxHEIGHT+X+Y is deterministic. |
| Wayland session | Desktop-native or portal-aware capture, then ImageMagick | Native capture paths generally have the permissions required by Wayland. |
Capture and crop a new screenshot
KDE Plasma: Spectacle
- Open Spectacle from the application launcher.
- Select Rectangular Region.
- Drag around the content to retain. You can move the rectangle with the arrow keys, use Shift for fine movement, and use Alt with the arrow keys to resize it.
- Press Enter or double-click to capture the region.
- Save the result in the format you need. Spectacle also provides full-screen, monitor, active-window, and window-under-cursor modes when a rectangle is not appropriate.
This approach crops during capture, so an unwanted full-screen image is not written first. If the edges are difficult to align, drag a slightly larger box and use ImageMagick for the final pixel-level crop.
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 →GNOME: Screenshot’s user-defined area
- Open the Screenshot utility from the application overview, or use your desktop’s Screenshot/Print Screen entry.
- Choose the option for a user-defined area rather than the whole screen or a single window.
- Drag from one corner of the desired area to the opposite corner.
- Confirm the selection and save the image file.
Some distributions also ship the gnome-screenshot command. Where it is installed, a selection capture can be saved with:
#1 Best Overall
- Intel Core i5-1335U Processor (12M Cache, 12 Threads, up to 4.6 GHz) - 256GB Solid State Drive - 16GB DDR4 SDRAM
- 15.6" FHD (1920x1080) Non-Touch Anti-Glare Display - Intel UHD 620 Integrated Graphics - Stereo Speakers
- 720p HD Webcam with Privacy Shutter. Integrated Microphone - Intel Dual Band Wireless-AC (2x2) 8265, Bluetooth Version 4.2
- I/O Ports: 2x USB 3.0, 1x USB 3.1 Type-C 3.1, Headphone/Mic Combo Port, 4-in-1 Card Reader, HDMI, Kensington Mini-Lock Slot
- Linux Mint (Cinnamon) 64-Bit - Keyboard with Full NumberPad - Fast Charging
gnome-screenshot -a -f "$HOME/Pictures/region.png"
The command and its available switches depend on the GNOME package supplied by your distribution. If it is unavailable, use the graphical Screenshot utility or the desktop’s built-in Print Screen workflow.
Any desktop: Flameshot
- Start the selector with
flameshot gui, or launch Flameshot from the application menu. - Drag over the part of the screen you want.
- Use the on-screen editor to add arrows, boxes, text, or other annotations.
- Copy the result, save it, or cancel and draw a different rectangle.
Hold Ctrl while dragging to preserve the aspect ratio. Hold Shift while resizing to mirror the resize on the opposite handle. These modifiers are useful for consistent thumbnails or social-media dimensions.
Wayland and display scaling
Wayland restricts arbitrary screen-reading more than X11. Prefer the capture path supplied by GNOME, KDE, or the desktop portal instead of forcing an X11-only utility. Flameshot documents GNOME and KDE portal backends; if a capture is black, empty, or permission-denied, use the native desktop Screenshot/Spectacle workflow first.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
On a HiDPI display, the rectangle you see may be expressed in logical coordinates while the saved image uses physical pixels. Check the actual output dimensions before writing a fixed ImageMagick crop. A crop that is exactly right on a 100% scaled monitor may be twice as large or small on a 200% scaled setup.
Crop an existing screenshot with ImageMagick
ImageMagick’s crop geometry is:
WIDTHxHEIGHT+X+Y
WIDTHis the retained width in pixels.HEIGHTis the retained height in pixels.Xis the distance from the original image’s left edge to the crop’s left edge.Yis the distance from the original image’s top edge to the crop’s top edge.
For example, this keeps an 800-by-600 rectangle beginning 100 pixels from the left and 80 pixels from the top:
Rank #2
- Intel Core i5-10210U (up to 4.2GHz) - 1TB PCIe NVMe + 1TB HDD - 32GB DDR4 SDRAM
- 17.3" HD+ (1600x900) Display, Intel UHD Graphics 620
- Built in HD 720p Webcam with Microphone - Bluetooth Version4.2
- I/O Ports: 2x USB 3.1 (Data Only), 1x USB 2.0, 1x HDMI, 1x Headphone/Microphone Combo Jack
- Linux Mint Cinnamon 64-Bit - 6-Row Keyboard w/ Full Numberpad
magick input.png -crop 800x600+100+80 +repage output.png
+repage clears the original virtual-canvas offset. Without it, the visible pixels may look correct while later operations, compositing, or viewers still treat the image as having an offset canvas.
Install ImageMagick
Install the package from your distribution’s repositories if the magick command is missing. Typical package commands are:
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 reinstall# Debian or Ubuntu
sudo apt install imagemagick
# Fedora
sudo dnf install ImageMagick
# Arch Linux
sudo pacman -S imagemagick
Package names and repository versions can vary. Verify the installation with:
magick -version
Find the source dimensions
Before choosing coordinates, inspect the image:
magick identify input.png
magick identify -format '%wx%hn' input.png
The second form prints only width and height, which is convenient in scripts. Ensure that X + WIDTH does not exceed the source width and that Y + HEIGHT does not exceed the source height. If the crop extends beyond the image, ImageMagick may produce a smaller result or add an unexpected area depending on the operation and image settings.
Preserve transparency and choose an output format
PNG is usually the safest output for interface screenshots, text, and transparency. JPEG can be smaller for photographic content but introduces lossy compression around sharp text. WebP is useful when your publishing system accepts it. Cropping itself does not resample pixels; changing the format or adding a resize operation is what affects quality.
Rank #3
- [ULTRA-RUGGED DESIGN] MIL-STD-810G and IP65 certified. Built to survive 6-foot drops, heavy rain, and extreme vibrations. Features a magnesium alloy chassis with an integrated carry handle for maximum portability
- [4G LTE - WORK ANYWHERE] Integrated 4G LTE Multi-Carrier Mobile Broadband. Stay connected to the internet in remote areas or on the road without relying on Wi-Fi or phone hotspots. True mobile freedom for field professionals
- [1200-NIT SUNLIGHT READABLE] 13.1" XGA Touchscreen with CircuLumin technology. At 1200 nits, it is nearly 4x brighter than a standard laptop, ensuring perfect visibility under direct, intense sunlight
- [LINUX UBUNTU PRE-INSTALLED] Fast, secure, and bloatware-free. Optimized for developers, network engineers, and diagnostic software that thrives in a stable, open-source environment
- [LEGACY SERIAL PORT] Features a native RS-232 Serial Port, HDMI, and USB 3.0. Essential for connecting directly to industrial machinery, CNCs, and automotive diagnostic tools without unreliable adapter
# Keep transparency in a PNG
magick input.png -crop 1200x900+40+120 +repage cropped.png
# Write a WebP copy
magick input.png -crop 1200x900+40+120 +repage cropped.webp
Repeat the same crop or process a batch
For a repeatable job, keep the geometry in variables and quote filenames so spaces do not break the command:
#!/usr/bin/env bash
set -euo pipefail
src='input.png'
dst='output.png'
geometry='800x600+100+80'
magick "$src" -crop "$geometry" +repage "$dst"
ImageMagick also supports numbered output for a pattern of input files. This example applies a 120-by-120 crop at position 10,5 to every matching JPEG:
magick '*.jpg' -crop 120x120+10+5 +repage thumbnail%03d.png
The output names become thumbnail000.png, thumbnail001.png, and so on. Test the geometry on one file first, because a fixed coordinate describes pixels, not semantic content; browser windows or app chrome may be in different positions between screenshots.
Measure coordinates reliably
When the crop must line up with a design specification, record the source dimensions and the rectangle separately. For example, if the source is 2560×1440 and the retained area starts at (320,180) with size 1280×720, use:
magick source.png -crop 1280x720+320+180 +repage result.png
Keep the origin convention straight: ImageMagick starts at the top-left, with positive X moving right and positive Y moving down. Do not enter screen coordinates from a second monitor unless the screenshot actually includes that monitor; the image’s own top-left corner is always coordinate 0,0.
Rank #4
- THE POWER TO STAY PRODUCTIVE – Looking to make your everyday work and home life more manageable without breaking the bank? The Lenovo V15 Gen 4 offers long-term reliability with top-of-the-line features to make you your most productive self.
- CRUSH YOUR TO-DO LIST – The AMD Ryzen CPU pairs quiet performance and enhanced operating power to crush your high-demand workday. It optimizes performance and allows for seamless multitasking.
- TRUE-TO-LIFE VISUALS – The 15.6” FHD IPS display is anti-glare with 300 nits brightness to see your best outside or in. Its 88% screen-to-body ratio makes viewing detailed applications like spreadsheets a breeze.
- SEAMLESS COLLABORATION – Lenovo Smart Appearance enhances your camera effects to protect your privacy and to make you the focus of every video conference. Intelligent noise cancelation minimizes distraction and Dolby Audio provides an elegantly sonorous experience.
- BUILT TO WITHSTAND – Built for military-grade toughness, the V15 Gen 4 is tested to withstand harsh temperatures, pressure, humidity, vibrations and more. Keep your work safe from the board room to your living room and everywhere in between.
Troubleshoot common failures
“magick: command not found”
ImageMagick is not installed or its executable is not on PATH. Install the package for your distribution, open a new terminal, and run magick -version again. Older installations may provide convert, but the magick command is the clearer choice for current scripts.
The result has the wrong position in later operations
Add +repage immediately after -crop. The pixels can appear correct while the virtual canvas retains the source offset; clearing that metadata makes the cropped image start at its own 0,0.
The crop is shifted or too small
Check the source dimensions with identify, then recalculate X, Y, width, and height from the image—not from the monitor’s coordinate system. Display scaling, browser zoom, and window decorations can all make a visual estimate differ from image pixels.
The capture is black on Wayland
Use GNOME Screenshot, Spectacle, or a portal-aware Flameshot backend and grant the requested screen-capture permission. ImageMagick can crop an image file, but it is not a replacement for a compositor-approved Wayland capture.
Text looks soft after cropping
A crop alone does not blur pixels. Check whether the original capture was made at a low scale, whether a resize was applied elsewhere, or whether the image was converted to JPEG. Keep the original PNG and crop it without a resize when sharp text matters.
Best Value
- Powerful Linux Laptop: This IdeaPad Slim 3 Laptop comes pre-installed with Ubuntu Linux, offering fast performance, robust security, and a clean, user-friendly experience. Enjoy full customization, seamless hardware compatibility, and access to thousands of open-source apps. Whether you're working, creating, or coding, it's built to keep up with everything you do.
- A Multitasking Master: The latest AMD Ryzen 7 5825U processor (up to 4.5 GHz) delivers powerful performance with 8 cores and 16 threads for smooth multitasking. Integrated AMD Radeon Graphics provide crisp visuals for streaming, browsing, photo editing, and casual gaming. With smart machine intelligence, it adapts to your needs for a fast, responsive experience.
- 15.6" Full HD Display: The IdeaPad Slim 3 boasts an 88% screen-to-body ratio for a floating, edge-to-edge visual experience. TÜV Low Blue Light certification reduces eye strain, making it perfect for long work or study sessions.
- Military-Grade Durability: The smart IdeaPad Slim 3 combines portability and durability, letting you work, study, and play on the go. With a profile 10% slimmer than the previous generation, it's lightweight yet military-grade rugged, ready for anything, anywhere.
- Versatile Connectivity: Enjoy the security of a built-in webcam with a privacy shutter. Connect effortlessly with multiple ports: 2x USB A, 1x USB C, 1x HDMI, 1x SD Card Reader, 1x Headphone/Microphone combo. Bundle comes with Stylus Pen, 256GB Portable SSD and 5-in-1 Docking Station.
The command overwrote the source
Write to a different output path, as in output.png. For safety in scripts, refuse to overwrite an existing file:
test ! -e output.png || { echo 'output.png already exists' >&2; exit 1; }
magick input.png -crop 800x600+100+80 +repage output.png
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Or skip the browser setup
If the screenshot you need is a web page rather than your local desktop, ScreenshotNeo captures the URL through a single request. It is useful when you want a repeatable remote page capture and then plan to crop or resize the returned image locally. The service accepts full-page captures, lazy-loaded images, CSS-selector element captures, custom viewports and device presets, dark mode, retina scale, custom CSS or JavaScript, click-before-capture actions, hidden selectors, waits, blocked resource types, cookies, headers, user agents, timezone, geolocation, transparent backgrounds, resizing, caching, signed links, asynchronous jobs, webhooks, bulk capture, and PDF output. Its MCP server provides take_screenshot, get_page_info, and capture_pdf for Claude, Cursor, and other MCP clients.
Before each capture it accepts cookie or consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each cleanup step can be disabled. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers identify the page verdict and billing status.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →See the ScreenshotNeo API documentation for authentication and options. The 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
Python:
import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
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}`);
ScreenshotNeo’s free plan includes 1,000 shots per month with no card. Paid plans start at $5 for 3,000 shots; the other listed plans are Growth ($15/15,000), Pro ($39/60,000), Scale ($99/250,000), and Business ($249/1,000,000). Yearly billing gives two months free, and every feature is available on every plan. Sign up free for ScreenshotNeo.
Which workflow should you use?
- Choose Spectacle or GNOME Screenshot when you need one clean region immediately.
- Choose Flameshot when annotation, copying, and saving are part of the same action.
- Choose ImageMagick when coordinates, dimensions, batch processing, or reproducibility matter.
- On Wayland, capture through the desktop or its portal first, then use ImageMagick for deterministic post-cropping.
- For a remote web page, use ScreenshotNeo to obtain the source image, then apply the same ImageMagick geometry locally if you need a fixed crop.
Frequently Asked Questions
Can I crop without changing the screenshot’s pixel density?
Yes. ImageMagick’s -crop keeps the selected pixels; avoid adding a resize operation if you want the original pixel density.
Why does the same crop not fit every screenshot?
A fixed geometry is tied to pixel coordinates. Changes in window position, browser zoom, display scaling, or page layout move the content even when the nominal screen size is unchanged.
Should I keep the uncropped original?
Yes. Retaining the original PNG lets you correct coordinates, create alternate crops, and verify that no required context was removed.
The Bottom Line
For a new capture, select a rectangular region in Spectacle, GNOME Screenshot, or Flameshot. For an existing file or a repeatable workflow, use ImageMagick’s WIDTHxHEIGHT+X+Y geometry followed by +repage.
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.

