Skip to content

megabild/tc_multiple_loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thumbor Multiple Loader

This package provides a file loader that loads images, videos and pdf. When asked to load a video file, it uses ffmpeg to extract a single frame from the video, and returns it instead of the original video.

This allows Thumbor to create thumbnails from video files.

When asked to load a pdf file, it uses ghostscript to extract a single page image from the pdf, and returns it instead of the original pdf.

This allows Thumbor to create thumbnails from pdf files.

Installing

$ pip install tc_multiple_loader

Configuration

# Use the custom file loader
LOADER = 'tc_multiple_loader.loaders.file_loader'
# Full path to ffmpeg
FFMPEG_PATH = '/usr/bin/ffmpeg'

This project would not exists without the work of the thumbor community, especially https://github.com/thumbor-community/video.

About

This package provides a file loader for thumbor that loads images, videos and pdf.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages