Posted by Rik on 07/07/06 13:06
aaron.reese@tiscali.co.uk wrote:
> as far as i'm aware you can'. Thumbnails were originally designed for
> previews on slow 14k dial up connections where you might not want to
> wait for the full size image to download.
Even with a fast connection I don't think pages with >10 >300k images
charming.
> You can make the image show as a thumbnail by setting the height and
> width properties of the <img> tag.
Which is very bad practise.
Make you images the sizes they should be.
Making them smaller in an HTML page by setting width & height:
- Makes you download an unneccesary large image.
- Makes an ugly image because browser resizing isn't what is could be.
- width & height are originally designed to hint to the browser what the
dimensions are, so the page is rendered correctly before downloading the
images, and doesn't change oncethe images are in.
Make a thumbnail on the fly (or store them) using imagecopyresampled().
Grtz,
--
Rik Wasmus
Navigation:
[Reply to this message]
|