~/talk

Pillow Basics

Talkat PyOhio 2020 · 2020-07-25..07-26· [python, creative-coding]
name:Joe Aylor
links:none on file
slides:none on file

Covers practical Pillow operations: install via pip plus optional system libs for better format support, open images from paths, bytes or tar, show/save/close files, and the exact files produced (python.tiff, python.jpg, python.ppm, python.webp). Demonstrates mode conversion to avoid errors when saving RGBA to JPEG by setting mode to RGB, resizing (example 700→1400×700), libjpeg zlib libtiff libfreetype libwebp, RGBA vs RGB causing JPEG errors, and thumbnail is in‑place. Crop, rotate and transpose use pixel coordinates and work as shown.

AI-written summary · about

  1. 0:00Start
  2. 0:11What Is Pillow
  3. 1:16Load Images
  4. 3:04Convert between Formats
  5. 5:19Resizing Images
  6. 7:02Rotate Images
  7. 8:21Cropping Images
  8. 8:32The Coordinate System of Pillow
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.