Skip to main content

Image metadata cleaning with exiftool

To use this feature, install exiftool (libimage-exiftool-perl package for Ubuntu/Debian) and make sure exiftool executable exist and and visible in PATH

Available options in .env:

# available modes: none, sanitize, scrub
# can be set differently for user uploaded and external media
EXIF_CLEAN_MODE_UPLOADED=sanitize
EXIF_CLEAN_MODE_EXTERNAL=none
# path to exiftool binary, leave blank for auto PATH search
EXIF_EXIFTOOL_PATH=
# max execution time for exiftool in seconds, defaults to 10 seconds
EXIF_EXIFTOOL_TIMEOUT=10

Available cleaning modes:

  • none: no metadata cleaning would be done.
  • sanitize: removes GPS and serial number metadata. this is the default for uploaded images.
  • scrub: removes most of image metadata save for those needed for proper image rendering and XMP IPTC attribution metadata.