You are here: Re: Tables and screen resolution « HTML « IT news, forums, messages
Re: Tables and screen resolution

Posted by Toby Inkster on 11/23/16 11:44

Jim Higson wrote:

> You could do this by using DOM to change the width/height of the <img> tags,
> but the results would look awful since most browsers don't do scaling very
> well (they use nearest neighbour algorithm, which looks bad).

Opera uses a slightly better algorithm, but it's still not as good as
you could do in an image editor.

> I suppose you could keep pre-scaled images at certain sizes on the
> server, and change the src attribute to link to the size you want.

Or have the server generate scaled images as required. (And cache them.)

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация