hydrus icon indicating copy to clipboard operation
hydrus copied to clipboard

Duplicate Filter Visual Duplicates marked as "not visual duplicates (one has trapsarency)"

Open TacoMagick opened this issue 1 year ago • 3 comments

Hydrus version

638

Qt major version

Qt 6

Operating system

Windows 11

Install method

Extract

Install and OS comments

No response

Bug description and reproduction

  1. Import two of the same images into the client, one in the png format and other in the jpeg format, make sure the files both have the same resolution and png does not contain any transparency (visible to the eye)
  2. Prepare the duplicates filter and start a maximum search distance of pair 0 duplicate filter
  3. Even though the files are visual duplicates they are marked as not visual duplicates (this could hinder automated duplicates processing)

Log output


TacoMagick avatar Sep 12 '25 15:09 TacoMagick

Thank you for this report. My 'visual duplicate' test doesn't support transparency yet. I hope to revisit it and write some sensible new tech to handle alpha channel comparisons. Generally speaking, I'm probably going to hedge my bets when one file has transparency and another doesn't since they aren't what I consider visual duplicates (for instance, try drawing them on a green or red background--they'll look different in one of those situations). I'll deliver a 'not visual duplicates' result to start, and maybe add more options later. However I think I can deliver a positive result when both files have an alpha channel and that alpha channel is visually similar (in mask terms).

hydrusnetwork avatar Sep 15 '25 19:09 hydrusnetwork

I got this done for v644 this Wednesday! Let me know how it works for you.

hydrusnetwork avatar Oct 20 '25 19:10 hydrusnetwork

This unfortunately does not seem to work, at least on the latest version. I'm getting a bunch of duplicates on the auto resolutions that get skipped because one has transparency other has alpha but visually those two files are completely same and does not have transparency at all (one is png other is jpeg) for version v678

Would it be possible to reopen this issue? I do not appear to have the permission to do so. Thanks for the help.

TacoMagick avatar Jul 14 '26 01:07 TacoMagick