The <bitmap> XML element defines the bitmap image to be used for auto-digitizing or artwork generation. It
specifies the source file and whether to automatically remove the background.
XML structure
<bitmap <!--
Root element: bitmap recipe -->
file="logo.jpg" <!-- Filename of the bitmap (must match an entry in <files>) -->
remove_background="true" <!-- Whether to auto-remove the background (default: true) -->
/>
Usage
The bitmap XML is
provided as input to the following API functions:
- api/bitmapArtPreview
- api/bitmapArtTrueview
- api/bitmapArtDesign
Attributes
Attribute | Type | Description |
file | string | - Required. Name of the bitmap file — e.g. 'logo.jpg', 'image.png'.
- Must match a file listed in the <files> XML block by filename.
|
remove_background | boolean | - Optional. Instructs the system to automatically detect and remove the bitmap's background.
- Defaults to 'true'.
- Ignored if the input image is already transparent — e.g. PNG with alpha.
|
- The bitmap is referenced by filename only — its actual contents must be included in the <files> XML structure.
- The remove_background option allows EWA (Embroidery Web API) to remove solid or flat backgrounds automatically. If the image has transparency, this setting has no effect.
- The bitmap element is simple but extensible — additional options may be added in the future to support more advanced image handling.
- There are specific limitations on input bitmap files for auto-digitizing. Refer to Auto-digitize artwork limitations for guidelines and best practices.
- 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 ...
EWA API getting started
These notes guide developers through the initial setup, authentication, API calling structure, and development tools available for integrating the Wilcom Embroidery Web API into web applications. ✅ Step 1: Sign up and get API credentials Visit the ...
EWA API technical notes
Wilcom’s Embroidery Web API is a cloud-hosted, RESTful interface that enables developers to integrate professional embroidery design and personalization features into websites, e-commerce platforms, or internal systems. The API supports rendering, ...
Supported file formats
The Wilcom Embroidery Web API supports a wide range of embroidery-specific and artwork input/output formats to ensure compatibility with professional embroidery workflows and machine types. This format support enables seamless integration across ...
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 ...