mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
Fix docstring typo
If we `import numpy as np`, use `np` not `numpy`
This commit is contained in:
parent
2858825771
commit
ed4de6cb62
|
@ -2446,7 +2446,7 @@ def fromarray(obj, mode=None):
|
|||
from PIL import Image
|
||||
import numpy as np
|
||||
im = Image.open('hopper.jpg')
|
||||
a = numpy.asarray(im)
|
||||
a = np.asarray(im)
|
||||
|
||||
Then this can be used to convert it to a Pillow image::
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user