From b90d02523442455ed1e863c1f253f5b13b4c584c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Leblanc?= Date: Wed, 3 Aug 2022 09:49:21 -0400 Subject: [PATCH] Use `np.array` instead of `np.asarray` when reading in file from PIL --- autocrop/autocrop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autocrop/autocrop.py b/autocrop/autocrop.py index 230ef82..d7b8cbf 100644 --- a/autocrop/autocrop.py +++ b/autocrop/autocrop.py @@ -83,7 +83,7 @@ def check_positive_scalar(num): def open_file(input_filename): """Given a filename, returns a numpy array""" with Image.open(input_filename) as img_orig: - return np.asarray(img_orig) + return np.array(img_orig) class Cropper: