Skip to content

Commit

Permalink
Use Image.LANCZOS instead of Image.Resampling.LANCZOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
FormerLurker committed Nov 8, 2023
1 parent 170ec73 commit d56ff95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion octoprint_octolapse/snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def create_thumbnail(self):
with Image.open(latest_snapshot_path) as img:
wpercent = (basewidth / float(img.size[0]))
hsize = int((float(img.size[1]) * float(wpercent)))
img.thumbnail([basewidth, hsize], Image.Resampling.LANCZOS)
img.thumbnail([basewidth, hsize], Image.LANCZOS)
img.save(
utility.get_latest_snapshot_thumbnail_download_path(
self.snapshot_job_info.temporary_directory, self.snapshot_job_info.camera.guid
Expand Down

0 comments on commit d56ff95

Please sign in to comment.