Skip to content

Commit

Permalink
Use np.array instead of np.asarray when reading in file from PIL
Browse files Browse the repository at this point in the history
  • Loading branch information
leblancfg committed Aug 3, 2022
1 parent 6ac79a7 commit b90d025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autocrop/autocrop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b90d025

Please sign in to comment.