You are here: Re: Help - Outputting Thumbnails « PHP SQL « IT news, forums, messages
Re: Help - Outputting Thumbnails

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]


Удаленная работа для программистов  •  Как заработать на 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

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