Documents Thumbnailer library
Project description
Main idea was taken from https://github.com/FelixSchwarz/anythumbnailer. 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: http://pillow.readthedocs.org/en/3.2.x/installation.html#external-libraries
Installation
$ pip install py-thumbnailer
Usage
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for py_thumbnailer-0.2.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6dc01b52e7645e95109f6a3d81e79f60c66c533b25b4cf96ab90aa70377dfb7 |
|
MD5 | 991b2bbf7f43994ce7349c5bf978f364 |
|
BLAKE2b-256 | 74fcb05da3016e97478c02368cd8e8eab927495818594cbb48033cc04bbad067 |