image-tools-mcp

by kshern
Verified

compress_local_image

Reduce the size of a local image file using TinyPNG API, converting it to webp, jpeg, or png formats, and save to a specified output path.

Instructions

Compress a single local image file using TinyPNG API (only supports image files, not folders)

Input Schema

NameRequiredDescriptionDefault
optionsYesOptions for compressing local image

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "options": { "additionalProperties": false, "description": "Options for compressing local image", "properties": { "imagePath": { "description": "Absolute path to the local image file (must be a file, not a directory)", "type": "string" }, "outputFormat": { "description": "Output format (webp, jpeg/jpg, png)", "enum": [ "image/webp", "image/jpeg", "image/jpg", "image/png" ], "type": "string" }, "outputPath": { "description": "Absolute path for the compressed output image", "type": "string" } }, "required": [ "imagePath" ], "type": "object" } }, "required": [ "options" ], "type": "object" }

You must be authenticated.

Other Tools from image-tools-mcp

Related Tools

ID: ug3ciqhykv