On Friday 05 October 2007 00:44:14 Johan Vromans wrote:
> Leon Brooks GIMP <[EMAIL PROTECTED]> writes:
> > One possible/partial answer is to use some JavaScript to read
> > the window's dimensions & alter the width & height parameters
> > of the <IMG> tag to scale whatever you provide, so it fits.
>
> This will still cause the whole image (which may be large) to be
> downloaded.
>
> > To get really fancy, provide several different images & have
> > your JS select the closest fit & scale that.
>
> This would be a better option.
>
> -- Johan

This is not stictly "on topic" for this list but prepare a few different sized 
images and then,
if you are not familiar with getting screen and window property information,   
try loading this into your browser for getting screen properties - it should 
get you going - you might want to join a javascript list to help further:

<HTML>
<HEAD>
<TITLE> Screen</TITLE>
<SCRIPT LANGUAGE='Javascript">
function displayScreenProperties() {
with(document)  {
 write("<B>height: </B>")
 writeln("<B>(screen.height+"<BR>")
 write("<B>width: </B>")
 writeln("<B>(screen.width+"<BR>")
 write("<B>colorDepth: </B>")
 writeln("<B>(screen.colorDepth+"<BR>")
}
displayScreenProperties()
</SCRIPT>
</HEAD>
<BODY>
</BODY>
</HTML>

_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Reply via email to