Thumbnail Image

This shows how to create a thumbnail image using ASPHelps Thumbnail component which has a trial download . Download a copy from here

Here is the code , remember you will have to change the details for the image you require to use , the image I used was in the same directory as this page.

<%
Dim objThumb
Set objThumb = Server.CreateObject("ASPThumbnailer.Thumbnail")
If objThumb.LoadFromWeb ("anim0122.jpg") Then
If objThumb.CreateThumbnailToWeb ("anim0122s.jpg") Then
Response.Write "Thumbnail created"
Response.Write"<img src='anim0122s.jpg')"
Else
Response.Write "Fault occured"
End If
Else
Response.Write "Unable to load image"
End If
%>

This is the massge yo will see

You are using an evaluation copy of:
ASP Thumbnailer

To register your copy, please visit http://www.phphelp.com.
(registration will remove this message)

Thumbnail created

Sponsors