Skip to main content

Image Comparison

Compare two images using fade, slider, and diff modes. Includes zoom, alignment controls, image info, and keyboard shortcuts.

Starting a Comparison

  1. Select exactly two image clips using the checkboxes
  2. The Compare button appears in the bulk action bar
  3. Click Compare to open the comparison modal with both images loaded

Image comparison

Comparison Modes

Fade Mode

Transition between two images with opacity control.

How it works:

  • A slider controls the blend between images
  • 0% = First image only
  • 100% = Second image only
  • Any position in between = Blended view

Best for:

  • Subtle color changes
  • Overall composition differences
  • A/B testing designs

Slider Mode

A vertical divider reveals each image on its respective side.

How it works:

  • Drag the vertical divider left or right
  • Left side shows the first image, right side shows the second
  • Click anywhere in the comparison area to reposition the divider (not just the handle)
  • The position slider below also controls the divider
  • Touch drag is supported

Best for:

  • Pixel-perfect comparisons
  • Spotting specific differences
  • Before/after views

Diff Mode

Shows pixel-level differences between the two images.

How it works:

  • Pixels that differ are highlighted; identical pixels are dimmed
  • A threshold slider (1--100) controls sensitivity -- lower values catch smaller differences
  • A similarity percentage score is displayed, showing how closely the images match
  • The default threshold is 30 when switching to Diff mode via keyboard shortcut

Best for:

  • Finding subtle changes between revisions
  • Verifying that two images are identical
  • QA and regression testing of visual output
note

Diff images are cached per threshold value during a comparison session. Changing the threshold triggers a new backend computation, but returning to a previously used threshold value loads instantly from cache.

Controls

Swap

Click the Swap button (or press S) to swap the two comparison images. The first image becomes the second and vice versa.

Image Info

Displays dimensions, file size, and content type for both images in the comparison header. A warning indicator appears when the two images have different dimensions.

Zoom

ControlAction
Zoom In buttonMultiply zoom by 1.2x (max 500%)
Zoom Out buttonDivide zoom by 1.2x (min 10%)
Fit buttonFit images to viewport (capped at 100%)

The current zoom level is displayed as a percentage. Zoom is applied via CSS transform.

Alignment

Position the images within the comparison viewport:

  • Horizontal: Left, Center, or Right
  • Vertical: Top, Middle, or Bottom

Stretch

When images have different sizes:

  • Off: Images display at natural size with object-fit: contain
  • On: Images are stretched to 100% of the container width and height with object-fit: fill
Comparing Different-Sized Images

Enable Stretch mode when comparing images of different dimensions. This aligns them spatially for easier comparison.

Use Cases

Design Review

  1. Export two versions of a design
  2. Import both into mahpastes
  3. Compare to review changes
  4. Use slider mode to check alignment

Bug Verification

  1. Screenshot before the fix
  2. Screenshot after the fix
  3. Compare to verify the bug is resolved
  4. Use fade mode to highlight the change

Photo Editing

  1. Original photo
  2. Edited version
  3. Compare to judge the edit quality
  4. Zoom in to check details

A/B Testing Designs

  1. Variant A screenshot
  2. Variant B screenshot
  3. Switch between with fade mode
  4. Present to stakeholders

Keyboard Shortcuts

ShortcutAction
1Fade Mode
2Slider Mode
3Diff Mode
SSwap Images
+ / =Zoom In
-Zoom Out
0Fit to Viewport
/ Adjust fade/slider/diff range
EscClose Comparison

Tips

Getting the Best Comparison

  • Same dimensions: Crop images to the same size before importing
  • Same position: Screenshot the same area for accurate comparison
  • High zoom: Check fine details at high zoom levels
  • All three modes: Use fade for overview, slider for spatial inspection, diff for pixel-level analysis

Common Workflow

  1. Take screenshots of both states
  2. Paste into mahpastes
  3. Select both, click Compare
  4. Start with fade mode to see overall changes
  5. Switch to slider mode for precise inspection
  6. Use diff mode to find subtle pixel differences
  7. Zoom into areas of interest
  8. Close when done

Defaults

  • Mode: Fade
  • Slider/opacity position: 50% (Diff mode defaults threshold to 30)
  • Alignment: Center / Middle
  • Stretch: Off

Closing

Close the comparison modal by clicking the X button, clicking outside the comparison area, or pressing Esc.

Limitations

  • Only two images can be compared at once
  • Slider mode has a vertical divider only (no horizontal split)
  • Very large images may affect performance