Tsarr Documentation - v2.16.0
    Preparing search index...

    Type Alias HeadItemImage2Data

    type HeadItemImage2Data = {
        body?: never;
        path: {
            itemId: string;
            imageType:
                | "Primary"
                | "Art"
                | "Backdrop"
                | "Banner"
                | "Logo"
                | "Thumb"
                | "Disc"
                | "Box"
                | "Screenshot"
                | "Menu"
                | "Chapter"
                | "BoxRear"
                | "Profile";
            maxWidth: number;
            maxHeight: number;
            tag: string;
            format: "Bmp"
            | "Gif"
            | "Jpg"
            | "Png"
            | "Webp"
            | "Svg";
            percentPlayed: number;
            unplayedCount: number;
            imageIndex: number;
        };
        query?: {
            width?: number;
            height?: number;
            quality?: number;
            fillWidth?: number;
            fillHeight?: number;
            blur?: number;
            backgroundColor?: string;
            foregroundLayer?: string;
        };
        url: "/Items/{itemId}/Images/{imageType}/{imageIndex}/{tag}/{format}/{maxWidth}/{maxHeight}/{percentPlayed}/{unplayedCount}";
    }
    Index
    body?: never
    path: {
        itemId: string;
        imageType:
            | "Primary"
            | "Art"
            | "Backdrop"
            | "Banner"
            | "Logo"
            | "Thumb"
            | "Disc"
            | "Box"
            | "Screenshot"
            | "Menu"
            | "Chapter"
            | "BoxRear"
            | "Profile";
        maxWidth: number;
        maxHeight: number;
        tag: string;
        format: "Bmp"
        | "Gif"
        | "Jpg"
        | "Png"
        | "Webp"
        | "Svg";
        percentPlayed: number;
        unplayedCount: number;
        imageIndex: number;
    }

    Type Declaration

    • itemId: string

      Item id.

    • imageType:
          | "Primary"
          | "Art"
          | "Backdrop"
          | "Banner"
          | "Logo"
          | "Thumb"
          | "Disc"
          | "Box"
          | "Screenshot"
          | "Menu"
          | "Chapter"
          | "BoxRear"
          | "Profile"

      Enum ImageType.

    • maxWidth: number

      The maximum image width to return.

    • maxHeight: number

      The maximum image height to return.

    • tag: string

      Optional. Supply the cache tag from the item object to receive strong caching headers.

    • format: "Bmp" | "Gif" | "Jpg" | "Png" | "Webp" | "Svg"

      Enum ImageOutputFormat.

    • percentPlayed: number

      Optional. Percent to render for the percent played overlay.

    • unplayedCount: number

      Optional. Unplayed count overlay to render.

    • imageIndex: number

      Image index.

    query?: {
        width?: number;
        height?: number;
        quality?: number;
        fillWidth?: number;
        fillHeight?: number;
        blur?: number;
        backgroundColor?: string;
        foregroundLayer?: string;
    }

    Type Declaration

    • Optionalwidth?: number

      The fixed image width to return.

    • Optionalheight?: number

      The fixed image height to return.

    • Optionalquality?: number

      Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases.

    • OptionalfillWidth?: number

      Width of box to fill.

    • OptionalfillHeight?: number

      Height of box to fill.

    • Optionalblur?: number

      Optional. Blur image.

    • OptionalbackgroundColor?: string

      Optional. Apply a background color for transparent images.

    • OptionalforegroundLayer?: string

      Optional. Apply a foreground layer on top of the image.

    url: "/Items/{itemId}/Images/{imageType}/{imageIndex}/{tag}/{format}/{maxWidth}/{maxHeight}/{percentPlayed}/{unplayedCount}"