October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk5 min

How to Compare Web Page Screenshots with ImageMagick

Use ImageMagick’s compare command to create a visual difference image or report a metric. Learn how to prepare screenshots, choose a metric, and interpret the result.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use ImageMagick’s compare command to generate a visual difference image, report a numeric metric, or do both. First make sure the two screenshots show the same page state at the same size; then choose a metric that matches what you want to measure.

Compare two screenshots and save a difference image

ImageMagick compares the images pixel by pixel, starting from their page offsets (typically the top-left). In this command, reference.png is the baseline and current.png is the newer capture:

As an Amazon Associate I earn from qualifying purchases.

magick compare reference.png current.png difference.png

Open difference.png to inspect the changed regions. The compare command creates a visual annotation of the differences. See the official compare documentation.

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

Save the image and report a metric

Choose a metric with -metric to print a numeric result as well as save the annotated image:

#1 Best Overall
Philips 24 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 241V8LB
  • 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
magick compare -metric AE reference.png current.png difference.png

The metric is written to the command’s output. Its meaning depends on the metric you select; it is not a universal pass/fail score.

Report only a metric

Use null: as the output when you do not need a saved difference image:

magick compare -metric RMSE reference.png current.png null:

ImageMagick documents the command-line tools and the compare command.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Philips 22 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 221V8LB
  • 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

Make the screenshots comparable before running the command

ImageMagick compares the files it receives; it does not make their browser captures equivalent. Capture both pages with the same viewport width and height, browser zoom, device scale, scroll position, and page state. Allow fonts, images, animations, and asynchronously loaded content to settle before capturing.

  • Confirm both screenshots show the intended URL, content, and state.
  • Check that neither capture has a different scroll position or browser zoom.
  • Wait for delayed assets and dynamic content to finish loading, or capture again if they have not.
  • Compare image dimensions before interpreting a large difference count.

When dimensions differ, ImageMagick aligns the smaller image with the larger; unmatched areas can be treated as virtual pixels and affect the result. For visual regression checks, matching dimensions is usually easier to interpret. The defines reference documents compare:virtual-pixels, which can limit comparison to authentic pixels:

magick compare -define compare:virtual-pixels=false reference.png current.png difference.png

Choose a metric that answers your question

ImageMagick offers metrics that measure different properties. Pick one based on whether you care about the number of pixels crossing a tolerance, the magnitude of color errors, or structural similarity. The options and metrics reference and compare documentation describe the available metrics.

Rank #3
Dell 24 Monitor - SE2426H - 23.8-inch FHD (1920x1080) 144Hz 1ms Display, in-Plane Switching (IPS) Technology, AMD FreeSync™, TÜV 3-Star 2X HDMI, Tilt
  • 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.
Metric What it tells you Useful when
AE (Absolute Error) Count of differing pixels; affected by -fuzz. You want to count pixels that differ under the selected tolerance.
PDC Count of pixels that differ; affected by -fuzz. You need a differing-pixel count and have chosen a suitable tolerance.
MAE Average absolute channel error, normalized. You want an average error measure across the image.
RMSE Root mean squared difference, normalized. You want an overall error measure that gives larger errors more influence.
SSIM / DSSIM Structural similarity / structural dissimilarity measures. You want a structural or perceptual summary rather than an exact count of unequal pixels.
NCC Normalized cross-correlation; ImageMagick describes similarity as corresponding to 1. You use cross-correlation and account for its different direction: higher similarity, rather than zero difference, is the relevant interpretation.

An average error can understate a severe but small localized change. A structural metric does not answer exactly the same question as a pixel count. State the metric and its meaning when reporting a result, and do not treat any one threshold as universally meaningful.

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

Ignore small color differences with fuzz

The -fuzz option makes colors within a specified distance count as equal for relevant comparisons. For example, this counts differing pixels while allowing a 5% fuzz tolerance:

magick compare -metric AE -fuzz 5% reference.png current.png difference.png

ImageMagick’s comparison examples use fuzz to discount minor changes, such as artifacts from lossy JPEG encoding. A fuzz percentage is not a universal tolerance for browser-rendering variation. Tune it for your inputs and inspect the output: a tolerance that hides harmless noise can also conceal a meaningful small change. See the ImageMagick comparison usage guide and options reference.

Rank #4
Sale
Samsung 27" Essential S3 (S36GD) Series FHD 1800R Curved Computer Monitor | 100Hz, Game Mode, Advanced Eye Comfort, HDMI and D-sub Ports (LS27D366GANXZA)
  • 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
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Make changed regions easier to inspect

The annotated output is useful for locating changes, but small differences may be visually subtle. Set the colors used for highlighted differences and unchanged regions with -highlight-color and -lowlight-color:

magick compare -highlight-color red -lowlight-color white reference.png current.png difference.png

For a different view, the ImageMagick Difference composition subtracts the darker input color from the lighter, producing black where colors match. The usage guide demonstrates normalizing a difference image to make low-level changes easier to see. A blend can make small changes more visible, but does not replace a metric or explain whether the difference matters.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
magick composite -compose difference reference.png current.png difference-blend.png

See the composition-method reference and comparison usage guide.

Best Value
Sale
Sceptre New 22-Inch Gaming Monitor, FHD 1080p, Up to 144Hz, HDMI, DisplayPort, Built-in Speakers, Machine Black (E225W-FW144 Series, 2026)
  • 【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.

Interpret and report the result

  1. Verify that both files represent the intended page state and viewport.
  2. Check image dimensions and page alignment before treating the metric as evidence of a layout change.
  3. Inspect the visual difference to distinguish a broad shift from small pixel noise.
  4. Report the metric by name and explain what it measures.
  5. If you used -fuzz, record the value and check whether it hides changes you consider important.
  6. Repeat the captures if fonts, animations, dynamic content, or delayed assets made the inputs inconsistent.

Troubleshooting common comparison problems

The difference image shows changes everywhere

First check dimensions, alignment, scroll position, zoom, and page state. Different font loading, animation frames, or dynamic content can also make captures diverge. Correct the capture conditions and rerun the comparison before raising fuzz.

The metric is high even though the page looks similar

A pixel-level count can react to many small color changes. Inspect the annotated image, then decide whether a measured tolerance is appropriate. Record the metric and fuzz setting rather than presenting the number without context.

A small but important change is hard to see

Use a more visible highlight color or create a Difference composition, then normalize the difference image as shown in ImageMagick’s comparison guide. Do not assume a low average error rules out a localized defect.

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

The files have different dimensions

Prefer recapturing them at matching dimensions. If you need to compare only authentic pixels, try -define compare:virtual-pixels=false; unmatched regions otherwise can affect the comparison.

Or skip the browser setup

If you need consistent screenshot files to compare, ScreenshotNeo returns a screenshot or PDF from one GET request. After capturing the two page states, you can use the ImageMagick commands above to inspect their differences.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo API documentation for request options. Cookie banners are accepted and 60+ known consent platforms, newsletter popups, and chat widgets are removed before the shot; each step can be turned off. Bot checks/CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and response headers report page verdict and billing status. AI agents can use its MCP server, with tools including take_screenshot, get_page_info, and capture_pdf. The Free plan includes 1,000 shots a month with no card; paid plans start at $5 for 3,000 shots. Sign up for free.

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
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

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.