Skip to main content

Thumbor file loader that support multiple source paths

Project description

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 requrest 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']

Project details


Download files

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

Source Distribution

leukeleu-thumbor-multidir-1.0.0.tar.gz (75.1 kB view hashes)

Uploaded Source

Built Distribution

leukeleu_thumbor_multidir-1.0.0-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page