Skip to main content
Glama

convert_image

Convert image files between formats including PNG, JPEG, WebP, GIF, BMP, TIFF, ICO, and AVIF. Specify target format, quality settings, and output location for format compatibility.

Instructions

Convert an image to a different format.

Supported formats: PNG, JPEG, WebP, GIF, BMP, TIFF, ICO, AVIF.

Args: path: Absolute path to the image file. format: Target format (e.g. 'png', 'webp', 'jpeg'). output_path: Where to save. Defaults to .<new_ext> next to input. quality: Quality for lossy formats (1-100). Default 85.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
formatYes
output_pathNo
qualityNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Adityaaery20/media-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server