Skip to main content
Glama

create_thumbnail

Generate square thumbnails from images by resizing them to fit within a specified pixel dimension while preserving aspect ratio.

Instructions

Create a square thumbnail from an image.

The image is resized to fit within a square of the given size, preserving aspect ratio.

Args: path: Absolute path to the image file. size: Thumbnail size in pixels (default 256). Creates a size x size bounding box. output_path: Where to save. Defaults to _thumb..

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
sizeNo
output_pathNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Adityaaery20/media-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server