Skip to content

Commit fab2b8f

Browse files
authored
Merge pull request #8 from LCOGT/pil-upgrade
ANTIALIAS has been deprecated; using LANCZOS
2 parents 63493d1 + df66917 commit fab2b8f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fits2image/conversions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def fits_to_img(path_to_fits, path_to_output, file_type, width=200, height=200,
5353
scaled_images = [stack_images(scaled_images)]
5454

5555
for idx, im in enumerate(scaled_images):
56-
im.thumbnail((width, height), Image.ANTIALIAS)
56+
im.thumbnail((width, height), Image.LANCZOS)
5757
if label_text:
5858
try:
5959
_add_label(im, label_text, label_font)
@@ -96,7 +96,7 @@ def fits_to_zoom_slice_jpg(path_to_fits, path_to_jpg, row=0, col=0, side=200, zl
9696
x = int(col * step)
9797
y = int(row * step)
9898
im = im.crop((x, y, x+step, y+step))
99-
im.thumbnail((width, height), Image.ANTIALIAS)
99+
im.thumbnail((width, height), Image.LANCZOS)
100100
if label_text:
101101
try:
102102
_add_label(im, label_text, label_font)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
setup(
2929
name="fits2image",
30-
version="0.4.6",
30+
version="0.4.7",
3131
description=DESCRIPTION,
3232
long_description=DESCRIPTION,
3333
author='Jon Nation',

0 commit comments

Comments
 (0)