rotate_image
Rotate a local image with custom angle, background color, and proportional resize, then save the rotated file to disk.
Instructions
Rotate a local image using the PDF4me RotateImage API. Supports rotation angle, background color, proportionate resize, and async 202 polling. Optional output directory and file name; saves the rotated image to disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Local path to the source image. | |
| output_dir | No | ||
| rotation_angle | No | Rotation in degrees (integer, e.g. 90). | |
| background_color | No | Fill color behind rotated bounds (e.g. #FFFFFF). Sent as API key Backgroundcolor. | #FFFFFF |
| output_file_name | No | ||
| proportionate_resize | No | Whether to keep proportions during rotation (API ProportionateResize). |