Compare images
compare_imagesCompare an optimized image to its original with an SSIMULACRA 2 similarity score and both file sizes to verify optimization quality.
Instructions
Visual similarity of an optimised image to its original, as a SSIMULACRA 2 score (100 = identical; 90+ visually lossless; 80+ very high; 70+ high; below 50 visibly degraded), plus both sizes. Use it to check results. Read-only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"original": "<original>",
"candidate": "<candidate>"
},
"name": "compare_images"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preview | No | Also return both images as small thumbnails. | |
| original | Yes | The source image. | |
| candidate | Yes | The optimised image. If its size differs, the original is resized to match before scoring. |