@adcp/sdk API Reference - v14.3.0
    Preparing search index...

    Interface ImageAsset

    Override logo asset.

    interface ImageAsset {
        asset_type: "image";
        url: string;
        width: number;
        height: number;
        file_size_bytes?: number;
        pixel_ratio?: number;
        state_id?: string;
        breakpoint_id?: string;
        focal_point?: [number, number];
        format?: string;
        alt_text?: string;
        provenance?: Provenance;
    }
    Index
    asset_type: "image"

    Discriminator identifying this as an image asset. See /schemas/creative/asset-types for the registry.

    url: string

    URL to the image asset

    width: number

    Width in pixels

    height: number

    Height in pixels

    file_size_bytes?: number

    Image file size in bytes. Required by agents that advertise a max_file_size_kb constraint.

    pixel_ratio?: number

    Intrinsic pixels per logical render pixel (for example 2 for a 600×500 image intended to render at 300×250). Optional because a validator can infer the ratio when the target format declares logical dimensions. When supplied, it MUST agree with both width / logical_width and height / logical_height; it is never a substitute for the intrinsic width and height fields.

    state_id?: string

    Binding used only when this image populates a seller_rendered_stateful_display state_canvases slot. It MUST match one declared states[].state_id (semantic validators resolve it). Omit for ordinary image slots.

    breakpoint_id?: string

    Binding used only when this image populates a seller_rendered_stateful_display state_canvases slot. It MUST match one breakpoint declared on the selected state (semantic validators resolve it). Omit for ordinary image slots.

    focal_point?: [number, number]

    Normalized [x, y] coordinates (0–1 from top-left) of the image's visual anchor. Seller-side renderers crop toward the focal point when deriving renditions across breakpoints and aspect ratios; absent, cropping falls back to center-weighted defaults.

    2

    2

    format?: string

    Image file format (jpg, png, gif, webp, etc.)

    alt_text?: string

    Alternative text for accessibility

    provenance?: Provenance