Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install thumbor_presets via python pip




thumbor_presets - thumbor-presets =============== Make [Thumbor](https://github.com/thumbor/thumbor) urls short and sweet by keeping common sizes and filters in settings. Ever felt your inner perfectionist crying when looking at the Thumbor urls? Want to nominate Thumbor for the Guinness World Record for having the longest urls in the universe? So did I. Meet thumbor-presets - a tiny add-on to keep your most common sizes, filters and settings right in the Thumbor's config. Usage ----- Install this package via PyPi or GitHub: ```sh pip install thumbor_presets # or pip install https://github.com/alexmorozov/thumbor-presets ``` Add your common presets to your Thumbor config file: ```python # thumbor.conf PRESETS = { 'small_thumb': '250x100/smart/filters:grayscale(),watermark(/some/image.jpg)', } ``` Start a Thumbor instance with a presets-aware app: ```sh thumbor -a thumbor_presets.app.ThumborServiceApp ``` And you're done! Access your presets the easy way: ````curl curl http://thumbor_server.com/unsafe/preset/small_thumb/image.jpg ```` See also -------- * The excellent [thumbor-community/shortener](https://github.com/thumbor-community/shortener) extension also allows you to shorten your urls, though a slightly different way. Requirements ------------ * thumbor License ------- MIT Authors ------- `thumbor-presets` was written by [Alex Morozov](mailto:[email protected])., it belongs to Classifiers:

- Development Status :: 4 - Beta
- Programming Language :: Python :: 2
- Programming Language :: Python :: 2.7
- Topic :: Internet
- Topic :: Internet :: WWW/HTTP
- Topic :: Internet :: WWW/HTTP :: Dynamic Content
- Topic :: Multimedia
- Topic :: Multimedia :: Graphics
- Topic :: Multimedia :: Graphics :: Presentation

When you know about this project and you want to new install thumbor_presets to support your project or you get trouble as ModuleNotFoundError: No module named "thumbor_presets" or ImportError: cannot import name "thumbor_presets" in your project, let follow this tutorial to install thumbor_presets



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_thumbor_presets_env

- Active the virtual environment

test_thumbor_presets_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_thumbor_presets_env

- Active the virtual environment

source test_thumbor_presets_env/bin/active


Step 2: OK, now, let flow below content to start the installation thumbor_presets

To install thumbor_presets on Windows(CMD):

py -m pip install thumbor_presets

To install thumbor_presets on Unix/macOs:

pip install thumbor_presets


Step 3: If you want to install a specific thumbor_presets version, add ==<thumbor_presets version> to the end command line

Example:

pip install thumbor_presets==0.1.0


Please see the version list below table:

VersionReleased dateCommand
thumbor_presets 0.1.32016-02-15T09:19:47Windows:

py -m pip install thumbor_presets==0.1.3

Unix/macOs:

pip install thumbor_presets==0.1.3

thumbor_presets 0.1.22016-02-15T08:56:02Windows:

py -m pip install thumbor_presets==0.1.2

Unix/macOs:

pip install thumbor_presets==0.1.2

thumbor_presets 0.1.02016-02-12T08:46:18Windows:

py -m pip install thumbor_presets==0.1.0

Unix/macOs:

pip install thumbor_presets==0.1.0


Step 4: Otherwise, you can install thumbor_presets from local archives:

Download the distribution file from thumbor_presets-0.1.3.tar.gz or the specific thumbor_presets version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_thumbor_presets_downloaded_file>

On Unix/macOs:

pip install <path_to_thumbor_presets_downloaded_file>


List distribution:


Project link:

- Homepage