PictureResize
CUTools
Description
Resize images with professional quality! PictureResize scales screenshots, photos, and graphics to the dimensions you want - perfect for documentation, web uploads, and presentations!
With different scaling modes (stretch, fit, crop), quality settings, and interpolation algorithms, you get optimal results for every use case - directly and without external software!
Why This Tool Stands Out
- Flexible Scaling to any size
- High Quality through interpolation
- Multiple Modes (stretch/crop)
- Batch Processing possible
Perfect for:
Tech writers, web developers, content creators, and anyone who needs to optimize images for different platforms. Ideal for documentation, websites, social media, and email attachments.
Workflow support; time savings depend on the task
Instead of opening image editing software, adjusting settings, and saving, you scale images with a single API call - ideal for automated documentation workflows.
JSON Parameters
- inputPath REQUIRED (String)Path to the input image to be scaled.
- outputPath OPTIONAL (String)Path for the output image. If omitted, the original is overwritten.
- width REQUIRED (Integer)The desired width in pixels. Use 0 for automatic calculation based on the height.
- height REQUIRED (Integer)The desired height in pixels. Use 0 for automatic calculation based on the width.
- mode OPTIONAL (String)Scaling mode: "stretch" (stretching), "fit" (fit with empty space), "fill" (fit with cropping), "crop" (cropping). Default: "fit"
- quality OPTIONAL (Integer)Image quality for compressed formats (1-100). Default: 90
- maintainAspectRatio OPTIONAL (Boolean)Preserve aspect ratio. Default: true
Example Call
{
"tool": "PictureResize",
"params": {
"inputPath": "C:\\Images\\screenshot.png",
"outputPath": "C:\\Images\\screenshot_thumb.jpg",
"width": 300,
"height": 200,
"mode": "fit",
"quality": 85
}
}
Example Usage
Typical AI Command
- "Create a thumbnail of the screenshot at 300x200 pixels for the documentation."
Return Values
The tool returns an object with the following properties:
- success (Boolean)
True if the scaling was successful - outputPath (String)
Path to the scaled image - originalWidth (Integer)
Original width in pixels - originalHeight (Integer)
Original height in pixels - newWidth (Integer)
New width in pixels - newHeight (Integer)
New height in pixels - format (String)
Image format of the output image - error (String, optional)
Error message if the scaling failed
Related Tools
Download CUTools
Get access to all 17 Computer Use tools for Windows automation.
Download Now