Convert JPEG to Optimized JPEG
Convert JPEG images to optimized JPEG format with advanced compression settings and quality preservation
API Documentation
Request Endpoint
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| imageFile | file (Upload required) | Yes | - |
| quality | range | No | Higher quality = larger file size. 90+ enables advanced optimizations |
| progressive | checkbox | No | Progressive JPEG loads in stages, improving perceived performance |
| mozjpeg | checkbox | No | Use MozJPEG for better compression (if available) |
| trellisQuantisation | checkbox | No | Advanced quantization for better compression |
| overshootDeringing | checkbox | No | Reduce ringing artifacts in compressed images |
| optimizeScans | checkbox | No | Optimize progressive scan ordering |
| quantTable | select | No | Quantization table affects quality vs compression ratio |
File type parameters need to be uploaded first via POST /upload/jpg-to-optimized-jpg to get filePath, then pass filePath to the corresponding file field.
Response Format
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}
AI MCP Documentation
Add this tool to your MCP server configuration:
{
"mcpServers": {
"elysiatools-jpg-to-optimized-jpg": {
"name": "jpg-to-optimized-jpg",
"description": "Convert JPEG images to optimized JPEG format with advanced compression settings and quality preservation",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=jpg-to-optimized-jpg",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.
Supports URL file links or Base64 encoding for file parameters.
If you encounter any issues, please contact us at [email protected]