Nov 1 2006

Terres­trial has made another great update to his sin­gle column play­list module for Foobar2000 v0.9. This latest change adds the follo­wing functionality:

+ some tweaks to mul­ti­ple win­dow / mul­ti­ple play­lists
+ added “Pla­ying” play­list selec­tion
+ $filee­xists()
+ added NOKEEPASPECT option for ima­ges
+ added wild­card sup­port for ima­ges
+ added align­ment options for ima­ges VALIGN-T (ver­ti­cal align-TOP), VALIGN-B, HALIGN-L, HALIGN-R

I have high­ligh­ted the key impro­ve­ments that I am now making use of. With these new addi­tions ima­ges can be stretched to fit a give frame, for example:

$imageabs2(100,100„,100,100,5„$replace(%path%,%filename_ext%,*.jpg),NOKEEPASPECT)

This will dis­play an image (finds any .jpg in the song’s direc­tory thanks to the new wild­card func­tion — * is the wild­card) and stretch it to fit a 100x100 frame. Expan­ding upon this using the new filee­xists function:

$if($fileexists($replace(%path%,%filename_ext%,*.jpg)),
$puts(albumMarg,110)
$puts(datax,160)
$imageabs2(100,100„,100,100,5„$replace(%path%,%filename_ext%,*.jpg),NOKEEPASPECT)
$imageabs(5„images/artoverlay-1.png ‚)
$drawrect(5,0,100,100,brushcolor-null pencolor-0–0-0)
$drawrect(6,1,98,98,brushcolor-null pencolor-150–150-150)
,
$puts(albumMarg,10)
$puts(datax,60))

This checks that the ima­ges is there, if it is it defi­nes a spe­ci­fic mar­gin for later use in posi­tio­ning of artist, album and trac­kinfo. It then draws the image, a PNG over­lay and some surroun­ding bor­ders. If the image doesn’t exist it defi­nes a dif­fe­rent mar­gin so that the song data does not surround an empty space and ins­tead is clo­ser to the left, for example:

http://up.trivialbeing.org/img/foobar_illust.jpg

No comments yet.

Leave a Reply Comment on this post

To use an avatar the email you use must be registered with Gravatar

-->