test-1

Apache 2.0

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

ID: 18korksmvb