Skip to main content
Glama

Qiniu MCP Server

Official
by qiniu

image_scale_by_size

Resize images stored in Qiniu Cloud Buckets by specifying width or height. Returns a scaled image URL for direct retrieval or viewing. Supports formats like JPEG, PNG, GIF, and more, ensuring proportional scaling within pixel limits.

Instructions

Image scaling tool that resizes images based on a specified width or height and returns information about the scaled image. The information includes the object_url of the scaled image, which users can directly use for HTTP GET requests to retrieve the image content or open in a browser to view the file. The image must be stored in a Qiniu Cloud Bucket. Supported original image formats: psd, jpeg, png, gif, webp, tiff, bmp, avif, heic. Image width and height cannot exceed 30,000 pixels, and total pixels cannot exceed 150 million.

Input Schema

NameRequiredDescriptionDefault
heightNoSpecifies the height for image scaling. The image will be scaled to the specified height, and the width will be adjusted proportionally.
object_urlYesThe URL of the image. This can be a URL obtained via the GetObjectURL tool or a URL generated by other Fop tools. Length Constraints: Minimum length of 1.
widthNoSpecifies the width for image scaling. The image will be scaled to the specified width, and the height will be adjusted proportionally.

Input Schema (JSON Schema)

{ "properties": { "height": { "description": "Specifies the height for image scaling. The image will be scaled to the specified height, and the width will be adjusted proportionally.", "minimum": 1, "type": "integer" }, "object_url": { "description": "The URL of the image. This can be a URL obtained via the GetObjectURL tool or a URL generated by other Fop tools. Length Constraints: Minimum length of 1.", "type": "string" }, "width": { "description": "Specifies the width for image scaling. The image will be scaled to the specified width, and the height will be adjusted proportionally.", "minimum": 1, "type": "integer" } }, "required": [ "object_url" ], "type": "object" }
Install Server

Other Tools from Qiniu MCP Server

Related Tools

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/qiniu/qiniu-mcp-server'

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