Skip to content

Commit

Permalink
Set phash:colorspaces to make sure we get the same result.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Jul 21, 2023
1 parent 9bad277 commit 01b1d11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Magick.NET/MagickImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4414,6 +4414,8 @@ public void Perceptible(double epsilon, Channels channels)
/// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
public IPerceptualHash? PerceptualHash()
{
using var temporaryDefines = new TemporaryDefines(this);
temporaryDefines.SetArtifact("phash:colorspaces", "sRGB,HCLp");
var list = _nativeInstance.PerceptualHash();

try
Expand Down

0 comments on commit 01b1d11

Please sign in to comment.