Skip to main content
Glama

test-1

by zhendi

compress_local_image

Reduce file size of local images by compressing them, optionally preserving metadata, and saving in formats like JPEG, PNG, or WebP for optimized storage or sharing.

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" }

You must be authenticated.

Other Tools from test-1

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

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