compress_remote_image
Compress remote images by providing their URL to reduce file size while maintaining quality. Supports JPEG, PNG, WebP, and AVIF formats with customizable output paths.
Instructions
Compress a remote image file by giving the URL of the image
Input Schema
Name | Required | Description | Default |
---|---|---|---|
imageUrl | Yes | The URL of the image file to compress | |
outputFormat | No | The format to save the compressed image file | |
outputPath | No | The ABSOLUTE path to save the compressed image file |
Input Schema (JSON Schema)
{
"properties": {
"imageUrl": {
"description": "The URL of the image file to compress",
"example": "https://example.com/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"
}
},
"required": [
"imageUrl"
],
"type": "object"
}