WEB - icplanet.com

Web Programming and Design: Images and Thumbnails

Lets start with an example so you see where were going to with this article. Consider a listings type site; in this case, lets 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 youre 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

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

Develop Your Domain Names | Site Map | Home

WEB
WEB - icplanet.com

Boomerang, Dont Ricochet your Web Site Visitors
You don't win your Web site visitors' trust right away. It may take from 4-7 visits before they buy.

Best of Small Business Website Trends Detailed in New Report from the Web Marketing Association
Updated Web Marketing Association' Internet Standards Assessment Report Includes Historical Data Derived from a Decade of Hosting Internet Award Competition, WebAwards, and Provides Best Practices for Small Business Web Design

VRMeetings, Inc. and NTT-IT Of Japan, Partner to Launch MeetingPlaza, an on Demand and Unified Collaborative Web Conferencing Solution in the US
VRMeetings, Inc. and NTT-IT launch MeetingPlaza, an on demand video collaborative solution capable of linking up to 32 simultaneous users, with full collaborations features.

JaguarPC Web Host Launches "Endless Disk Space" Promotion to Celebrate Release of New Web Site
New promotion brings added capacity and peace of mind for growing businesses.

Wiworks, Inc. the Parent Company of Utah Web Services Announces Entry into the Dallas Texas Web Design and Search Engine Marketing Market
DallasWebServices.com is the first step to entry into the Dallas, Fort Worth Web Design and SEO Markets


Privacy Policy | Copyright/Trademark Notification