Skip to main content
Glama

tinypng-mcp-server

resize_image

Resize images to specific dimensions using scale, fit, cover, or thumb methods. Adjust image width and height while maintaining quality with TinyPNG compression.

Instructions

Resize an image file

Input Schema

NameRequiredDescriptionDefault
heightYesThe height to resize the image to
imagePathYesThe ABSOLUTE path to the image file to resize
methodNoThe method describes the way your image will be resized.fit
outputPathNoThe ABSOLUTE path to save the resized image file
widthYesThe width to resize the image to

Input Schema (JSON Schema)

{ "properties": { "height": { "description": "The height to resize the image to", "example": 1024, "type": "number" }, "imagePath": { "description": "The ABSOLUTE path to the image file to resize", "example": "/Users/user/Downloads/image.jpg", "type": "string" }, "method": { "default": "fit", "description": "The method describes the way your image will be resized.", "enum": [ "scale", "fit", "cover", "thumb" ], "example": "fit", "type": "string" }, "outputPath": { "description": "The ABSOLUTE path to save the resized image file", "example": "/Users/user/Downloads/image_thumbnail.jpg", "type": "string" }, "width": { "description": "The width to resize the image to", "example": 1024, "type": "number" } }, "required": [ "imagePath", "width", "height" ], "type": "object" }

Other Tools from tinypng-mcp-server

Related Tools

    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/aiyogg/tinypng-mcp-server'

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