Answers for "how to save numpy array as image Pillow"

4

pil image to numpy

>>> pix = numpy.array(pic)
Posted by: Guest on June-17-2020
0

save numpy arrayw with PIL

from PIL import Image
im = Image.fromarray(A)
im.save("your_file.jpeg")
Posted by: Guest on April-18-2021

Code answers related to "how to save numpy array as image Pillow"

Python Answers by Framework

Browse Popular Code Answers by Language