Codeuctivity.ImageSharpCompare
2.0.106
See the version list below for details.
dotnet add package Codeuctivity.ImageSharpCompare --version 2.0.106
NuGet\Install-Package Codeuctivity.ImageSharpCompare -Version 2.0.106
<PackageReference Include="Codeuctivity.ImageSharpCompare" Version="2.0.106" />
paket add Codeuctivity.ImageSharpCompare --version 2.0.106
#r "nuget: Codeuctivity.ImageSharpCompare, 2.0.106"
// Install Codeuctivity.ImageSharpCompare as a Cake Addin #addin nuget:?package=Codeuctivity.ImageSharpCompare&version=2.0.106 // Install Codeuctivity.ImageSharpCompare as a Cake Tool #tool nuget:?package=Codeuctivity.ImageSharpCompare&version=2.0.106
ImageSharpCompare
Compares images
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.
ImageSharpCompare focus on os agnostic support and therefore depends on SixLabors.ImageSharp.
NOTE: Alpha-channel is ignored.
Example simple show cases
bool isEqual = ImageSharpCompare.ImagesAreEqual("actual.png", "expected.png");
// calcs MeanError, AbsoluteError, PixelErrorCount and PixelErrorPercentage
ICompareResult calcDiff = ImageSharpCompare.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
Tolerance mask image
CalcDiffMaskImage
is used to calc a diff mask from an actual and a reference image
Example - Create difference image
using (var fileStreamDifferenceMask = File.Create("differenceMask.png"))
using (var maskImage = ImageSharpCompare.CalcDiffMaskImage(pathPic1, pathPic2))
SixLabors.ImageSharp.ImageExtensions.SaveAsPng(maskImage, fileStreamDifferenceMask);
Example - Compare two images using the created difference image. Add white pixels to differenceMask.png where you want to allow difference.
var maskedDiff = ImageSharpCompare.CalcDiff(pathPic1, pathPic2, "differenceMask.png");
Assert.That(maskedDiff.AbsoluteError, Is.EqualTo(0));
Product | Versions 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. |
-
.NETStandard 2.0
- SixLabors.ImageSharp (>= 2.1.3)
-
net6.0
- SixLabors.ImageSharp (>= 2.1.3)
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on Codeuctivity.ImageSharpCompare:
Repository | Stars |
---|---|
dotnetcore/Magicodes.IE
Import and export general library, support Dto import and export, template export, fancy export and dynamic export, support Excel, Csv, Word, Pdf and Html.
|
|
dymaptic/GeoBlazor
Core Components for the Dymaptic GeoBlazor Library
|
Version | Downloads | Last updated |
---|---|---|
4.0.287-DroppedSourceLink | 0 | 9/30/2024 |
4.0.284-DroppedSourceLink | 1 | 9/29/2024 |
4.0.279-DroppedSourceLink | 1 | 9/9/2024 |
4.0.276 | 1 | 8/20/2024 |
4.0.271 | 1 | 7/24/2024 |
4.0.266 | 1 | 5/14/2024 |
4.0.263 | 2 | 5/2/2024 |
4.0.257 | 2 | 4/23/2024 |
4.0.256 | 1 | 4/23/2024 |
4.0.255 | 2 | 4/23/2024 |
4.0.254 | 2 | 4/23/2024 |
4.0.253 | 2 | 4/23/2024 |
4.0.252 | 2 | 4/23/2024 |
4.0.248 | 2 | 4/13/2024 |
4.0.247 | 1 | 4/13/2024 |
4.0.244 | 2 | 3/26/2024 |
4.0.240 | 2 | 3/7/2024 |
4.0.239 | 2 | 3/6/2024 |
4.0.233 | 1 | 1/27/2024 |
4.0.232 | 1 | 1/27/2024 |
4.0.231 | 2 | 1/27/2024 |
4.0.230 | 2 | 1/27/2024 |
4.0.229 | 2 | 1/26/2024 |
4.0.227 | 2 | 1/22/2024 |
4.0.226 | 2 | 1/22/2024 |
4.0.225 | 2 | 1/22/2024 |
4.0.224 | 2 | 1/22/2024 |
4.0.218 | 2 | 12/12/2023 |
4.0.217 | 2 | 12/12/2023 |
4.0.211 | 2 | 12/9/2023 |
4.0.210 | 1 | 12/9/2023 |
4.0.207 | 1 | 12/5/2023 |
4.0.203 | 2 | 11/17/2023 |
4.0.202 | 2 | 11/17/2023 |
4.0.201 | 1 | 11/17/2023 |
4.0.200 | 1 | 11/17/2023 |
3.0.197 | 2 | 11/14/2023 |
3.0.196 | 2 | 11/14/2023 |
3.0.195 | 2 | 11/14/2023 |
3.0.194 | 2 | 11/14/2023 |
3.0.193 | 2 | 11/14/2023 |
3.0.192 | 2 | 9/19/2023 |
3.0.189 | 2 | 9/5/2023 |
3.0.186 | 2 | 8/30/2023 |
3.0.180 | 2 | 8/16/2023 |
3.0.179 | 1 | 8/16/2023 |
3.0.174 | 2 | 7/29/2023 |
3.0.172 | 2 | 7/29/2023 |
3.0.171 | 2 | 7/29/2023 |
3.0.170 | 2 | 7/29/2023 |
3.0.169 | 2 | 7/28/2023 |
3.0.164 | 2 | 7/13/2023 |
3.0.163 | 2 | 7/13/2023 |
3.0.162 | 1 | 7/13/2023 |
3.0.161 | 2 | 7/13/2023 |
3.0.154 | 2 | 4/9/2023 |
3.0.151 | 2 | 4/9/2023 |
3.0.150 | 2 | 4/9/2023 |
3.0.149 | 1 | 4/9/2023 |
3.0.148 | 2 | 4/9/2023 |
3.0.146 | 2 | 3/29/2023 |
3.0.145 | 1 | 3/29/2023 |
3.0.142 | 2 | 3/27/2023 |
3.0.138 | 2 | 3/23/2023 |
3.0.137 | 2 | 3/23/2023 |
3.0.136 | 2 | 3/23/2023 |
3.0.135 | 2 | 3/23/2023 |
3.0.123 | 2 | 3/21/2023 |
3.0.122 | 1 | 3/21/2023 |
3.0.120 | 2 | 3/21/2023 |
3.0.117 | 1 | 3/4/2023 |
3.0.116 | 1 | 3/4/2023 |
2.0.182 | 2 | 8/16/2023 |
2.0.181 | 2 | 8/16/2023 |
2.0.173 | 2 | 7/29/2023 |
2.0.134 | 2 | 3/23/2023 |
2.0.133 | 2 | 3/23/2023 |
2.0.132 | 1 | 3/23/2023 |
2.0.131 | 2 | 3/23/2023 |
2.0.130 | 2 | 3/23/2023 |
2.0.129 | 1 | 3/23/2023 |
2.0.128 | 1 | 3/23/2023 |
2.0.127 | 2 | 3/23/2023 |
2.0.126 | 2 | 3/23/2023 |
2.0.125 | 3 | 3/23/2023 |
2.0.124 | 2 | 3/21/2023 |
2.0.121 | 2 | 3/21/2023 |
2.0.119 | 2 | 3/21/2023 |
2.0.109 | 2 | 2/13/2023 |
2.0.106 | 2 | 1/26/2023 |
2.0.105 | 2 | 1/26/2023 |
2.0.104 | 2 | 12/27/2022 |
2.0.101 | 2 | 11/30/2022 |
2.0.100 | 2 | 11/30/2022 |
2.0.99 | 2 | 11/30/2022 |
2.0.98 | 1 | 11/30/2022 |
2.0.97 | 2 | 11/29/2022 |
2.0.94 | 2 | 10/6/2022 |
2.0.89 | 1 | 9/21/2022 |
2.0.86 | 2 | 7/31/2022 |
2.0.83 | 2 | 7/20/2022 |
2.0.81 | 2 | 7/5/2022 |
2.0.80 | 0 | 7/3/2022 |
2.0.79 | 2 | 6/26/2022 |
2.0.78 | 1 | 6/24/2022 |
2.0.77 | 1 | 6/24/2022 |
2.0.75 | 1 | 6/24/2022 |
2.0.74 | 0 | 6/24/2022 |
2.0.73 | 1 | 6/24/2022 |
2.0.72 | 1 | 6/24/2022 |
2.0.71 | 2 | 6/24/2022 |
2.0.70 | 2 | 6/24/2022 |
2.0.69 | 2 | 6/24/2022 |
2.0.68 | 1 | 6/24/2022 |
2.0.60 | 2 | 5/27/2022 |
2.0.59 | 2 | 5/27/2022 |
2.0.58 | 1 | 5/27/2022 |
2.0.57 | 2 | 5/27/2022 |
2.0.56 | 2 | 5/15/2022 |
2.0.54 | 2 | 5/11/2022 |
2.0.53 | 1 | 5/11/2022 |
2.0.52 | 2 | 5/11/2022 |
2.0.51 | 2 | 5/11/2022 |
2.0.50 | 1 | 5/11/2022 |
2.0.49 | 2 | 5/11/2022 |
2.0.45 | 1 | 4/21/2022 |
2.0.44 | 1 | 4/21/2022 |
2.0.43 | 2 | 4/21/2022 |
2.0.40 | 1 | 4/19/2022 |
2.0.39 | 2 | 4/19/2022 |
2.0.38 | 2 | 4/19/2022 |
2.0.37 | 2 | 4/19/2022 |
2.0.36 | 1 | 4/19/2022 |
2.0.35 | 2 | 3/24/2022 |
2.0.34 | 2 | 3/23/2022 |
2.0.33 | 1 | 3/23/2022 |
2.0.32 | 2 | 3/20/2022 |
2.0.24 | 1 | 3/16/2022 |
2.0.23 | 2 | 3/16/2022 |
2.0.22 | 2 | 3/14/2022 |
2.0.17 | 2 | 2/19/2022 |
2.0.16 | 2 | 2/19/2022 |
2.0.15 | 2 | 2/19/2022 |
2.0.14 | 2 | 2/19/2022 |
fixed some warnings