You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ The difference between this plugin and the lektor [thumbnail](https://www.getlek
11
11
TL;DR: What does this plugin do?
12
12
---------------------------------
13
13
+ It will generate ``JPEG`` images in the sizes you configured of all images in your Lektor content.
14
-
+ It try to optimize the images with the [guetzli](https://github.com/google/guetzli) JPEG encoder. *(You have to install the guetzli binary by yourself)*
14
+
+ It can optionally optimize the images with the [guetzli](https://github.com/google/guetzli) JPEG encoder. *(You have to install the guetzli binary by yourself)*
15
15
16
16
Usage
17
17
-------
@@ -29,7 +29,7 @@ To install the plugin, just add ``lektor-image-resize`` to your plugins from the
29
29
lektor plugins add lektor-image-resize
30
30
```
31
31
32
-
You **have to install** the [guetzli](https://github.com/google/guetzli) JPEG encoder.
32
+
If you want to use the [guetzli](https://github.com/google/guetzli) JPEG encoder for image post-processing, you have to install it manually.
33
33
```bash
34
34
# example
35
35
apt install guetzli
@@ -54,12 +54,16 @@ max_height = 800
54
54
55
55
[woowee]
56
56
max_width = 2000
57
+
use_guetzli = True
57
58
```
58
59
59
60
Will take a file called `waffle.jpg` and create the files `waffle-small.jpg`,
60
61
`waffle-medium.jpg` and `waffle-woowee.jpg`. All the files will be created, regardless
61
62
of whether the original file is smaller, so you can link without worrying
62
63
whether a file will exist or not. If the original file is smaller than the width
63
64
you have specified, the file will only be copied, and will not be resized.
65
+
66
+
If you want to run guetzli at the generated output, set ``use_guetzli`` to ``True``.
67
+
64
68
The `max_width`/`max_height` parameters work like for the [Lektor
0 commit comments