Media
Redimensionar imagens GIF para dimensões especificadas mantendo animação e qualidade
Chame esta ferramenta a partir do seu código em três idiomas.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/gif-to-resized-gif' \
-F 'file=@/path/to/gifFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/pt/api/tools/gif-to-resized-gif' \
-F 'gifFile=/path/to/file.ext' \
-F 'resizeMode=percent' \
-F 'width=0' \
-F 'height=0' \
-F 'scalePercent=85' \
-F 'maintainAspectRatio=true' \
-F 'interpolation=lanczos3' \
-F 'multiFrameHandling=preserve-animation'Envie uma requisição POST com suas entradas em JSON. Parâmetros do tipo arquivo exigem upload prévio.
POST https://api.elysiatools.com/pt/api/tools/gif-to-resized-gif| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| gifFile | fileupload necessário | Sim | — |
| resizeMode | select | Não | — |
| width | number | Não | — |
| height | number | Não | — |
| scalePercent | number | Não | — |
| maintainAspectRatio | checkbox | Não | — |
| interpolation | select | Não | — |
| multiFrameHandling | select | Não | — |
Resultado de arquivo
{
"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)"
}Adicione esta ferramenta ao seu servidor Model Context Protocol para que agentes de IA possam listá-la e chamá-la.
Adicione este bloco à configuração do seu cliente MCP:
{
"mcpServers": {
"elysiatools-gif-to-resized-gif": {
"name": "gif-to-resized-gif",
"description": "Redimensionar imagens GIF para dimensões especificadas mantendo animação e qualidade",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=gif-to-resized-gif",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Após conectar ao endpoint SSE, liste as ferramentas expostas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoque a ferramenta pelo seu id; os argumentos são construídos a partir de seus parâmetros:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "gif-to-resized-gif",
"arguments": {
"gifFile": "https://example.com/file.ext",
"resizeMode": "percent",
"width": 0,
"height": 0,
"scalePercent": 85,
"maintainAspectRatio": true,
"interpolation": "lanczos3",
"multiFrameHandling": "preserve-animation"
}
}
}Dúvidas ou problemas? Contate [email protected]