resize_image_preserve_aspect
Calculate image dimensions while preserving aspect ratio and clamping to integer boundaries. Use for resizing with exact dimension constraints.
Instructions
In-memory image dimension calculator with aspect ratio preservation and integer boundary clamping. (0.01 USDC on Base L2)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | Input parameters or JSON string payload for the tool execution | |
| paymentSignature | No | Base L2 USDC micropayment signature or transaction hash for x402 settlement |