Actions90
- Sessions Actions
- Messages - Sending Actions
- Chats Actions
- Messages - Actions Actions
- Groups Actions
- List Groups
- Group Info
- Get Invite Link
- Revoke Invite Link
- Join via Link
- Preview via Link
- Create Group
- Delete Group
- Update Group Description
- Toggle Announcement Mode
- List Participants
- Add Participants
- Remove Participants
- Demote Participants
- Approve Join Request
- Reject Join Request
- List Join Requests
- Get Group Picture
- Set Group Picture
- Delete Group Picture
- Leave Group
- Update Group Name
- Lock Group Edits
- Promote Participants
- Profile Actions
- Server Actions
- Miscellaneous Actions
Overview
This node operation creates a thumbnail image or video frame from a given media file. It supports input as a base64 payload, HTTPS URL, or local file path. Users can specify the media type (image or video) and configure additional options such as output format, dimensions, frame count for videos, MIME type, and file hash. This operation is useful for generating smaller preview images or thumbnails for media files, which can be used in messaging apps, galleries, or content management systems.
Use Case Examples
- Generating a thumbnail image from a user-uploaded photo to display as a preview in a chat application.
- Creating a video thumbnail frame to show a preview image before playing the video in a media player.
- Automatically resizing and converting images to thumbnails for faster loading on websites or mobile apps.
Properties
| Name | Meaning |
|---|---|
| File | The input media file to create a thumbnail from, provided as a base64 payload, HTTPS URL, or local path. |
| Media Type | Specifies whether the input file is an image or a video, affecting how the thumbnail is generated. |
| Additional Fields | Optional settings to customize the thumbnail output, including output format, dimensions, frame count for videos, MIME type, and file SHA256 hash. |
Output
JSON
json- The resulting thumbnail data, which can be in various formats depending on the output option selected (e.g., base64 string, file path, or URL).
Dependencies
- Requires an API key credential for the WARest WhatsApp REST API to perform the thumbnail creation.
Troubleshooting
- Ensure the input file is accessible and correctly formatted as base64, URL, or local path; otherwise, the thumbnail generation will fail.
- Verify that the media type matches the actual file type (image or video) to avoid processing errors.
- Check that the additional fields for output format and dimensions are valid and supported by the API.
- Common error messages may include invalid file input, unsupported media type, or API authentication errors. Verify credentials and input parameters to resolve these issues.
