So I was playing around with album art alignment and since I could find no real documentation outside of the wiki about it I thought I'd post this:
// Album Art
$if($get(album_mode),$ifgreater($mul(%_height%,%_itemcount%),95,
$imageabs2(110,95,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,3)),,%_height%,2,,images\emptycd.png,)
$imageabs2(110,85,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,5)),,%_height%,-7,,$replace(%path%,%filename_ext%,$if2(%cdid%,[%artist% - ]$replace(%album%,?,,:,)).png),halign-r)
$imageabs2(110,85,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,5)),,%_height%,-7,,$replace(%path%,%filename_ext%,$if2(%cdid%,[%artist% - ]$replace(%album%,?,,:,)).tif),halign-r)
$imageabs2(110,85,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,5)),,%_height%,-7,,$replace(%path%,%filename_ext%,$if2(%cdid%,[%artist% - ]$replace(%album%,?,,:,)).gif),halign-r)
$imageabs2(110,85,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,5)),,%_height%,-7,,$replace(%path%,%filename_ext%,$if2(%cdid%,[%artist% - ]$replace(%album%,?,,:,)).jpg),halign-r)
,),)
This basically displays a background image of an empty cd case, then resizes the album art to a height that will fit in the case and align it to the right of the case. This is somewhat useful as it will take full images like the first example and overlay on top of the case spine while normal images like the last example fit in the case as normal. Smaller images like cd singles in the center examples get pushed to the side.
I'd still like to be able to run some sort of calculation to figure out the size of the resized image and remove the empty case for cd singles, and there are some ugly results when using nonstandard sized images (like vertical full size cover scans) but hey.. this is an example of how to use that halign parameter if anyone is interested (there is also a valign parameter for vertical alignment).