image_resize
verifiedv0.1Resize one raster in the browser by pixels, percent, or preset (discord-emoji, youtube-thumbnail, full-hd). Pass image { mime, base64 } (max 12 MiB decoded). HEIC, JXL and AVIF are not supported here. Variant URLs are not a second machine Tool — pass mode and preset explicitly. Do not upload.
Updated 9/3/2026 · Created 9/3/2026
Input Schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"image"
],
"properties": {
"fit": {
"enum": [
"cover",
"contain"
],
"type": "string",
"default": "cover"
},
"mode": {
"enum": [
"pixels",
"percent",
"preset"
],
"type": "string",
"default": "pixels"
},
"image": {
"type": "object",
"required": [
"mime",
"base64"
],
"properties": {
"mime": {
"enum": [
"image/jpeg",
"image/png",
"image/webp",
"image/avif",
"image/heic",
"image/heif",
"image/jxl"
],
"type": "string"
},
"base64": {
"type": "string",
"maxLength": 16777220,
"minLength": 1
}
},
"additionalProperties": false
},
"width": {
"type": "integer",
"maximum": 20000,
"minimum": 1
},
"height": {
"type": "integer",
"maximum": 20000,
"minimum": 1
},
"output": {
"enum": [
"auto",
"png",
"jpeg",
"webp"
],
"type": "string",
"default": "auto"
},
"preset": {
"enum": [
"discord-emoji",
"youtube-thumbnail",
"full-hd"
],
"type": "string"
},
"percent": {
"type": "number",
"default": 50,
"maximum": 400,
"minimum": 1
},
"quality": {
"type": "integer",
"default": 90,
"maximum": 100,
"minimum": 1
},
"padColor": {
"type": "string",
"default": "transparent"
},
"lockAspect": {
"type": "boolean",
"default": true
}
},
"additionalProperties": false
}Full Contract
{
"name": "image_resize",
"description": "Resize one raster in the browser by pixels, percent, or preset (discord-emoji, youtube-thumbnail, full-hd). Pass image { mime, base64 } (max 12 MiB decoded). HEIC, JXL and AVIF are not supported here. Variant URLs are not a second machine Tool — pass mode and preset explicitly. Do not upload.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"image"
],
"properties": {
"fit": {
"enum": [
"cover",
"contain"
],
"type": "string",
"default": "cover"
},
"mode": {
"enum": [
"pixels",
"percent",
"preset"
],
"type": "string",
"default": "pixels"
},
"image": {
"type": "object",
"required": [
"mime",
"base64"
],
"properties": {
"mime": {
"enum": [
"image/jpeg",
"image/png",
"image/webp",
"image/avif",
"image/heic",
"image/heif",
"image/jxl"
],
"type": "string"
},
"base64": {
"type": "string",
"maxLength": 16777220,
"minLength": 1
}
},
"additionalProperties": false
},
"width": {
"type": "integer",
"maximum": 20000,
"minimum": 1
},
"height": {
"type": "integer",
"maximum": 20000,
"minimum": 1
},
"output": {
"enum": [
"auto",
"png",
"jpeg",
"webp"
],
"type": "string",
"default": "auto"
},
"preset": {
"enum": [
"discord-emoji",
"youtube-thumbnail",
"full-hd"
],
"type": "string"
},
"percent": {
"type": "number",
"default": 50,
"maximum": 400,
"minimum": 1
},
"quality": {
"type": "integer",
"default": 90,
"maximum": 100,
"minimum": 1
},
"padColor": {
"type": "string",
"default": "transparent"
},
"lockAspect": {
"type": "boolean",
"default": true
}
},
"additionalProperties": false
}
}GET /api/tool/simpletoolstack.com/image_resize