diff --git a/README.md b/README.md index 5abd77e..0133c0d 100644 --- a/README.md +++ b/README.md @@ -2789,7 +2789,7 @@ from random import randint add_noise = lambda value: max(0, min(255, value + randint(-20, 20))) img = Image.open('test.png').convert('HSV') img.putdata([(add_noise(h), s, v) for h, s, v in img.getdata()]) -img.convert('RGB').save('test.png') +img.show() ``` ### Image Draw diff --git a/index.html b/index.html index e4af903..a8cdc56 100644 --- a/index.html +++ b/index.html @@ -2280,7 +2280,7 @@ img.convert('RGB').save(lambda value: max(0, min(255, value + randint(-20, 20))) img = Image.open('test.png').convert('HSV') img.putdata([(add_noise(h), s, v) for h, s, v in img.getdata()]) -img.convert('RGB').save('test.png') +img.show()

Image Draw

from PIL import ImageDraw