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

  1. In the Toolbox pane, navigate to Utilities > Image Utilities.
  2. Drag the Convert component to the Design surface.
  3. To configure the input fields, see Configure port properties.
  4. Connect the data and control ports of the Convert component to the corresponding ports of the other components as described in the following table.
    Table 1. Convert component parameters
    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.

    Figure 1. Image format options
    Image format options such as png, jpg.
    Data In 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.

    Figure 2. Convert component using other components
    Read file path from ReadFromFile component, convert that image format using Convert component, and save it using Save component.
    Data Out Bitmap
  5. (Optional) To test the component, under the DESIGN tab, click Run.