Commit graph

5 commits

Author SHA1 Message Date
lyx0
293a47e7b0 fix naming inconsistencies. jaf -> yaf 2023-09-04 18:16:09 +02:00
noury
b55740aad7 implement file expiration, add basic frontend 2023-07-14 14:11:38 +02:00
Leon Richardt
e0afb453a5
feat: add option to scrub EXIF tags on image files
EXIF scrubbing can be enabled via the `ScrubExif` config key. When
enabled, all standard EXIF tags (as defined by the IFD mappings in the
go-exif library) are removed on uploaded JPEG and PNG images.

The `ExifAllowedIds` and `ExifAllowedPaths` config keys can be used to
selectively allow specific tags to survive the scrubbing. This can be
useful if you want to preserve image orientation information for
example. The IDs for standard tags can be found in [1].

The path specification for `ExifAllowedPaths` relies on the format
implemented in go-exif which is "documented" in machine-readable format
in [2]. Multiple paths can be specified, separated by a space. The
path format is as follows:

    1. For tags in the main section: `IFD/<GroupName>/<FieldName>`.
       Examples: `IFD/Orientation`, `IFD/Exif/Flash`,
       `IFD/GPSInfo/GPSTimeStamp`. You will probably want to use both
       [1] and [2] in combination if you plan to specify allowed tags by
       path.
    2. Tags in the thumbnail section follow the same format but paths
       start with `IFD1/` instead of `IFD`.

[1]: https://exiv2.org/tags.html
[2]: a6301f85c8/assets/tags.yaml
2022-08-23 11:40:38 +02:00
Rasmus Karlsson
fa4b60d9d3 Update example config FileDir to /var/www/jaf/
As discussed in this PR: https://github.com/leon-richardt/jaf/pull/2
2022-08-14 13:26:17 +02:00
Leon Richardt
2b9de72507
initial commit 2020-10-27 17:18:07 +01:00