Skip to content

Commit

Permalink
ANTIALIAS has been deprecated; using LANCZOS
Browse files Browse the repository at this point in the history
  • Loading branch information
zemogle committed Nov 6, 2023
1 parent 1d02d43 commit df66917
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fits2image/conversions.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def fits_to_jpg(path_to_fits, path_to_jpg, width=200, height=200, progressive=Fa
scaled_images = [stack_images(scaled_images)]

for idx, im in enumerate(scaled_images):
im.thumbnail((width, height), Image.ANTIALIAS)
im.thumbnail((width, height), Image.LANCZOS)
if label_text:
try:
_add_label(im, label_text, label_font)
Expand Down Expand Up @@ -95,7 +95,7 @@ def fits_to_zoom_slice_jpg(path_to_fits, path_to_jpg, row=0, col=0, side=200, zl
x = int(col * step)
y = int(row * step)
im = im.crop((x, y, x+step, y+step))
im.thumbnail((width, height), Image.ANTIALIAS)
im.thumbnail((width, height), Image.LANCZOS)
if label_text:
try:
_add_label(im, label_text, label_font)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

setup(
name="fits2image",
version="0.4.6",
version="0.4.7",
description=DESCRIPTION,
long_description=DESCRIPTION,
author='Jon Nation',
Expand Down

0 comments on commit df66917

Please sign in to comment.