I'm not using Lightbox because i need the images to open in a new window.
I'm running a site for phtographers, where many image attachments are made and viewed, and people would really appreciate seeing the pictures on a dark background.
As far as i understand (and i really don't understand much about php) i would have to modify the attachment.php in a way, that is does not only send the plain image, but an .html file with my desired background color.
EDIT:
I found a solution myself

It's based on a simple java script, which requires the user to have JS turned on, but that would be the same with lightbox anyway.
It requires the following changes to postbit_attachmentthumbnail:
At the beginning add:
Code:
<script type="text/javascript">
function showPic(it) {
var w = window.open("","","width="+screen.width+",height="+screen.height+",left=0,top=0,resizable=1,scrollbars=1,status=0,menubar=0,top=0,left=0");
w.document.writeln("<body bgcolor='#333333'>");
w.document.writeln("<table width='100%' height='100%' border='0' cellpadding='0' cellspacing='0'><tr><td align='center' valign='middle'><img src='" + it + "'></td></tr>");
w.document.writeln("<\/body>");
w.document.close();
}
</script>
Of course you can change the bgcolor, window size etc. to anything you prefer.
And to the thumbnail-Link add:
Code:
onclick="showPic(this.href);return false"
right after the href="..."