We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
np.array
np.asarray
1 parent 6ac79a7 commit b90d025Copy full SHA for b90d025
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:
0 commit comments