https://github.com/verifytests/verify.imagesharp.compare
Extends Verify to allow comparison of images via ImageSharp.Compare.
https://github.com/verifytests/verify.imagesharp.compare
Last synced: about 1 year ago
JSON representation
Extends Verify to allow comparison of images via ImageSharp.Compare.
- Host: GitHub
- URL: https://github.com/verifytests/verify.imagesharp.compare
- Owner: VerifyTests
- License: mit
- Created: 2022-04-01T09:32:42.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-10T05:07:58.000Z (about 1 year ago)
- Last Synced: 2025-04-10T06:27:16.015Z (about 1 year ago)
- Language: C#
- Homepage:
- Size: 721 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: .github/FUNDING.yml
- License: license.txt
- Code of conduct: code_of_conduct.md
Awesome Lists containing this project
README
#
Verify.ImageSharp.Compare
[](https://github.com/orgs/VerifyTests/discussions)
[](https://ci.appveyor.com/project/SimonCropp/Verify-ImageSharp-Compare)
[](https://www.nuget.org/packages/Verify.ImageSharp.Compare/)
Extends [Verify](https://github.com/VerifyTests/Verify) to allow comparison of images via [Codeuctivity.ImageSharp.Compare](https://github.com/Codeuctivity/ImageSharp.Compare).
Contains [comparers](https://github.com/VerifyTests/Verify/blob/master/docs/comparer.md) for png, jpg, and bmp.
**See [Milestones](../../milestones?state=closed) for release notes.**
## NuGet package
https://nuget.org/packages/Verify.ImageSharp.Compare/
## Usage
```cs
[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.
```cs
[Test]
public Task CompareImage() =>
VerifyFile("sample.jpg");
```
snippet source | anchor
### Register all comparers
All comparers can be registered:
```
VerifyImageSharpCompare.RegisterComparers();
```
## Icon
[Pattern](https://thenounproject.com/term/pattern/891931/) designed by [Marialuisa Iborra](https://thenounproject.com/marialuisa.iborra/) from [The Noun Project](https://thenounproject.com/).