Question: How do I negate the negative? from PIL import Image in mage. open('pic.jpg ) def negative image(pixel): return tuple(map(Lambda a 255 a, pixel)) negative-list= map
from PIL import Image in mage. open('pic.jpg" ) def negative image(pixel): return tuple(map(Lambda a 255 a, pixel)) negative-list= map ( negative-image, in.getdata() ) ntutt or with list comprehension, neg_1st= [(255-ple), 5-p [1] , 255-pl2]) 2 5 for p in in.getdata( ERE im. putdata(list (negativelist)) im. save('negative3.jpg')
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
