thumbor-wand-engine is an ImageMagick imaging engine for thumbor.
You can install the package from PyPI with pip
:
$ pip install thumbor-wand-engine
- Python 3.7 or higher
- MagickWand library
libmagickwand-dev
for APT on Debian/UbuntuImageMagick-devel
for Yum on CentOSimagemagick
for MacPorts/Homebrew on Mac
Thumbor ships with a builtin engine, however with thumbor-wand-engine you get:
- Smaller images β³ π²
- Better image quality π€©
- Support to animated WEBP β³ π²
- Support to AVIF and HEIC πΌ
- IPTC/XMP data preservation π
- Smoother blur β¨
- Sharper resizing π
- Better watermarking π·
To use this engine with thumbor, define thumbor_wand_engine
as the imaging
engine in thumbor.conf
:
# imaging engine to use to process images
ENGINE = "thumbor_wand_engine"
- Python 3.6 or higher
- An activated virtual environment
- pre-commit
-
Start by creating a new Python virtual environment with the tool of your choice (we recommend pyenv)
-
Install pre-commit (we recommend installing it not as part of the virtual environment βΒ use your system's package manager)
-
Install thumbor-wand-engine in editable mode with all required dependencies:
$ make setup
Once you have a working development environment:
-
Code!
π€ π€ π‘ β‘οΈ πΌ
-
Run tests
$ make test
-
Check code coverage
$ make coverage-html $ open htmlcov/index.html
-
Lint the code:
$ make lint
-
Repeat!
Have fun!
Code in this repository is distributed under the terms of the MIT License.
See LICENSE for details.