Image Transformation

Last modified by Eva Torken on 2023/12/07 14:58

In most cases, you will transform XML messages to other XML messages, or you will transform JSON or EDI messages in another of these formats. However, sometimes you want to perform an image transformation. With this image transformation, you can convert images in specific formats to another format (i.e., png). This can come in handy when you want to standardize the image format before using it further downstream in your business application(s).

Should you have any questions, please get in touch with academy@emagiz.com.

1. Prerequisites

  • Expert knowledge of the eMagiz platform

2. Key concepts

This microlearning focuses on performing image transformations in eMagiz.

By image transformation, we mean transforming the raw data that represents an image into another image format.

  • Read the help text of the component to understand which formats are supported
  • Ensure the input image is supplied in the correct format
  • Ensure you wrap the output image in something if you want to do additional transformations on the data further downstream

3. Image Transformation

In most cases, you will transform XML messages to other XML messages, or you will transform JSON or EDI messages in another of these formats. However, sometimes you want to perform an image transformation. With this image transformation, you can convert images in specific formats to another format (i.e., png). This can come in handy when you want to standardize the image format before using it further downstream in your business application(s).

Before we dive into the specifics of how to configure this, let us first consider the following:

  • Read the help text of the component to understand which formats are supported
  • Ensure the input image is supplied in the correct format
  • Ensure you wrap the output image in something if you want to do additional transformations on the data further downstream

 This microlearning focuses on the image transformer component. Ensuring that the input is valid and the output fits the remainder of the process is highly dependent on the use case and will therefore not be discussed in this microlearning

When turning to the Create phase of eMagiz, we need to open the flow and enter "Start Editing" mode to add the necessary component. For example, in the left panel, you can search for "Image." This will yield the following result.

expert-create-your-transformations-image-transformation-image-transformation-component.png

After dragging the component onto the canvas, you must define the channels first.

expert-create-your-transformations-image-transformation-image-transformation-component-help.png

Secondly, we must select the desired image format we want to transform. Finally, the field indicates all valid values you can choose. Please note that 'PNG' is the default selection.

expert-create-your-transformations-image-transformation-image-transformation-component-image-options.png

Once you have done this, the component configuration is finished, and you can transform your input image to a desired output image format.

4. Key takeaways

  • Read the help text of the component to understand which formats are supported
  • Ensure the input image is supplied in the correct format
  • Ensure you wrap the output image in something if you want to do additional transformations on the data further downstream

5. Suggested Additional Readings

If you are interested in this topic and want more information, please read the help text provided by eMagiz.