Actions27
- Get User Info
- List Folders
- List Albums
- Get Album
- List Items in Album
- List Recent Items
- List Timeline
- Search Photos
- Get Search Filters
- Create Album
- Update Album
- Delete Album
- Get Item Details
- Update Item
- Delete Item
- Add to Favorite
- Remove from Favorite
- List Sharing
- Create Sharing Link
- Update Sharing
- Delete Sharing
- Get Thumbnail
- Download Item
- Get Settings
- Update Settings
- Get User Quota
- List Photos APIs
Get Thumbnail
AI-generatedSummary
Retrieve the thumbnail image of a specified Synology Photos item in the chosen size.
Inputs
- Item ID (required) — Unique identifier of the photo item to get the thumbnail for.
- Thumbnail Size — Size of the thumbnail image to retrieve; options are Small (96px), Medium (256px), or Large (512px), defaulting to Medium.
Output shape
A single JSON object containing the thumbnail data for the specified item.
The operation calls Synology Photos API to fetch the thumbnail for the given item ID and size. Returned data structure depends on the API response and includes thumbnail metadata and URL or image data. Errors from the API are thrown as exceptions and can be caught for handling.
Examples
Example 1: Get a medium-sized thumbnail for item with ID '12345'
Set 'Item ID' to '12345' and 'Thumbnail Size' to 'Medium (256px)'.
