Generate preview image for bitmap artwork
The bitmapArtPreview API method converts a bitmap image into a transparent PNG by removing its background. It supports multiple bitmap formats, including: JPG, GIF, BMP, TIFF, and PNG. If the input image is already a PNG or
GIF with transparent pixels, it simply converts or returns the file as needed.
POST parameters
| Parameter | Type | Required | Description |
| appId | String | ✅ | App ID from your Wilcom Developer Portal account. |
| appKey | String | ✅ | App Key from your Wilcom Developer Portal account. |
requestXml | String | ✅ | An XML string specifying the bitmap image to process. |
<xml>
<bitmap
... /> <!-- Bitmap processing instructions -->
<files>
<file filename="uploaded_logo.jpg" filecontents="..." /> <!-- Bitmap image file to process -->
Response
On success, the API returns
an XML string containing information about the source bitmap and the resulting
PNG file:
<xml>
<source_bitmap_info transparent="true" /> <!-- Input bitmap had transparency -->
<files>
<file filename="converted_logo.png" filecontents="..." /> <!-- Output PNG -->
</files>
</xml>
XML components
| Component | Details |
| <bitmap> | Specifies which bitmap file referenced in <files> will be processed. |
| <files> | Includes both the original bitmap (as received) and the resulting PNG file with transparency. |
| <file> | Simple preview image. |
| Returns metadata about the input bitmap, such as dimensions and transparency details. |
- Use the bitmapArtPreview API as a pre-processor before vectorization or digitizing.
- There are specific limitations on input bitmap files for auto-digitizing. Refer to Auto-digitize artwork limitations for guidelines and best practices.
- Input format can be any bitmap format supported by Wilcom. If:
- PNG has transparency → returned as-is.
- GIF has transparency → converted to PNG.
- Other formats → background removed and converted to PNG.
- Supported bitmap formats are listed in Supported formats section of this document.
Related Articles
Capture design bitmap
The Capture Design Bitmap feature allows you to create and download a bitmap image of a design stored in Wilcom Library. Bitmap previews are useful for sharing design visuals with customers, including designs in documentation, or referencing designs ...
Protecting against unsuitable image uploads
Auto-digitizing (automatic digitizing) converts artwork into embroidery files. The Embroidery Web API uses AI to reduce colors, define objects, and choose stitch types and directions, similar to what a human digitizer would do. ⚠️ Not all images are ...
Understanding auto-digitizing
In the Embroidery Web API, auto-digitizing uses technology from EmbroideryStudio to convert images into embroidery designs. The process is as follows... Upload an image (bitmap or vector). The Embroidery Engine generates an EMB file (Wilcom’s native ...
Remove artwork background
This note explains how the Remove Artwork Background option works in the Design Image Concept web application. Developers often expect this setting to also affect TrueView outputs from EMB files, but it only applies to artwork input images. Key ...
EWA API capabilities
Wilcom’s Embroidery Web API (EWA) provides a RESTful interface for integrating advanced embroidery capabilities into web and cloud-based applications. The API exposes functionality for rendering, modifying, and generating embroidery designs using ...