Generate Attachment Cover

Generate Attachment Cover Processor #

Generates a cover image and a thumbnail for an attachment.

The generated cover and thumbnail are stored in the attachment metadata and can be retrieved via the attachment API.

Supported formatNotes
PDFCover from the first page
PPTX / DOCX / XLSX and OpenDocument equivalentsCover from the first page
MarkdownRendered cover
ImageThumbnail of the image itself

Requirements/Dependencies #

ToolRequired for
pdftoppm (poppler-utils)PDF cover generation
LibreOffice (soffice)Office document cover generation
Chromium (headless)Markdown rendered cover

Configuration #

ParameterTypeRequiredDefaultDescription
message_fieldstringNomessagesPipeline context key for the input messages

Example #

- generate_attachment_cover: {}
Edit Edit this page