Survey Builder

   eHelp Desk

   Link Exchange

   Message Board

   Banner Manager

   HTML eMailer

   Custom Application

   Free Scripts

   Tell Your Friends

   How to Install Script

   Webmaster's Tools





SCRIPTS FOR CREATING THUMBNAIL IMAGES

In many Internet applications, you may be required to display a large number of images in one web page.   This can slow down the loading of the page tremendously.   To speed up the process, we should display only the thumbnail versions of the original images.   The thumbnail has a much smaller file size, and takes a shorter time to download to your browser.   There are two methods to generate the thumbnail images:

PERL Image::GD::Thumbnail Module

In this method, the thumbnail is created at the same time as we upload the original image (JPEG format) to our online database.   The thumbnail is then saved permanently as thumb_imgName in the same directory as the original imgName.   The PERL Image::GD::Thumbnail module will be used for this purpose. A good understanding of PERL Programming is required to insert the "thumbnail" script into the PERL program that processes inputs into your database.   If your server's local Perl bin is not preloaded with the GD and Image::GD::Thumbnail modules, you can request your Web Host to do it for you.

JAVA APPLET Thumbnail.class

This method generates a temporary thumbnail "on-the-fly" as and when the thumbnail is displayed on your browser. The Java Applet has a single parameter: orig. This defines the URL of the original image. When the applet is activated, it will retrieve the original image (GIF or JPEG format) from the "orig" URL and shrink it to fit into a square defined by the applet's width and height attributes. The original image's aspect or width-to-height ratio is maintained.

No programming skill is required to install this applet. Just upload the Thumbnail.class and myCanvas.class into the same directory as the HTML document with the embedded applet, as seen in the example below:

<APPLET CODE="Thumbnail.class" WIDTH=125 height=125>
<PARAM NAME="orig" VALUE="http://www.domain.com/images/imgName">
</APPLET>

NOTE:   The Java Thumbnail Applet requires the following Java packages to work properly.   These packages - java.awt.*, java.awt.image.*, java.net.*, java.util.* and java.applet.* - are found in older versions of Java compiler pre-installed on your browser.   Newer versions of browser and Java compiler may not be equipped with these packages.

DOWNLOAD SCRIPTS

Enter your name and email address here.   We will send a copy of the Perl script and Java Applet to you via email.

Name:       Email:      

  YES. I agree to receive your newsletter and emails on your products and services.

www.clickitpro.com


Google