hydrusnetwork / hydrusnetwork/hydrus

Duplicate Ignore Transparency

Open
#693 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request system:duplicates
Dominant language
Python
Stars
3.2k
Forks
207
PR merge metrics
No merged PRs in 30d

Description

To reduce the filesize of many of my images that are stupidly large, I am converting them to jpg, this eliminates the transparency, in my case, making the formerly transparent area black.
I import the files to hydrus so I can give them a once over saying yes, the quality difference is ok though duplicate search, and remove.

now the issue is, when a file has a large enough transparent section it doesn't pick up that they are duplicates, forcing me to manually do the duplicate tagging. I have also seen that while i'm importing these down converted files, some of them will have several duplicates attached to them that again, hydrus didn't pick up on in the first place due to transparency.

I think ignoring transparency area would be a good idea, or assigning it a black/white color if you can't just duplicate search with an ignored area.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name any files, tests, or entry points. Start by locating the duplicate-search implementation and its handling of transparent image areas, then determine how converted JPGs should compare with their transparent originals. Done means duplicate search reliably identifies the described pairs without requiring manual duplicate tagging.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
search
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.