Skip to content

Commit b90d025

Browse files
committed
Use np.array instead of np.asarray when reading in file from PIL
1 parent 6ac79a7 commit b90d025

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autocrop/autocrop.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def check_positive_scalar(num):
8383
def open_file(input_filename):
8484
"""Given a filename, returns a numpy array"""
8585
with Image.open(input_filename) as img_orig:
86-
return np.asarray(img_orig)
86+
return np.array(img_orig)
8787

8888

8989
class Cropper:

0 commit comments

Comments
 (0)