Skip to content

Extends Verify to allow comparison of images via ImageSharp.Compare.

License

Notifications You must be signed in to change notification settings

VerifyTests/Verify.ImageSharp.Compare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Verify.ImageSharp.Compare

Discussions Build status NuGet Status

Extends Verify to allow comparison of images via Codeuctivity.ImageSharp.Compare.

Contains comparers for png, jpg, and bmp.

See Milestones for release notes.

NuGet package

https://nuget.org/packages/Verify.ImageSharp.Compare/

Usage

[ModuleInitializer]
public static void Init() =>
    VerifyImageSharpCompare.Initialize();

snippet source | anchor

Image Comparers

The following will use ImageHash to compare the images instead of the default DifferenceHash algorithm.

[Test]
public Task CompareImage() =>
    VerifyFile("sample.jpg");

snippet source | anchor

Register all comparers

All comparers can be registered:

VerifyImageSharpCompare.RegisterComparers();

Icon

Pattern designed by Marialuisa Iborra from The Noun Project.

About

Extends Verify to allow comparison of images via ImageSharp.Compare.

Resources

License

Code of conduct

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •  

Languages