X4 Help Center
7.5 7.4 German English
Auto Light Dark
Auto Light Dark
7.5 7.4 German English

Image to Image Converter

This adapter converts and scales an image file to another image format. The following formats can be read and created: BMP, GIF, JPEG, JPEG 2000, PNG, RAW, TIFF and WBMP. The image files are specified in an adapter-specific input XML document. The adapter offers the possibility of specifying formatting options during conversion.

Properties


Operation

Determines which operation the adapter executes

Possible values: Transformation : Convert image format

Parameters


Adapter

Main class of the adapter (do not change!)

Possible values: de.softproject.integration.adapter. image2image.ImageToImageAdapter: Main class (default)

width

Width of the output image in pixels (ignored if maxSize parameter is set).

Possible values: Any integer

height

Height of the output image in pixels (ignored if maxSize parameter is set).

Possible values: Any integer

maxSize

If the image is to be scaled in the original aspect ratio: Maximum width or height of the output image in pixels (width and height parameters are ignored).

Possible values:

  • Any integer

  • 0: Do not keep original aspect ratio and use width and height parameters for scaling (default).

scaleAlgorithm

Scaling algorithm used

Possible values:

  • SCALE_DEFAULT: Use standard algorithm

  • SCALE_FAST: Use fast algorithm

  • SCALE_SMOOTH: Use edge smoothing algorithm

  • SCALE_REPLICATE: Use pixel repeat algorithm

  • SCALE_AREA-AVERAGING: Use area averaging algorithm

outputFormat

Output image format

Possible values:

  • BMP: Create Windows Bitmap

  • GIF: Create GIF compressed image

  • JPEG: Create JPEG-compressed image

  • JPEG 2000: Create image in JPEG 2000 format

  • PNG: Create PNG image

  • RAW: Create raw image

  • TIFF: Create image in TIF format

  • WBMP: Create image in Wireless Bitmap format

Status values


1

The operation was executed successfully.

-1

The operation failed due to a technical error.