Skip to content

Commit

Permalink
support hashing with all formats
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas von Dein committed Jan 6, 2025
1 parent 080ae02 commit e8ac528
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions image.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e8ac528

Please sign in to comment.