Answers for "how to save changes to an image pil and numpy"

0

pil save image

from PIL import Image

newImg1 = Image.new('RGB', (512,512))
newImg1.save("img1.png")
Posted by: Guest on May-12-2021
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

Python Answers by Framework

Browse Popular Code Answers by Language