From b35257b4d8ba26556ddd8cb0b944725bc743b5ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Leblanc?= Date: Wed, 3 Aug 2022 11:38:04 -0400 Subject: [PATCH] =?UTF-8?q?`np.asarray`=20=E2=86=92=20`np.array`=20(#174)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- autocrop/autocrop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autocrop/autocrop.py b/autocrop/autocrop.py index 230ef82..7ae32bc 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: @@ -207,7 +207,7 @@ def crop(self, path_or_array): # Resize if self.resize: with Image.fromarray(image) as img: - image = np.asarray(img.resize((self.width, self.height))) + image = np.array(img.resize((self.width, self.height))) # Underexposition fix if self.gamma: