Use the Convert component
Convert the format of an image to a different format by using the Convert component in RPA Desktop Design Studio.
Before you begin
Role required: none
About this task
You can configure the properties for the Convert component. For more information about these properties, see Properties of the Image Utilities components.
Procedure
In the Toolbox pane, navigate to Utilities > Image Utilities.
Drag the Convert component to the Design surface.
To configure the input fields, see Configure port properties.
Connect the data and control ports of the Convert component to the corresponding ports of the other components as described in the following table.
| Name | Purpose of connection | Port type | Data Type |
|---|---|---|---|
| Image | Takes the path to the current image from a previously executed component.For example, provide a file path of the image using the ReadFromFile component from Image Utilities. | Data In | Bitmap |
| Format | Takes the new image format from a previously executed component.Double click this option to select the format type from the Static Value field and select OK. For example, select Png. Image omitted: imageformat-options-convert-rpa.png Data InImage format options such as png, jpg.</p></td><td> | ImageFormat | |
| Return | Returns the image that is converted to the specified format.You can additionally add the Save component from Image Utilities to save the converted image to a different filepath. Image omitted: convert-image-utlities-rpa.png Read file path from ReadFromFile component, convert that image format using Convert component, and save it using Save component. | Data Out | Bitmap |
- To test the component, under the DESIGN tab, click Run.
Parent Topic:Image Utilities