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
Name | Required | Description | Default |
---|---|---|---|
inputPath | Yes | Absolute path to input PNG image | |
outputFilename | No | Output filename (only used if outputPath is not provided) | |
outputPath | No | Optional absolute path for output file. If not provided, file will be saved in Downloads folder | |
quality | No | Compression 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"
}