api/bitmapArtPreview

Action:

The API accepts a bitmap image, makes the background as transparent and converts the image to PNG format.

The supported bitmap image formats are listed here:  Bitmap formats

The original PNG file will be returned if the input PNG already has transparent pixels.

If the input GIF already has transparent pixels, only converts it to PNG.

Post Parameters:

  • appId: Application id of Wilcom API Develop Portal account.
  • appKey: Application key of Wilcom API Develop Portal account.
  • requestXml: an XML string containing a single bitmap file:
<xml>
  <bitmap … />
  <files>
    <file ... />				// bitmap  file.
  </files>
</xml>

Return Values:

On success, an XML string containing the design information:

<xml>
  <source_bitmap_info  .. /> 			// source bitmap  information
  <files>
    <file ... />				// result PNG file.
  </files>
</xml>

Remarks:

The bitmap appoints which file will be processed in files . Please read Bitmap Recipe: bitmap XML Data for more information.

The source_bitmap_info returns some properties of the input bitmap. Please read Source Bitmap Recipe: source_bitmap_info XML Data for more information.

The files contains the file name and file content of bitmap files in request which will be processed and processed image in the return. Please read Files: files XML Data for more information.