ArticleTrader.com
  

 Main Menu

  Home
  Member Login
  Forum
  Submit Article
  RSS Feeds
  Contact Us
  About

 Services

  Article Distribution
  Link Building

 Tools

  ArticleMS
  Directory Tracker

 Categories

  Automotive
  Business
  Computers
  Entertainment
  Finance
  Food
  Health
  Home and Family
  Internet
  » Affiliate Programs
  » Blogging
  » Domains
  » Email
  » Forums
  » Online Business
  » PPC Advertising
  » RSS
  » Security
  » SEO
  » Site Promotion
  » Spam
  » Web Design
  » Web Hosting
  Legal
  Science
  Self Improvement
  Shopping
  Society
  Sports
  Technology
  Travel
  Writing

35 users online.



 
  » Category Sponsors
  Communicating Your Needs

Home » Internet » Web-design » Web Programming and Design: Images and Thumbnails
Article Stats:
26 Views
437 Words

Get Html Code
PDF | Print View | Post to your Site

Web Programming and Design: Images and Thumbnails

Submitted by brad12
Mon, 7 Apr 2008

Let’s start with an example so you see where we’re going to with this article. Consider a listings type site; in this case, let’s think of a real estate website which lists properties. Each property has a picture. You have a page where you list all properties in a given neighborhood, about 20 properties per page. For each property, you display a smaller version of its picture (this is called a thumbnail), and a brief description of the property, so site visitors can click on the property they like to learn more about it. The problem is: this page takes really long to display in the browser.

There is a high probability that this problem is related to the images. You need to analyze how your site generates the thumbnails. In many scripts, the thumbnails are just the original pictures, but displayed in smaller width and height. If this is the case, then each picture takes too long to load. You should change this approach and generate real thumbnails of each picture. You also need to change your script to work with the images thumbnails, and not just the original big images.

There are different ways to generate the thumbnails:

1) Using a graphics program. You load the original image, and resize it to the thumbnail size. Then you save it with a different file name. For this approach to work, your script must let you upload the big image for each property, and also the thumbnail.

2) Your script can generate the thumbnails automatically when pictures are loaded, and save them on the server. You only need to upload the big picture. If your script is written in Php, for example, this can be accomplished by using Php image functions, which make use of the gd graphics library. These functions let you generate thumbnails in different image formats like gif, jpg and png.

3) Your script can generate the thumbnails on the fly and serve them directly to the browser. This will save storage space in the server, but requires a lot of server processing time. It is not recommended if you have many images, or if your site has many daily visits.

The important aspect to remember here is that you should not resize original images to show them as thumbnails, especially if you’re showing several of these images on the same page. It will not only slow the page load in the browser, but it will also use a lot of extra bandwidth you can save.

written By Sergio Roth

About the Author

web design Lancashire-web site design Manchester-web design Manchester.


Source: ArticleTrader.com
Creative Commons License

Comments

No comments posted.

Add Comment

Your Name:


Your Email:


Comment

Enter the code shown

Visual CAPTCHA

 Top Authors

 1 stickystebee (3018)
 2 alien82 (2756)
 3 kajuba (2173)
 4 limalan88 (2092)
 5 sverdlow (1712)
 6 juliet (1683)
 7 AnthonyF (1244)
 8 artavia.seo (1131)
 9 MarkeD (1083)
 10 isolvum (1019)
 11 IC (935)
 12 cj (931)
 13 jkhbraveheart (847)
 14 lets_j2top@ya.. (825)
 15 Osborne (789)
  » Member List

 Latest Forum

» Memorial for Fort Wood victims
» Can I make money by having free article submission site
» Comment on pages
» WTB Article Directory
» Blocking People from Registering with Certain Email Addresses
» I need Your Opinion

 Distribution

Article Distribution

  
  Affiliate Program 2Checkout.com, Inc. is an authorized retailer of ArticleTrader.com

0.41s