Skip to content

Releases: gemini-testing/looks-same

v10.0.0-rc.0

07 Mar 09:29
Compare
Choose a tag to compare
v10.0.0-rc.0 Pre-release
Pre-release

💣 Breaking changes

  • node versions less than 18.7.0 are no longer supported

💬 Common

  • update sharp to 0.33.2 which install libvips from npm and not from gh (more info here). Moreover new version weighs 1.1Mb vs 27Mb (previous version).
  • this version available by npm i hermione@next

v9.0.0

31 Oct 13:47
Compare
Choose a tag to compare

💣 Breaking changes

  • node versions less than 18.0.0 are no longer supported

🐛 Bug fixes

v8.2.4

11 Oct 13:33
Compare
Choose a tag to compare

🐛 Bug fixes

  • diffClusters with createDiffImage: true now returns array of diffArea if shouldCluster: false

v8.2.3

27 Sep 08:19
Compare
Choose a tag to compare

🐛 Bug fixes

out of bounds with createDiffImage: true

v8.2.2

25 Sep 10:10
Compare
Choose a tag to compare

🐛 Bug fixes

fix typings for looksSame with createDiffImage: true

v8.2.0

25 Sep 10:08
Compare
Choose a tag to compare

🚀 Improvements:

Add an ability to calculate image difference and image equality simultaneously

If you need both co compare images and create diff image, you can pass option createDiffImage: true,
it would work faster than two separate function calls:

const {
    equal,
    diffImage,
    differentPixels,
    totalPixels,
    diffBounds,
    diffClusters
} = await looksSame('image1.png', 'image2.png', {createDiffImage: true});

if (!equal) {
    await diffImage.save('diffImage.png');
}

v8.1.0

21 Nov 09:53
Compare
Choose a tag to compare

🚀 Improvements:

  • looks-same now supports the following image formats: heic, heif, avif, jpeg, jpg, png, raw, tiff, tif, webp, gif, jp2, jpx, j2k, j2c

  • If you want to build diff image as jpeg buffer, you can do:

    await looksSame.createDiff({
        reference: '/path/to/reference/image.png',
        current: '/path/to/current/image.png',
        extension: 'jpeg',
    });

v8.0.0

20 Oct 09:40
Compare
Choose a tag to compare

💣 Breaking changes

  • drop support of node versions less than 12
  • drop old node-style callback interface support

How it used before:

looksSame('image1.png', 'image2.png', function(error, {equal}) {
    // ...
});

How it use now:

const {equal} = await looksSame('image1.png', 'image2.png');

v4.0.0

11 Sep 06:46
Compare
Choose a tag to compare
  • Update nodejs to 6 version
  • Add ability to make ignore antialiasing less strict

v3.2.0

18 Jan 07:02
Compare
Choose a tag to compare
  • Add ability to ignore caret when it is crossing with text