Skip to content

Commit

Permalink
Merge pull request #8 from LCOGT/pil-upgrade
Browse files Browse the repository at this point in the history
ANTIALIAS has been deprecated; using LANCZOS
  • Loading branch information
LTDakin authored Aug 14, 2024
2 parents 63493d1 + df66917 commit fab2b8f
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 @@ -53,7 +53,7 @@ def fits_to_img(path_to_fits, path_to_output, file_type, width=200, height=200,
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 @@ -96,7 +96,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 fab2b8f

Please sign in to comment.