Interface MergeImagesOptions

Options for merging multiple images.

interface MergeImagesOptions {
    align: "start" | "center" | "end";
    color: string | {
        alpha?: number;
        b?: number;
        g?: number;
        r?: number;
    };
    direction: "vertical" | "horizontal";
    margin: string | number | Dimensions;
    offset: number;
}

Properties

align: "start" | "center" | "end"

Alignment of the images ('start', 'center', or 'end'). Default is 'start'.

color: string | {
    alpha?: number;
    b?: number;
    g?: number;
    r?: number;
}

Background color. Can be a string (e.g., "#ffffff", "black", "transparent") or an object with r, g, b, and alpha properties. Default is {alpha: 1, b: 0, g: 0, r: 0}.

direction: "vertical" | "horizontal"

Direction of the merged image ('vertical' or 'horizontal').

margin: string | number | Dimensions

Margin of the result image. Can be a number, a string (CSS shorthand), or an object with top, right, bottom, and left properties.

offset: number

Offset in pixels between each image. Default is 0.