diff options
| author | 2026-01-06 11:02:36 +0100 | |
|---|---|---|
| committer | 2026-01-06 11:02:36 +0100 | |
| commit | 688c54c87355b5424f33f7b089814460a74af594 (patch) | |
| tree | 03bbe3779173b3d90aede93ea6e41e64869b415b /doc | |
| parent | Version 2.86 RELEASED. (diff) | |
| download | snac2-688c54c87355b5424f33f7b089814460a74af594.tar.gz snac2-688c54c87355b5424f33f7b089814460a74af594.tar.xz snac2-688c54c87355b5424f33f7b089814460a74af594.zip | |
Implement configurable EXIF stripping for uploaded media
- Add `strip_exif` configuration option to enable metadata removal.
- Add `mogrify_path` configuration to specify external tool location.
- Implement strip_media using `mogrify -strip`.
- Support multiple image formats: jpg, png, webp, heic, heif, avif, tiff, gif, bmp.
- Add strict startup check: fail to start if `strip_exif` is enabled but `mogrify` is missing/broken.
- Update documentation in `doc/snac.8`.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/snac.8 | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -296,6 +296,14 @@ outgoing messages (default: 15). Anyway, whenever any incoming activity from a | |||
| 296 | failed instance is detected, this counter is reset for it. | 296 | failed instance is detected, this counter is reset for it. |
| 297 | .It Ic vkey | 297 | .It Ic vkey |
| 298 | Public vapid key. Used for notification on some client. | 298 | Public vapid key. Used for notification on some client. |
| 299 | .It Ic strip_exif | ||
| 300 | If set to true, EXIF metadata will be stripped from uploaded images (jpg, png, webp, heic, avif, tiff, gif, bmp). This requires the | ||
| 301 | .Nm mogrify | ||
| 302 | tool to be installed. If | ||
| 303 | .Nm snac | ||
| 304 | cannot find or execute the tool at startup, it will refuse to run. | ||
| 305 | .It Ic mogrify_path | ||
| 306 | Overrides the default "mogrify" command name or path. Use this if the tool is not in the system PATH or has a different name. | ||
| 299 | .El | 307 | .El |
| 300 | .Pp | 308 | .Pp |
| 301 | You must restart the server to make effective these changes. | 309 | You must restart the server to make effective these changes. |