Skip to content
Client
Server

Reference / @open-music-sdk/util-artwork / tArtworkImage

Interface: tArtworkImage ​

Defined in: artwork.ts:61

What an <img> is given to show an artwork. The names are the element's own, so the object can be assigned to one.

Properties ​

height ​

ts
readonly height: number;

Defined in: artwork.ts:69

How tall the image is shown, in whole CSS pixels.


src ​

ts
readonly src: string;

Defined in: artwork.ts:63

The image at a density of one: what artworkUrl gives.


srcset ​

ts
readonly srcset: string;

Defined in: artwork.ts:65

What artworkSrcSet gives.


width ​

ts
readonly width: number;

Defined in: artwork.ts:67

How wide the image is shown, in whole CSS pixels.

MIT licensed. Not affiliated with, endorsed by, or sponsored by Apple Inc. Apple Music and MusicKit are trademarks of Apple Inc.