support hashing with all formats

This commit is contained in:
2025-01-06 10:28:00 +01:00
committed by T.v.Dein
parent 3b3435515c
commit 91edfeb19a

View File

@@ -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)