Code: Select all
<SCRIPT LANGUAGE="JavaScript">
<!--
...
win = window.open('previewimage.php','', 'toolbar=0, location=0, directories=0, status=0, scrollbars=0, menubar=0');
}
//-->
</script>Code: Select all
<?php
header("Content-type: image/jpeg");
...
$im = imagecreate(460,90);
$bg = imagecolorallocate($im,$bg1,$bg2,$bg3);
$fg = imagecolorallocate($im,$tc1,$tc2,$tc3);
$borc = imagecolorallocate($im,$bc1,$bc2,$bc3);
imagefill($im,0,0,$bg);
imagerectangle($im,0,0,460,90,$borc);
imagestring($im,3,6,7,"Blah Blah Blah",$fg);
$startdate = date("F j, Y, g:i a");
imagestring($im,3,6,19,"'$title' - Started On $startdate",$fg);
imagestring($im,3,6,31,"Total Times Read - 872346",$fg);
imagejpeg($im);
imagedestroy($im);
?>Is it possible to make the window open to the exact size of the image, no matter what size the image is?
And, how would I do so?
Thanks.