Methods
(static) logoDisplaySize(width, height, limits, capHeight) → {object}
The size the logo is drawn at, from the size of the bitmap that loads.
A small logo is scaled up to limits.minHeight, keeping aspect, unless that would make it wider than limits.maxWidth: maxWidth is a hard layout bound, minHeight only a target. When capHeight is set, a tall image is then scaled down to limits.maxHeight so it stays clear of the text rows above it.
| Name | Type | Description |
|---|---|---|
width | integer | the bitmap's width |
height | integer | the bitmap's height |
limits | object | { minHeight, maxWidth, maxHeight } |
capHeight | boolean | whether limits.maxHeight applies |
{ width, height }, or invalid when either side is unknown (0)
- Type:
- object
(static) serverFitSize(width, height, maxWidth, maxHeight) → {object}
The size the server sends for an image request bounded by maxWidth x maxHeight: scaled down to fit, aspect kept, never scaled up. Measured 2026-09-22 against Jellyfin 12.1: the served size is the scaled size ROUNDED to the nearest pixel (15 of 15 logos; truncating was a pixel short on 6 of them).
| Name | Type | Description |
|---|---|---|
width | integer | the original image's width |
height | integer | the original image's height |
maxWidth | integer | the request's maxWidth |
maxHeight | integer | the request's maxHeight |
{ width, height }, or invalid when either original side is unknown (0)
- Type:
- object