Skip to main content
Glama

tinypng-mcp-server

compress_local_image

Reduce image file size by compressing local images while maintaining quality. Specify input and output paths, choose format, and optionally preserve metadata.

Instructions

Compress a local image file

Input Schema

NameRequiredDescriptionDefault
imagePathYesThe ABSOLUTE path to the image file to compress
outputFormatNoThe format to save the compressed image file
outputPathNoThe ABSOLUTE path to save the compressed image file
preserveMetadataNoThe metadata to preserve in the image file

Input Schema (JSON Schema)

{ "properties": { "imagePath": { "description": "The ABSOLUTE path to the image file to compress", "example": "/Users/user/Downloads/image.jpg", "type": "string" }, "outputFormat": { "description": "The format to save the compressed image file", "enum": [ "image/jpeg", "image/png", "image/webp", "image/jpg", "image/avif" ], "example": "image/jpeg", "type": "string" }, "outputPath": { "description": "The ABSOLUTE path to save the compressed image file", "example": "/Users/user/Downloads/image_compressed.jpg", "type": "string" }, "preserveMetadata": { "description": "The metadata to preserve in the image file", "items": { "enum": [ "copyright", "creation", "location" ], "type": "string" }, "type": "array" } }, "required": [ "imagePath" ], "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