I'm only guessing - and not really concentrating - so let me know if it doesn't really work and we'll look at it more.
you proably want to do something like:
Code:
var newWin=window.open('url.html','Picture','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0');newWin.document.open();var nImg=new Image();nImg.src = 'img.gif';newWin.document.appendChild(nImg);newWin.document.close();newWin.resizeTo(nImg.clientWidth, nImg.clientHeight);I don't know that clientWidth and Height will recieve the sizes correctly - you may otherwise try offset Width.
Failing that - maybe screenWidth (though i don't think that's applicable) and finally style.pixelWidth ( though i am nearly sure that has to have the css width set! )
Flawless