Codeuctivity.SkiaSharpCompare 0.0.32-prerelease

This is a prerelease version of Codeuctivity.SkiaSharpCompare.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Codeuctivity.SkiaSharpCompare --version 0.0.32-prerelease                
NuGet\Install-Package Codeuctivity.SkiaSharpCompare -Version 0.0.32-prerelease                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Codeuctivity.SkiaSharpCompare" Version="0.0.32-prerelease" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Codeuctivity.SkiaSharpCompare --version 0.0.32-prerelease                
#r "nuget: Codeuctivity.SkiaSharpCompare, 0.0.32-prerelease"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Codeuctivity.SkiaSharpCompare as a Cake Addin
#addin nuget:?package=Codeuctivity.SkiaSharpCompare&version=0.0.32-prerelease&prerelease

// Install Codeuctivity.SkiaSharpCompare as a Cake Tool
#tool nuget:?package=Codeuctivity.SkiaSharpCompare&version=0.0.32-prerelease&prerelease                

SkiaSharpCompare

Compares images

.NET build and test Nuget Donate

Inspired by the image compare feature "Visual verification API" of TestApi this code supports comparing images by using a tolerance mask image. That tolerance mask image is a valid image by itself and can be manipulated.

SkiaSharpCompare focus on os agnostic support and therefore depends on SkiaSharp.

NOTE: The Alpha-channel is ignored.

Example simple show cases

bool imagesAreEqual = SkiaSharpCompare.ImagesAreEqual("actual.png", "expected.png");

// calcs MeanError, AbsoluteError, PixelErrorCount and PixelErrorPercentage
ICompareResult calcDiff = SkiaSharpCompare.CalcDiff("actual.png", "expected.png");

Example show case allowing some tolerated diff

Imagine two images you want to compare, and want to accept the found difference as at state of allowed difference.

Reference Image

actual image

Actual Image

actual image

Tolerance mask image

using "compare.CalcDiff" you can calc a diff mask from actual and reference image

Example - Create difference image

using (var fileStreamDifferenceMask = File.Create("differenceMask.png"))
using (var maskImage = SkiaSharpCompare.CalcDiffMaskImage(pathPic1, pathPic2))
var encodedData = maskImage.Encode(SKEncodedImageFormat.Png, 100);
encodedData.SaveTo(fileStreamDifferenceMask);

differenceMask.png

Example - Compare two images using the created difference image. Add white pixels to differenceMask.png where you want to allow difference.

var maskedDiff = SkiaSharpCompare.CalcDiff(pathPic1, pathPic2, "differenceMask.png");
Assert.That(maskedDiff.AbsoluteError, Is.EqualTo(0));
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.143 0 11/12/2024
2.0.142 0 11/12/2024
2.0.141 0 11/12/2024
2.0.134 1 8/25/2024
2.0.131 1 6/7/2024
2.0.128 2 4/23/2024
2.0.127 2 4/22/2024
2.0.125 1 4/22/2024
2.0.124 2 4/22/2024
2.0.123 1 4/22/2024
2.0.122 2 4/22/2024
2.0.121 2 4/22/2024
2.0.113 2 1/27/2024
2.0.112 2 1/27/2024
2.0.111 2 1/27/2024
2.0.108 2 1/27/2024
2.0.107 2 1/27/2024
2.0.106 2 1/27/2024
2.0.105 2 1/27/2024
2.0.102 2 1/23/2024
2.0.101 2 1/23/2024
2.0.100 2 1/23/2024
2.0.92 2 11/17/2023
2.0.91 2 11/17/2023
1.0.88 2 11/14/2023
1.0.87 2 11/14/2023
1.0.86 2 11/14/2023
1.0.85 2 11/14/2023
1.0.84 2 11/14/2023
1.0.83 2 11/14/2023
1.0.81 2 9/24/2023
1.0.80 2 9/24/2023
1.0.79 2 9/24/2023
1.0.78 2 9/24/2023
1.0.77 2 9/24/2023
1.0.76 2 9/24/2023
1.0.75 2 9/24/2023
1.0.72 2 9/24/2023
1.0.71 2 9/24/2023
1.0.70 2 9/24/2023
1.0.58 2 8/26/2023
1.0.57 2 8/26/2023
1.0.56 2 8/26/2023
1.0.55 2 8/26/2023
1.0.54 2 8/26/2023
1.0.45 2 7/24/2023
1.0.44 2 7/24/2023
1.0.42 2 7/15/2023
1.0.41 2 7/15/2023
1.0.40 2 7/15/2023
1.0.39 2 7/15/2023
0.0.38-prerelease 2 7/15/2023
0.0.36-prerelease 2 5/16/2023
0.0.35-prerelease 2 5/16/2023
0.0.34-prerelease 2 5/16/2023
0.0.33-prerelease 2 5/16/2023
0.0.32-prerelease 2 5/16/2023
0.0.31-prerelease 2 4/22/2023
0.0.28-prerelease 2 3/4/2023
0.0.25-prerelease 2 1/26/2023
0.0.24-prerelease 2 1/26/2023
0.0.23-prerelease 2 1/26/2023
0.0.22-prerelease 2 1/26/2023
0.0.21-prerelease 2 1/26/2023
0.0.20-prerelease 2 1/26/2023
0.0.19-prerelease 2 1/26/2023
0.0.18-prerelease 2 1/26/2023
0.0.17-prerelease 2 1/26/2023
0.0.10-prerelease 2 12/10/2022
0.0.9-prerelease 2 12/10/2022
0.0.8-prerelease 2 12/10/2022
0.0.7-prerelease 2 12/10/2022
0.0.6-prerelease 2 12/10/2022
0.0.5-prerelease 2 10/1/2022
0.0.4-prerelease 2 9/30/2022
0.0.2-prerelease 2 9/30/2022
0.0.1-prerelease 2 9/30/2022

Merge pull request #7 from Codeuctivity/dependabot/github_actions/actions/stale-8

Bump actions/stale from 7 to 8