Pillow library: Difference between revisions

From XPUB & Lens-Based wiki
(Created page with "==Basic== <source lang="python"> from PIL import Image, ImageFilter, ImageDraw import os import random from random import choice, randint image1 = Image.open('t1.jpg') </so...")
 
Line 1: Line 1:
==Basic==
==Basic==
===Experiment with my photo===


<source lang="python">
[[File:pil1.png|400px|thumb|left|alt text]]
from PIL import Image, ImageFilter, ImageDraw
import os
import random
from random import choice, randint


image1 = Image.open('t1.jpg')
[[File:pil2.png|400px|thumb|left|alt text]]
</source>
 
<pre>
image1
</pre>

Revision as of 13:53, 22 October 2020

Basic

Experiment with my photo

File:Pil1.png
alt text
File:Pil2.png
alt text