GetItemImage2Request

@Serializable
data class GetItemImage2Request(val itemId: UUID, val imageType: ImageType, val maxWidth: Int, val maxHeight: Int, val tag: String, val format: ImageFormat, val percentPlayed: Double, val unplayedCount: Int, val imageIndex: Int, val width: Int? = null, val height: Int? = null, val quality: Int? = null, val fillWidth: Int? = null, val fillHeight: Int? = null, val blur: Int? = null, val backgroundColor: String? = null, val foregroundLayer: String? = null)

The item's image.

Constructors

Link copied to clipboard
constructor(itemId: UUID, imageType: ImageType, maxWidth: Int, maxHeight: Int, tag: String, format: ImageFormat, percentPlayed: Double, unplayedCount: Int, imageIndex: Int, width: Int? = null, height: Int? = null, quality: Int? = null, fillWidth: Int? = null, fillHeight: Int? = null, blur: Int? = null, backgroundColor: String? = null, foregroundLayer: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "backgroundColor")
val backgroundColor: String?

Optional. Apply a background color for transparent images.

Link copied to clipboard
@SerialName(value = "blur")
val blur: Int?

Optional. Blur image.

Link copied to clipboard
@SerialName(value = "fillHeight")
val fillHeight: Int?

Height of box to fill.

Link copied to clipboard
@SerialName(value = "fillWidth")
val fillWidth: Int?

Width of box to fill.

Link copied to clipboard
@SerialName(value = "foregroundLayer")
val foregroundLayer: String?

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

Link copied to clipboard
@SerialName(value = "format")
val format: ImageFormat

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

Link copied to clipboard
@SerialName(value = "height")
val height: Int?

The fixed image height to return.

Link copied to clipboard
@SerialName(value = "imageIndex")
val imageIndex: Int

Image index.

Link copied to clipboard
@SerialName(value = "imageType")
val imageType: ImageType

Image type.

Link copied to clipboard
@SerialName(value = "itemId")
val itemId: UUID

Item id.

Link copied to clipboard
@SerialName(value = "maxHeight")
val maxHeight: Int

The maximum image height to return.

Link copied to clipboard
@SerialName(value = "maxWidth")
val maxWidth: Int

The maximum image width to return.

Link copied to clipboard
@SerialName(value = "percentPlayed")
val percentPlayed: Double

Optional. Percent to render for the percent played overlay.

Link copied to clipboard
@SerialName(value = "quality")
val quality: Int?

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

Link copied to clipboard
@SerialName(value = "tag")
val tag: String

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

Link copied to clipboard
@SerialName(value = "unplayedCount")
val unplayedCount: Int

Optional. Unplayed count overlay to render.

Link copied to clipboard
@SerialName(value = "width")
val width: Int?

The fixed image width to return.