Click to See Complete Forum and Search --> : Image Print Size


clkgtr
12-16-2003, 02:20 PM
I have a gif of a map that, when printed, won't fit completely on the page. Is it possible to define a print size without altering the screen size?

DaveSW
12-17-2003, 07:07 AM
It could be done using CSS.

place two images on the page:

<img src="" alt="" id="screenmap">
<img src="" alt="" id="printmap">

Then use a print stylesheet that says:
#printmap {
display: inline;
}
#screenmap {
display: none;
}

and your normal stylesheet would say:
#printmap {
display: none;
}
#screenmap {
display: inline;
}


Or specify the size in the css file, and just change it in the print style sheet.

If you need more info on print stylesheets let me know.

Robert Wellock
12-17-2003, 01:11 PM
That latter is the only sensible answer, since it uses less bandwidth to create an additional CSS print profile than creating a duplicated replaced object.

DaveSW
12-19-2003, 09:49 AM
The trouble with the latter is that sometimes images lose their detail when you resize them in the actual code. You can often get a cleaner image using a smart resize rather than a pixel resize in a graphics program. Especially where maps are concerned! It all depends how close to the limits of your bandwidth you get.