Skip to content
Make thumbnails of your images
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

A Python utility to make thumbnails of your images, built using Pillow, a fork of PIL (the Python Imaging Library).

Things to Know

  • This program requires Pillow. Install it with pip install Pillow or pip install -r requirements.txt.
  • Default thumbnail size is 150x150 (they're always square). To change the size, modify THUMB_SIZE in
  • Change the format of your thumbnail's image name by altering the string formatting behind new_img_name in
  • I only bothered telling this program to support .tif, .tiff, .gif, .jpeg, .jpg, .png, and .bmp, but it can theoretically work with any file format that Pillow supports--if you want to add any additional file formats, just stick them in IMG_FORMATS in

How to Use

To make a thumb of a single file: from the command line, run python path-to-file.

To make a thumbs of all the image files in a directory: from the command line, run python path-to-directory. (Only files with extensions listed in IMG_FORMATS will be thumb-ified--see "Things to know", above.)

You can’t perform that action at this time.