Metadata-Version: 2.1
Name: leukeleu-thumbor-multidir
Version: 1.0.0
Summary: Thumbor file loader that support multiple source paths
Home-page: https://github.com/leukleu/leukeleu-thumbor-multidir
Author: Jaap Roes
Author-email: jroes@leukeleu.nl
License: MIT
Keywords: thumbor file loader multiple source directories
Classifier: License :: OSI Approved :: MIT License
Classifier: Development Status :: 5 - Production/Stable
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: thumbor (<8,>=7)
Provides-Extra: test
Requires-Dist: black (~=23.1) ; extra == 'test'
Requires-Dist: check-manifest (==0.49) ; extra == 'test'
Requires-Dist: flake8 (~=6.0) ; extra == 'test'
Requires-Dist: flake8-assertive (~=2.1) ; extra == 'test'
Requires-Dist: flake8-black (~=0.3.0) ; extra == 'test'
Requires-Dist: flake8-bugbear (~=23.3) ; extra == 'test'
Requires-Dist: flake8-isort (~=6.0) ; extra == 'test'
Requires-Dist: pep8-naming (~=0.13) ; extra == 'test'
Requires-Dist: coverage (~=7.2) ; extra == 'test'
Requires-Dist: preggy (~=1.4.4) ; extra == 'test'

leukeleu-thumbor-multidir
=========================

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.

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