Skip to main content

Thumbor file loader that checks multiple paths

Introduction

[Thumbor](https://github.com/globocom/thumbor/wiki) is a smart imaging service. It enables on-demand crop, resizing and flipping of images.

Usage

Using it is simple, just change your configuration in thumbor.conf (or enviroment variable) before running Thumbor:

# List of paths to check for file to load # defaults to empty list which is an error so all requests will return 404 TC_MULTIDIR_PATHS = [‘/home/media’, ‘/mnt/media’]

To use tc_multidir for loading original images, change your thumbor.conf or environment variables to read:

LOADER = ‘tc_multidir.loader’

Running Thumbor

Note: If using environment variables run Thumbor with the –use-environment flag or other method to load it into the thumbor.conf template.

See [Thumbor repo](https://github.com/thumbor/thumbor) or use the Docker container maintaned by [MinimalCompact](https://github.com/MinimalCompact/thumbor/tree/master/thumbor) as a base image… see [/docker/Dockerfile](https://github.com/benneic/thumbor_multidir/tree/master/docker) for an example.

Release files for thumbor-multidir 0.2.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for thumbor-multidir 0.2.8
File Size Uploaded
thumbor_multidir-0.2.8.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for thumbor-multidir 0.2.8
File Interpreter ABI Platform
thumbor_multidir-0.2.8-py2-none-any.whl Python 2 none any Details

Total release size: 9.4 kB

Release files / thumbor_multidir-0.2.8.tar.gz

Download URL thumbor_multidir-0.2.8.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4ae909cf08922cb123cf1c9fe9587f672fc00d1e826a07e647b7f3f3c82b6cfe
BLAKE2b-256 checksum
How to use checksums
f9c72eeb1650b7f6729cd73f1ce80c11da724c0a24152628f61c61cf18c724b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/2.7.17

Release files / thumbor_multidir-0.2.8-py2-none-any.whl

Download URL thumbor_multidir-0.2.8-py2-none-any.whl
Size 6.4 kB
Tags Python 2
SHA-256 checksum
How to use checksums
0eef6961ebae24c23164ae40c6f620284d50051132946b2267024f65639a36a2
BLAKE2b-256 checksum
How to use checksums
da41d014eb182b63df247798906c837928de5d1a927e2ef2ced5c836fa5d4478
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/2.7.17

Release history Release notifications | RSS feed

This release

0.2.8 This release

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page