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
Name | Required | Description | Default |
---|---|---|---|
height | No | Specifies the height for image scaling. The image will be scaled to the specified height, and the width will be adjusted proportionally. | |
object_url | Yes | 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. | |
width | No | Specifies the width for image scaling. The image will be scaled to the specified width, and the height will be adjusted proportionally. |