Thumbnail Extraction#
The Thumbnail Extraction pipeline step creates a preview image from the PDF file of an item and uses that image as the item thumbnail.
Enrichment name |
Thumbnail Extraction, internally referred to as “webshot” |
Stage |
processing |
Overview#
When an item has a PDF file, the step renders the first page of that file as an image and stores the image in the platform storage. The step sets the webshot_url, webshot_width, and webshot_height fields to that image, replacing any thumbnail set by the data source, and adds the image to the item files. If an item has several PDF files, the step uses the first one. If the preview image cannot be created, the step logs an error and leaves the item unchanged, and the item continues through the pipeline.
An item without a PDF file keeps the thumbnail it was loaded with. The step does not extract a thumbnail from any other source, so items from web pages, RSS feeds, and other sources without a PDF file have a thumbnail only when the data source sets webshot_url. The webshot_picture_hint field has no effect.
Of the pipeline workflow presets, only Binary Documents and Semantic Search include this step. To create thumbnails in another workflow, add the step in the Pipeline Editor.
Configuration#
Field |
Default |
Description |
|
True |
Create the preview image for items that have a PDF file. |
|
512 |
Maximum width and height of the preview image, in pixels. The image keeps its proportions. |
|
jpeg |
Format of the preview image, |