
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
react-diff-image
Advanced tools
Zero-dependency component for multi-modal image comparison and review.
Zero-dependency React component providing different modes for diffing or comparing images. The image format is the same as that generated by jest-image-snapshot
, a three part image with the order old-diff-new. All styles are inline for maximum portability.
split
Drag a handle to view a split of old vs new
blend
Using a native input
slider, fade the new image over the old
pixel-diff
Show the diff image directly
side-by-size
Display both image side-by-size
showOverlay
Generate a magenta overlay to highlight small changes.
showFullSize
By default the component will responsively fit the image into the container size. Set showFullSize
to true
to display the image at its full size.
showDivider
Defaults to true. Shows an orange divider line between the old and new images in split
mode. Set to false
to hide.
hasPadding
Defaults to false. Adds padding around the images with a standard checkerboard pattern. Makes it easier to see the edges of the images.
npm run build
Since ImageDiff
does not include any configuration controls, the demo is a simple showcase of the modes and options.
npm run demo:watch
# another terminal
npm run demo:serve
# open http://localhost:3000
FAQs
Zero-dependency component for multi-modal image comparison and review.
The npm package react-diff-image receives a total of 14 weekly downloads. As such, react-diff-image popularity was classified as not popular.
We found that react-diff-image demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.