Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

VerifyTests/Verify.Phash

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,324 Commits
1,324 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Verify.Phash

Discussions Build status NuGet Status

Extends Verify to allow comparison of documents via Phash.

See Milestones for release notes.

Contains comparers for png, jpg, bmp, and tiff.

Sponsors

Entity Framework Extensions

Entity Framework Extensions is a major sponsor and is proud to contribute to the development this project.

Entity Framework Extensions

Developed using JetBrains IDEs

JetBrains logo.

NuGet

Usage

Enable:

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

snippet source | anchor

Comparers

Register all comparers

VerifyPhash.RegisterComparer();

Compare Settings

Phash comparison settings can be modified as follows:

[Test]
public Task LocalSettings() =>
    VerifyFile("sample.png")
        .PhashCompareSettings(
            threshold: .8f,
            sigma: 4f,
            gamma: 2f,
            angles: 170);

snippet source | anchor

Icon

Hash Brown designed by Icon Mark from The Noun Project.

About

Extends Verify to allow comparison of documents via Phash.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

Sponsor this project

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.