|
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]
|