feat: ADD optional exif data removable in files #18
This commit is contained in:
parent
5b6edac236
commit
7a8ecafc3a
4 changed files with 99 additions and 3 deletions
20
README.md
20
README.md
|
|
@ -28,6 +28,7 @@ Show cases:
|
|||
- HTML anchors for headers
|
||||
- list random posts at the bottom
|
||||
- optional RSS feeds
|
||||
- automatic EXIF/metadata stripping from images (privacy)
|
||||
|
||||
**Ideas**:
|
||||
- custom error pages (404, etc)
|
||||
|
|
@ -75,6 +76,25 @@ EXCLUDE_SECTIONS_FROM_MAIN = ['draft', 'private']
|
|||
|
||||
This is useful for draft posts or topic-specific content you want separated from the main index.
|
||||
|
||||
### Images
|
||||
|
||||
Images placed in `images/` are copied to `output/images/`. By default picopaper
|
||||
strips metadata (EXIF, GPS location, XMP, PNG text chunks) from them during the
|
||||
build so nothing like camera model or GPS coordinates is published. The source
|
||||
files in `images/` are never modified — only the copies in `output/`.
|
||||
|
||||
JPEGs are re-encoded with their original quantization tables (`quality="keep"`),
|
||||
so there is no quality loss. Animated images (GIF/WebP) and unsupported formats
|
||||
(e.g. SVG) are copied as-is.
|
||||
|
||||
**Configuration in `config.py`:**
|
||||
```python
|
||||
STRIP_IMAGE_EXIF = True # set to False to copy images byte-for-byte
|
||||
```
|
||||
|
||||
Metadata stripping uses [Pillow](https://python-pillow.org/). If Pillow is not
|
||||
installed, picopaper prints a warning and copies images unchanged.
|
||||
|
||||
---
|
||||
|
||||
## Installation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue