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โ
- YAML
- JSON
- XML
imageFormat: string
targetDir: string
targetDirField: string
targetDirStructure: URL2PATH
targetMetaField: string
targets:
- METADATA
{
"imageFormat": "string",
"targetDir": "string",
"targetDirField": "string",
"targetDirStructure": "URL2PATH",
"targetMetaField": "string",
"targets": [
"METADATA"
]
}
<docImageHandler>
<imageFormat>string</imageFormat>
<targetDir>string</targetDir>
<targetDirField>string</targetDirField>
<targetDirStructure>URL2PATH</targetDirStructure>
<targetMetaField>string</targetMetaField>
<targets>
<target>METADATA</target>
</targets>
</docImageHandler>
Propertiesโ
| Property | Type | Required | Default |
|---|---|---|---|
imageFormat | string | No | png |
targetDir | string | No | - |
targetDirField | string | No | - |
targetDirStructure | enum | No | DATETIME |
targetMetaField | string | No | - |
targets | enum[] | 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โ
URL2PATHDATEDATETIME
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.