pptx_compress_size
Compress a PowerPoint (.pptx) from freedailypro to a size you need, such as under 10 MB for an email or an upload form. Runs from the sharpest picture setting to the coarsest and returns the sharpest result that fits targetSize, with targetMet: true. If it cannot fit, you get the smallest file it can make with targetMet: false and a note. A deck already at or under the target is returned unchanged. Pictures (JPEG, PNG, BMP) are re-saved smaller, unused layouts and the preview picture are removed, and the file is re-packed at maximum compression; text, charts, animations, audio and video are left exactly as they are, so the deck stays fully editable. Always returns the .pptx as base64 plus originalBytes, outputBytes, reductionPercent and the pictures changed, even when it could not get smaller (a note says so).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"fileBase64": "<fileBase64>",
"targetSize": "<targetSize>"
},
"name": "pptx_compress_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxDpi | No | Never keep pictures sharper than this many dpi (48 to 300), on top of the level. | |
| fileBase64 | Yes | The presentation (.pptx), base64 encoded. Up to 50 MB and 500 slides. Old .ppt files and password-protected files are not supported. | |
| targetSize | Yes | The size to reach: a number of bytes, or text such as 10MB or 800KB (at least 1 KB) | |
| removeNotes | No | Also remove speaker notes first. Default false. | |
| removeThumbnail | No | Remove the stored preview picture. Default true; send false to keep it. | |
| removeUnusedLayouts | No | Remove slide layouts no slide uses, and the pictures only they carry. Default true; send false to keep them. |