Fix pasting an image into system:similar to

This commit is contained in:
Hydrus Network Developer 2023-10-07 14:36:26 -05:00
parent 343e12a94d
commit 45ca3abd62
No known key found for this signature in database
GPG Key ID: 76249F053212133C
1 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ from hydrus.core import HydrusExceptions
from hydrus.core import HydrusGlobals as HG
from hydrus.core import HydrusFileHandling
from hydrus.core.images import HydrusImageHandling
from hydrus.core.images import HydrusImageNormalisation
from hydrus.client import ClientConstants as CC
from hydrus.client import ClientImageHandling
@ -2137,7 +2138,7 @@ class PanelPredicateSystemSimilarToData( PanelPredicateSystemSingle ):
numpy_image = ClientGUIFunctions.ConvertQtImageToNumPy( qt_image )
numpy_image = HydrusImageHandling.StripOutAnyUselessAlphaChannel( numpy_image )
numpy_image = HydrusImageNormalisation.StripOutAnyUselessAlphaChannel( numpy_image )
pixel_hash = HydrusImageHandling.GetImagePixelHashNumPy( numpy_image )