Image Resize
image_resizeResize / convert an image (GD): width/height up to 4096, fit contain|cover|fill|inside, output png|jpeg|webp|gif, quality, EXIF auto-orient, metadata stripped. Body: { "image": "", "width": 256 }. Max ~190KB input image (the service caps POST bodies at 256KB, base64 included). Price: $0.01 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/image-resize
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | contain (default) | cover | fill | inside | |
| image | Yes | Base64 / data URI image (max ~190KB decoded due to the 256KB POST body limit; max 40 MP source) | |
| width | No | 1-4096 (width or height required) | |
| format | No | same (default) | png | jpeg | webp | gif | |
| height | No | 1-4096 | |
| quality | No | 1-100, default 85 | |
| background | No | Hex colour used when flattening alpha to JPEG | |
| auto_orient | No | Apply EXIF orientation (default true) |