
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
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 1 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
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.