Skip to content

Repository files navigation

Ssimulacra2.NET

Nuget downloads Nuget GitHub Actions Workflow Status License: MIT

A .NET C# Wrapper for our fork of the Ssimulacra2 tool by Jon Sneyers (Cloudinary).

Requirements

Linux

On Linux, this package requires some system packages, these can usually be installed with:

sudo apt-get install libhwy-dev liblcms2-dev libjpeg-turbo8-dev libpng-dev libjpeg-dev zlib1g-dev libgif-dev

For commentary on this see this issue.

Windows

None.

Using

  1. Install the package from Nuget
  2. Check our Test Project, for some easy to use samples.

[DataRow("carrots.png")]
[DataRow("apples.png")]
[DataRow("bananas.png")]
[TestMethod]
public void TestIdentical(string file)
{
var bytes = SnapshotUtilities.Load(file);
var score = Ssimulacra2.ComputeFromMemory(bytes, bytes);
Assert.AreEqual(100, score, "Identical images must have max score");
}

Status

WIP. See the issue list.

About

A .NET C# Wrapper for the [Ssimulacra2](https://github.com/cloudinary/ssimulacra2) tool by Jon Sneyers (Cloudinary)

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages