sp_link * sp_link_create_from_artist_portrait(sp_artist *artist, sp_image_size size) { const byte *image_id = sp_artist_portrait(artist, size); if ( ! image_id) { return NULL; } return sp_link_create_from_string(image_id_to_uri(image_id)); }
ImageId Artist::portrait(ImageSize size) const { return isValid() ? sp_artist_portrait(handle(), static_cast<sp_image_size>(size)) : 0; }