Skip to main content

DocImageHandler

Defines how document images are saved and referenced during crawling.

Notesโ€‹

Controls how document images are handled during crawling, including the output format, target directory, directory structure, and where image references are stored in document metadata.

Usageโ€‹

imageFormat: string
targetDir: string
targetDirField: string
targetDirStructure: URL2PATH
targetMetaField: string
targets:
- METADATA

Propertiesโ€‹

PropertyTypeRequiredDefault
imageFormatstringNopng
targetDirstringNo-
targetDirFieldstringNo-
targetDirStructureenumNoDATETIME
targetMetaFieldstringNo-
targetsenum[]No[DIRECTORY]

Property Detailsโ€‹

imageFormatโ€‹

The image format used when saving images to disk (e.g., png, jpeg, gif). Defaults to png.

targetDirโ€‹

Directory path where captured images are saved when DIRECTORY is one of the configured targets.

targetDirFieldโ€‹

Name of the metadata field where the path to the saved image file is stored. Only populated when DIRECTORY is one of the configured targets.

targetDirStructureโ€‹

Directory structure used when saving images to disk. One of:

  • URL2PATH โ€” Creates subdirectories derived from the document URL segments.
  • DATE โ€” Creates subdirectories organized by date (e.g., 2000/12/31/).
  • DATETIME โ€” Creates subdirectories organized by date and time down to seconds (e.g., 2000/12/31/13/34/12/). This is the default.

Allowed Valuesโ€‹

  • URL2PATH
  • DATE
  • DATETIME

targetMetaFieldโ€‹

Name of the metadata field where the image itself is stored as a Base64-encoded string. Only populated when METADATA is one of the configured targets.

targetsโ€‹

One or more storage destinations for captured images. Supported values:

  • DIRECTORY โ€” Saves the image to a local directory (default).
  • METADATA โ€” Stores the image as a Base64-encoded value in a metadata field.