switched to Pillow, as it is way faster (4s vs 12s)

This commit is contained in:
2024-07-02 07:56:00 +02:00
committed by Flo Greistorfer
parent 58f63d6987
commit bd2f20188f
2 changed files with 11 additions and 8 deletions

View File

@@ -22,14 +22,14 @@
- `numpy` library
- `tqdm` library
- `Jinja2` library
- `ImageMagick`
- `Pillow` library
## Installation
Install the required libraries using pip:
```sh
pip install numpy tqdm Jinja2
pip install numpy tqdm Jinja2 Pillow
```
## Usage
@@ -91,7 +91,6 @@ To exclude specific folders and specify file extensions:
## Notes
- The root and web root paths must point to the same folder, one on the filesystem and one on the web server. Use absolute paths.
- Ensure that ImageMagick is installed and accessible in your system for thumbnail generation.
- The script generates the preview thumbnails in a `.thumbnails` subdirectory within the root folder.
- The `.lock` file prevents multiple instances of the script from running simultaneously. Make sure to remove it if the script terminates unexpectedly.