image_convert
verifiedv0.1Convert one raster between JPEG, PNG, WebP, AVIF, JXL and HEIC in the browser. Pass image { mime, base64 } (max 12 MiB decoded). source is a filter hint; sniffing governs decode. target is jpeg|png|webp|avif|jxl; quality 1–100 ignored for png. Variant URLs are not a second machine Tool — pass source and target explicitly. Do not upload. WASM stays in-page; abort must stop work.
Updated 9/3/2026 · Created 9/3/2026
Input Schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"image"
],
"properties": {
"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
},
"source": {
"enum": [
"auto",
"heic",
"webp",
"avif",
"jxl",
"jpeg",
"png"
],
"type": "string",
"default": "auto"
},
"target": {
"enum": [
"jpeg",
"png",
"webp",
"avif",
"jxl"
],
"type": "string",
"default": "jpeg"
},
"quality": {
"type": "integer",
"default": 90,
"maximum": 100,
"minimum": 1
}
},
"additionalProperties": false
}Full Contract
{
"name": "image_convert",
"description": "Convert one raster between JPEG, PNG, WebP, AVIF, JXL and HEIC in the browser. Pass image { mime, base64 } (max 12 MiB decoded). source is a filter hint; sniffing governs decode. target is jpeg|png|webp|avif|jxl; quality 1–100 ignored for png. Variant URLs are not a second machine Tool — pass source and target explicitly. Do not upload. WASM stays in-page; abort must stop work.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"image"
],
"properties": {
"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
},
"source": {
"enum": [
"auto",
"heic",
"webp",
"avif",
"jxl",
"jpeg",
"png"
],
"type": "string",
"default": "auto"
},
"target": {
"enum": [
"jpeg",
"png",
"webp",
"avif",
"jxl"
],
"type": "string",
"default": "jpeg"
},
"quality": {
"type": "integer",
"default": 90,
"maximum": 100,
"minimum": 1
}
},
"additionalProperties": false
}
}GET /api/tool/simpletoolstack.com/image_convert