mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-04-27 20:43:43 +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
|
from PIL import Image
|
||||||
import numpy as np
|
import numpy as np
|
||||||
im = Image.open('hopper.jpg')
|
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::
|
Then this can be used to convert it to a Pillow image::
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user