Interface ConvertImageFormatOptions

Options for converting image formats.

interface ConvertImageFormatOptions {
    background?: string;
    bmpVersion?: "bmp2" | "bmp3" | "bmp4";
    margin?: number;
    trueColor?: boolean;
}

Properties

background?: string

Background color (e.g., "#ffffff", "black", "transparent").

bmpVersion?: "bmp2" | "bmp3" | "bmp4"

The version of the BMP format to use. One of "bmp2", "bmp3", or "bmp4".

margin?: number

Margin around the image (in pixels).

trueColor?: boolean

If true, uses true color for BMP conversion.