Click here to get back home

resolution of images for inclusion to html

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
resolution of images for inclusion to html Helmut Richter 10-15-2007
Posted by Helmut Richter on October 15, 2007, 5:39 am
Please log in for more thread options
A Web page containing images can both been viewed on a screen or
printed. For the two purposes, different resolutions of images are needed,
typically 72 dpi for the screen and 300 dpi for printing. One solution of
this dilemma is to provide a totally independent print version of the
article which contains images with higher resolution. I want to ask this
group whether there are good alternatives. I thought of the following
solutions but each has also serious drawbacks. Have I failed to notice a
better solution?

1. Use low-resolution images.

Benefit: simple; good images on screen.
Drawback: bad images in print.
Summary: good enough for articles that are normally used only online.

2. Use high-resolution images, scale them down in the <img> tag.

Benefit: good images in print.
Drawback: extremely bad images on screen because browsers have poor
algorithms for rescaling images; long load time.
Summary: unusable.

3. Use two images, select by "media" in CSS stylesheet (see code example below).

Benefit: good images.
Drawback: users not using stylesheets get two images, one of them
oversized on the screen; long load time.
Summary: should work.

4. Two versions of article, let user choose a version "print" vs. "screen".

Benefit: good images.
Drawback: too complex.
Summary: clumsy.

Are there better solutions?

At present I like solution 3 best, enhanced with the option of viewing the
better image on the screen as well:

<span class="screen-img">
<a href="hi-res.png">
<img src="lo-res.png" title="click for larger image" alt="content-descr">
</a>
</span>
<span class="print-img">
<img src="hi-res.png" alt="content-descr">
</span>

--
Helmut Richter

Similar ThreadsPosted
Are personalized URLs a danger to my Search Engine inclusion? October 2, 2005, 8:11 am
embedding images in HTML with the data URL src January 28, 2006, 1:26 am
What's your screen resolution? September 3, 2004, 11:16 pm
Defining the resolution of a site September 13, 2005, 5:34 am
What Screen Resolution do You use? and in your pages September 15, 2006, 11:43 am
Auto resizing web page according to screen resolution February 23, 2006, 12:56 am
images won't appear in IE January 3, 2005, 8:40 pm
why a different tag for SVG images? April 4, 2006, 12:18 am
two images i corners December 11, 2004, 4:04 pm
Background images January 25, 2005, 5:19 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap