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

    Type Alias HeadGenreImageData

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

    Type Declaration

    • name: string

      Genre name.

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

      Enum ImageType.

    query?: {
        tag?: string;
        format?: "Bmp" | "Gif" | "Jpg" | "Png" | "Webp" | "Svg";
        maxWidth?: number;
        maxHeight?: number;
        percentPlayed?: number;
        unplayedCount?: number;
        width?: number;
        height?: number;
        quality?: number;
        fillWidth?: number;
        fillHeight?: number;
        blur?: number;
        backgroundColor?: string;
        foregroundLayer?: string;
        imageIndex?: number;
    }

    Type Declaration

    • Optionaltag?: string

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

    • Optionalformat?: "Bmp" | "Gif" | "Jpg" | "Png" | "Webp" | "Svg"

      Determines the output format of the image - original,gif,jpg,png.

    • OptionalmaxWidth?: number

      The maximum image width to return.

    • OptionalmaxHeight?: number

      The maximum image height to return.

    • OptionalpercentPlayed?: number

      Optional. Percent to render for the percent played overlay.

    • OptionalunplayedCount?: number

      Optional. Unplayed count overlay to render.

    • 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.

    • OptionalimageIndex?: number

      Image index.

    url: "/Genres/{name}/Images/{imageType}"