Skip to content

Commit

Permalink
Fix pasting an image into system:similar to
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrusnetwork committed Oct 7, 2023
1 parent 343e12a commit 45ca3ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hydrus/client/gui/search/ClientGUIPredicatesSingle.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
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
Expand Down Expand Up @@ -2137,7 +2138,7 @@ def _Paste( self ):

numpy_image = ClientGUIFunctions.ConvertQtImageToNumPy( qt_image )

numpy_image = HydrusImageHandling.StripOutAnyUselessAlphaChannel( numpy_image )
numpy_image = HydrusImageNormalisation.StripOutAnyUselessAlphaChannel( numpy_image )

pixel_hash = HydrusImageHandling.GetImagePixelHashNumPy( numpy_image )

Expand Down

0 comments on commit 45ca3ab

Please sign in to comment.