Synology Drive icon

Synology Drive

Synology Drive / FileStation operations

Get File Thumbnail

AI-generated

Summary

Retrieve a thumbnail image of a specified file from Synology Drive, specifying the file path and desired thumbnail size.

Inputs

  • File Path (required) — Path to the file for which to get the thumbnail.
  • Thumbnail Size — Size of the thumbnail image to retrieve; options are Small (96x96), Medium (256x256, default), and Large (512x512).

Output shape

a JSON object containing the thumbnail data, as returned by the SYNO.SynologyDrive.Files API 'get_thumbnail' method

The output includes the result of the API call to get the thumbnail. Additional parameters may be merged from 'extraParamsJson' if provided. The returned data structure depends on Synology's API response format for the thumbnail request.

Examples

Example 1: Fetch a medium-sized thumbnail for a file located at '/documents/report.pdf'.

Set 'File Path' to '/documents/report.pdf' and 'Thumbnail Size' to 'medium'.

Links

Discussion