convert_image_format
Convert local images between BMP, GIF, JPG, PNG, and TIFF formats. Specify source path, current format, and target format to get a converted file.
Instructions
Convert a local image between formats (BMP, GIF, JPG, PNG, TIFF) using the PDF4me ConvertImageFormat API. Provide the local image path plus current and new format. Supports sync/async processing and optional output directory and output file name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Local path to the source image. | |
| output_dir | No | ||
| new_image_format | No | Target image format (BMP, GIF, JPG, PNG, TIFF). | PNG |
| output_file_name | No | ||
| current_image_format | No | Source image format (BMP, GIF, JPG, PNG, TIFF). | JPG |