diff options
| author | Stefano Marinelli <stefano@dragas.it> | 2026-01-06 11:02:36 +0100 |
|---|---|---|
| committer | Stefano Marinelli <stefano@dragas.it> | 2026-01-06 11:02:36 +0100 |
| commit | 688c54c87355b5424f33f7b089814460a74af594 (patch) | |
| tree | 03bbe3779173b3d90aede93ea6e41e64869b415b /snac.h | |
| parent | b84b92df74ed0e8f92617e37fdcb2f0aba2138cf (diff) | |
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 'snac.h')
| -rw-r--r-- | snac.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -105,6 +105,9 @@ int validate_uid(const char *uid); xs_str *hash_password(const char *uid, const char *passwd, const char *nonce); int check_password(const char *uid, const char *passwd, const char *hash); +int strip_media(const char *fn); +int check_strip_tool(void); + void srv_archive(const char *direction, const char *url, xs_dict *req, const char *payload, int p_size, int status, xs_dict *headers, |