Skip to content

Thumbor file loader plugin that search multiple paths on disk

License

Notifications You must be signed in to change notification settings

leukeleu/leukeleu-thumbor-multidir

 
 

Repository files navigation

leukeleu-thumbor-multidir

Thumbor file loader that checks multiple paths

Introduction

Thumbor is a smart imaging service. It enables on-demand crop, resizing and flipping of images.

By default, the Thumbor file loader only loads images from a single path. Using this loader, multiple paths can be specified. The first path that contains the requested image is then used.

Usage

To enable this loader, add the following to thumbor.conf:

LOADER = 'tc_multidir.loader'

Then, configure the paths to check for the image:

# List of paths to check for file to load (required)
TC_MULTIDIR_PATHS = ['/home/media', '/mnt/media']

About

Thumbor file loader plugin that search multiple paths on disk

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 76.1%
  • Makefile 23.9%