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
File details
Details for the file py_thumbnailer-0.2.1.tar.gz
.
File metadata
- Download URL: py_thumbnailer-0.2.1.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed857ce63492987af7d5e9fc255a26245b700f313ca4a2d746e65d3ee87ba09b |
|
MD5 | 8452869dff5225eedf2714fa8ebad505 |
|
BLAKE2b-256 | 9de11d08c56bf800a6e56357dc00cf98ab12c2a2dc1903ef0de4b211e312529c |
File details
Details for the file py_thumbnailer-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: py_thumbnailer-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b17fd9c8d4718dd557f2b0808b485c1d76e57ae80bea13ba07f5f70d2109ecb9 |
|
MD5 | 6638c3a52c5a0bc82c8e6a2f7fe0f36e |
|
BLAKE2b-256 | 7716ed70eafa40996586926914c59b48ce53388a6761e16e4ac335e0f836aec4 |