Skip to content

v2.0.0

Compare
Choose a tag to compare
@dmtrKovalenko dmtrKovalenko released this 27 Jan 14:17
· 71 commits to main since this release

Yeah, the new major release right after the first one.

This release fixes most of all the problems that were found in the first release. And introduces significant speedup 🚀. It is ~4 times faster than odiff v1 😱

Command Mean [s] Min [s] Max [s] Relative
time bin/odiff2 www.cypress.io.png www.cypress.io-1.png diff.png 1.159 ± 0.016 1.137 1.190 1.00
time odiff www.cypress.io.png www.cypress.io-1.png diff.png 4.605 ± 0.431 4.094 5.336 3.97 ± 0.38

Here is a list of changes:

Breaking changes

  • --diff-image mode is default now, if you need to get the diff mask you can put the --diff-mask option or pass outputDiffMask: true to the node bindings

Features

  • No more requirement of libpng. It is linked and provided together with the library, so it works out of the box even on Windows
  • Using ourself C bindings to libpng which avoids any data copying and creates significant speed up.
  • Support of .tiff and .xpm formats using appropriate C format libs