Skip to main content
Glama

MCP Media Processing Server

by maoxiaoke

compress-image

Reduce PNG image file size using ImageMagick by adjusting compression quality (1-100). Specify input path, optional output path, or save to Downloads folder for efficient storage management.

Instructions

Compress PNG image using ImageMagick

Input Schema

NameRequiredDescriptionDefault
inputPathYesAbsolute path to input PNG image
outputFilenameNoOutput filename (only used if outputPath is not provided)
outputPathNoOptional absolute path for output file. If not provided, file will be saved in Downloads folder
qualityNoCompression quality (1-100)

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "inputPath": { "description": "Absolute path to input PNG image", "type": "string" }, "outputFilename": { "description": "Output filename (only used if outputPath is not provided)", "type": "string" }, "outputPath": { "description": "Optional absolute path for output file. If not provided, file will be saved in Downloads folder", "type": "string" }, "quality": { "default": 80, "description": "Compression quality (1-100)", "maximum": 100, "minimum": 1, "type": "number" } }, "required": [ "inputPath" ], "type": "object" }

Other Tools from MCP Media Processing 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/maoxiaoke/mcp-media-processor'

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