Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Documents Thumbnailer library

Project description

Main idea was taken from Code rewriten from zero.

A CLI utility/Python library to create thumbnails for different file types (including PDF, mp4 videos and Microsoft Office documents aka docx/xlsx/pptx).

All the heavy-lifting is done by commonly-used tools such as LibreOffice/unoconv, ffmpeg, poppler and ImageMagick so format support is limited by what these tools can process.

Program requirements

Video encoding: ffmpeg Pdf encoding: poppler-utils Office files: unoconv Imagemagic external libraries:


$ pip install py-thumbnailer


From command line:
$ py-thumbnailer SOURCEFILE [OUTPUTFILE]
From python code:
from py_thumbnailer.thumbnail import create_thumbnail
output_buffer = create_thumbnail(source_file)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for py_thumbnailer, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size py_thumbnailer-0.2.2-py2.py3-none-any.whl (7.2 kB) File type Wheel Python version 2.7 Upload date Hashes View hashes
Filename, size py_thumbnailer-0.2.2.tar.gz (8.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page