Media
Convert TIFF images to compressed TIFF format with various compression methods and optimization settings
Call this tool from your code in three languages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/tiff-to-compressed-tiff' \
-F 'file=@/path/to/imageFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/en/api/tools/tiff-to-compressed-tiff' \
-F 'imageFile=/path/to/file.ext' \
-F 'compression=lzw' \
-F 'quality=80' \
-F 'predictor=horizontal' \
-F 'tiling=false' \
-F 'tileWidth=256' \
-F 'tileHeight=256' \
-F 'pyramid=false' \
-F 'keepMetadata=false'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/tiff-to-compressed-tiff| Name | Type | Required | Description |
|---|---|---|---|
| imageFile | fileupload required | Yes | — |
| compression | select | No | — |
| quality | range | No | Quality for lossy compression (1-100, higher = better quality) |
| predictor | select | No | — |
| tiling | checkbox | No |
| Use tiled TIFF format for better memory efficiency |
| tileWidth | number | No | Tile width in pixels (only if tiling is enabled) |
| tileHeight | number | No | Tile height in pixels (only if tiling is enabled) |
| pyramid | checkbox | No | Create multi-resolution image pyramid |
| keepMetadata | checkbox | No | Preserve original image metadata (EXIF, IPTC, XMP) |
File result
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-tiff-to-compressed-tiff": {
"name": "tiff-to-compressed-tiff",
"description": "Convert TIFF images to compressed TIFF format with various compression methods and optimization settings",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=tiff-to-compressed-tiff",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "tiff-to-compressed-tiff",
"arguments": {
"imageFile": "https://example.com/file.ext",
"compression": "lzw",
"quality": 80,
"predictor": "horizontal",
"tiling": false,
"tileWidth": 256,
"tileHeight": 256,
"pyramid": false,
"keepMetadata": false
}
}
}Questions or issues? Contact [email protected]