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...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Basic==
==Basic==
===Experiment with my photo===


<source lang="python">
[[File:pil_1.png|700px|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:pil_2.png|700px|thumb|left|alt text]]
</source>
 
<pre>
image1
</pre>

Latest revision as of 14:54, 22 October 2020

Basic

Experiment with my photo

alt text
alt text