|
1 | | -""" An image optimization module to optimize the following image formats: |
| 1 | +"""An image optimization module to optimize the following image formats: |
2 | 2 |
|
3 | | - - JPEG (using optimize-images) |
4 | | - - PNG (using optimize-images) |
5 | | - - GIF (using gifsicle with lossy optimization) |
6 | | - - WebP (using Pillow) |
| 3 | +- JPEG (using optimize-images) |
| 4 | +- PNG (using optimize-images) |
| 5 | +- GIF (using gifsicle with lossy optimization) |
| 6 | +- WebP (using Pillow) |
7 | 7 |
|
8 | | - Some important notes: |
9 | | - - This makes use of the --lossy option from gifsicle which is present |
10 | | - only in versions above 1.92. |
11 | | - If the package manager has a lower version, you can build gifsicle |
12 | | - from source and install or |
13 | | - do not use the lossiness option. |
| 8 | +Some important notes: |
| 9 | +- This makes use of the --lossy option from gifsicle which is present |
| 10 | + only in versions above 1.92. |
| 11 | + If the package manager has a lower version, you can build gifsicle |
| 12 | + from source and install or |
| 13 | + do not use the lossiness option. |
14 | 14 |
|
15 | | - - Presets for the optimizer are available in zimscraperlib.image.presets. |
| 15 | +- Presets for the optimizer are available in zimscraperlib.image.presets. |
16 | 16 |
|
17 | | - - If no options for an image optimization is passed, the optimizer |
18 | | - can still run on default settings which give |
19 | | - a bit less size than the original images but maintain a high quality. """ |
| 17 | +- If no options for an image optimization is passed, the optimizer |
| 18 | +can still run on default settings which give |
| 19 | + a bit less size than the original images but maintain a high quality.""" |
20 | 20 |
|
21 | 21 | import io |
22 | 22 | import os |
|
0 commit comments