Skip to content

Conversation

@WithoutPants
Copy link
Collaborator

Adds the ability to generate, view and filter image perceptual hashes. Uses the existing goimagehash library for generating perceptual hashes, and stores them in the phash fingerprint type.

  • Added Phash field to the File Info tab in the image detail panel. Provides a link to show images with the same phash.
  • Added Phash filter option, functioning the same as the scene filter criterion.
  • Added options to generate image phash to scan and generate tasks.
  • Added ability to run the generate task on a list of image ids.
  • Added generate menu option to image detail page
  • Added generate menu option to the image list page

@WithoutPants WithoutPants added this to the Version 0.31.0 milestone Jan 17, 2026
@WithoutPants WithoutPants added the feature Pull requests that add a new feature label Jan 17, 2026
Comment on lines +1098 to +1104
if distance == 0 {
// use the default handler
intCriterionHandler(&models.IntCriterionInput{
Value: int(value),
Modifier: phashDistance.Modifier,
}, "fingerprints_phash.fingerprint", nil)(ctx, f)
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be a return after this block? When distance is 0 it calls intcriterionHandler then falls through to the switch default again, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Pull requests that add a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants