December 2025
Beginner
368 pages
7h 49m
English
Chapter 6
IN THIS CHAPTER
Flipping, resizing, cropping, and rotating images
Bulk changing image file formats
Grabbing individual frames from video files
This chapter is all about Python automation for image and video files. I show you how to automatically resize, rotate, flip, and crop multiple images. You see how to convert image file types in bulk. Finally, I explain how to extract individual frames from a video into image files.
Two Python modules will help greatly in this chapter:
PIL (short for Python Imaging Library), this library offers tools for opening, manipulating, and saving many different image file formats including JPEG, PNG, and WebP. It provides tools for resizing and cropping, applying filters, and other common image tasks.I begin with a single script that can resize, rotate, flip, and crop any number of images in any folder.
For the first script in this ...
Read now
Unlock full access