List compression profiles, estimate gains, and compress images, PDFs, and Office files.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Compress a file and return the result as base64. Pass fileBase64 + fileName. Choose EITHER a preset 'level' (light|balanced|maximum, default balanced) OR a 'custom' profile { imageQuality: 1-100, maxDimension?: px, convertFormat?: webp|avif|jpeg } -- supplying both is rejected. Supported families: images (PNG/JPG/WebP/AVIF), PDF (embedded JPEG images re-encoded, no AGPL tool), and Office OOXML (DOCX/PPTX/XLSX embedded media re-encoded). Returns fileBase64, bytesBefore, bytesAfter, gainPercent, mimeType and the output format. If compression would enlarge a non-converted file, the original is returned with 0% gain. WARNING: convertFormat 'avif' is CPU/RAM heavy (>= 1 GB RAM for large images). Max input size: 26214400 decoded bytes.
This tool isn't marked read-only, so it may change something on the server or in an account you connected.
Compress a file and return the result as base64. Pass fileBase64 + fileName. Choose EITHER a preset 'level' (light|balanced|maximum, default balanced) OR a 'custom' profile { imageQuality: 1-100, maxDimension?: px, convertFormat?: webp|avif|jpeg } -- supplying both is rejected. Supported families: images (PNG/JPG/WebP/AVIF), PDF (embedded JPEG images re-encoded, no AGPL tool), and Office OOXML (DOCX/PPTX/XLSX embedded media re-encoded). Returns fileBase64, bytesBefore, bytesAfter, gainPercent, mimeType and the output format. If compression would enlarge a non-converted file, the original is returned with 0% gain. WARNING: convertFormat 'avif' is CPU/RAM heavy (>= 1 GB RAM for large images). Max input size: 26214400 decoded bytes.
| Argument | Type | Description |
|---|---|---|
| level | string | |
| custom | object | |
| fileName* | string | |
| fileBase64* | string |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"fileBase64",
"fileName"
],
"properties": {
"level": {
"enum": [
"light",
"balanced",
"maximum"
],
"type": "string"
},
"custom": {
"type": "object",
"required": [
"imageQuality"
],
"properties": {
"imageQuality": {
"type": "integer",
"maximum": 100,
"minimum": 1
},
"maxDimension": {
"type": "integer",
"maximum": 20000,
"minimum": 16
},
"convertFormat": {
"enum": [
"webp",
"avif",
"jpeg"
],
"type": "string"
}
},
"additionalProperties": false
},
"fileName": {
"type": "string",
"minLength": 1
},
"fileBase64": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}Detect a file (family, format, size from magic bytes) and estimate the compression gain by ACTUALLY compressing it. Pass the file as base64 (fileBase64) plus its fileName (the extension disambiguates Office formats). Omit 'level' to estimate all three presets, or set it for a single one. Returns the detected metadata and, per level, the resulting byte size, gain percentage and output format. Max input size: 26214400 decoded bytes; the HTTP body must accept base64 (decoded x 4/3 plus margin).
| Argument | Type | Description |
|---|---|---|
| level | string | |
| fileName* | string | |
| fileBase64* | string |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"fileBase64",
"fileName"
],
"properties": {
"level": {
"enum": [
"light",
"balanced",
"maximum"
],
"type": "string"
},
"fileName": {
"type": "string",
"minLength": 1
},
"fileBase64": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}List the three compression presets (light, balanced, maximum) with their exact image quality and max-dimension caps, a note per preset, and the maximum accepted input size. Values are kept in parity with the Compresseur Local web app. Takes no parameters.
No arguments.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
}