Skip to content

Artwork Tools ​

Two tools retrieve artwork through the Bridge. Available images are returned as base64 data URLs in the Bridge result.

fb2k_artwork_get_current ​

Gets artwork for the currently playing track.

  • Bridge method: artwork.getCurrent
ParameterTypeRequiredDescription
typestringNoOne of front, back, disc, icon, or artist; the Bridge defaults to front when omitted

Example result when artwork is available:

json
{
  "available": true,
  "type": "front",
  "source": "album_art_manager_v2",
  "mimeType": "image/jpeg",
  "size": 245678,
  "dataUrl": "data:image/jpeg;base64,/9j/4AAQ..."
}
FieldTypeDescription
availablebooleanWhether artwork was found
typestringRequested artwork type
sourcestringRetrieval source when reported, such as now_playing_manager, album_art_manager_v2, or extractor
mimeTypestringDetected MIME type
sizeintegerImage size in bytes
dataUrlstringBase64-encoded Data URL

Example result when no artwork is available:

json
{ "available": false, "type": "front", "reason": "no_track" }

fb2k_artwork_get_for_track ​

Gets artwork for a specified track file.

  • Bridge method: artwork.getForTrack
ParameterTypeRequiredDescription
pathstringYesTrack file path
typestringNoOne of front, back, disc, icon, or artist; the Bridge defaults to front when omitted

Result: The availability, MIME type, byte size, dimensions when detected, and dataUrl are returned by the Bridge.

Artwork types ​

ValueMeaning
frontFront cover and Bridge default
backBack cover
discDisc artwork
iconIcon artwork
artistArtist artwork