https://github.com/elc/blur_thumbnails
A blur thumbnails generator plugin for Pelican
https://github.com/elc/blur_thumbnails
Last synced: about 1 year ago
JSON representation
A blur thumbnails generator plugin for Pelican
- Host: GitHub
- URL: https://github.com/elc/blur_thumbnails
- Owner: ELC
- License: bsd-3-clause
- Created: 2018-10-28T12:37:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-28T12:44:47.000Z (over 7 years ago)
- Last Synced: 2025-02-14T01:23:47.086Z (over 1 year ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Blur Thumbnails for Pelican
The Blur thumbnails plugin generates thumbnails with a gaussian blur at build
time, it produces an effect similar to "Medium" blog posts. Ideal for lazy
loading images with placeholders.
It requires PIL
## Installation
Set up like any other plugin, making sure to set `PLUGIN_PATH` and add `blur_thumbnails` to the `PLUGINS` list.
## Configuration
- `BLUR_PATH`: The path where all the images resides, could be the `blog` or any other folder. Make sure you configure your static folder properly.
## Usage
Once the `BLUR_PATH` is defined, the thumnails will be generated automatically. The extension will be the same and a `-thumbnail` will be added at the end of the filename. The resolution is fix to 200x200 but this could be changed in the code if need be.