Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion videohash/collagemaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def make(self) -> None:

# scale the opened frame images
frame.thumbnail(
(scaled_frame_image_width, scaled_frame_image_height), Image.ANTIALIAS
(scaled_frame_image_width, scaled_frame_image_height), Image.Resampling.LANCZOS
)

# set the value of x to that of i's value.
Expand Down
3 changes: 3 additions & 0 deletions videohash/videohash.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ def __eq__(self, other: object) -> bool:
return True
return False

def __hash__(self) -> int:
return int(self.hash, 2)

def __sub__(self, other: object) -> int:
"""
Definition of the '-' operator on VideoHash objects.
Expand Down