From 91edfeb19ae2dbb011dddc14c2b2703d32f059ac Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Mon, 6 Jan 2025 10:28:00 +0100 Subject: [PATCH] support hashing with all formats --- image.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/image.go b/image.go index 02dc11a..2e56d24 100644 --- a/image.go +++ b/image.go @@ -115,10 +115,6 @@ func (img *Image) CalcHash() error { // checks if 2 images are similar enough to be considered the same func (img *Image) Similar(hash *goimagehash.ImageHash) bool { - if img.Mime != "jpeg" { - return false - } - distance, err := img.Hash.Distance(hash) if err != nil { slog.Debug("failed to compute diff hash distance", "error", err)