We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ac79a7 commit 6826805Copy full SHA for 6826805
autocrop/autocrop.py
@@ -83,7 +83,7 @@ def check_positive_scalar(num):
83
def open_file(input_filename):
84
"""Given a filename, returns a numpy array"""
85
with Image.open(input_filename) as img_orig:
86
- return np.asarray(img_orig)
+ return np.array(img_orig)
87
88
89
class Cropper:
@@ -207,7 +207,7 @@ def crop(self, path_or_array):
207
# Resize
208
if self.resize:
209
with Image.fromarray(image) as img:
210
- image = np.asarray(img.resize((self.width, self.height)))
+ image = np.array(img.resize((self.width, self.height)))
211
212
# Underexposition fix
213
if self.gamma:
0 commit comments