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.
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. |