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.