pub fn convert(
input_path: String,
output_path: String,
parameters: &CSParameters,
format: SupportedFileTypes,
) -> Result<()>Expand description
Converts an image file from the input path to a specified format and writes the converted image to the output path.
§Arguments
input_path- A string representing the path to the input image file.output_path- A string representing the path to the output converted image file.parameters- A reference toCSParameterscontaining conversion settings.format- The target format to convert the image to.
§Returns
Result<(), CaesiumError>- ReturnsOk(())if conversion is successful, otherwise returns aCaesiumError.