rotate_image_by_exif_data
Automatically rotate images to correct orientation using EXIF metadata, saving the result to a specified output directory.
Instructions
Automatically rotate a local image according to EXIF orientation metadata using the PDF4me RotateImageByExifData API. Supports async 202 polling. Requires output_dir; saves the rotated image under that directory.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>",
"output_dir": "<output_dir>"
},
"name": "rotate_image_by_exif_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Local path to the source image. | |
| output_dir | Yes | Directory for the output image (required). | |
| output_file_name | No |