1 <%
2 ' This code will show you how to make THUMBNAIL image.
3   
4 Dim oGraphic
5 Set oGraphic = Server.CreateObject("PhotoSprite.Graphic")
6   
7   ' Original image name
8   oGraphic.SourceFile = Server.MapPath( "images/demo.jpg" )
9   
10   ' Destination image name, and can make the same as the original image name
11   oGraphic.DestFile   = Server.MapPath( "images/tmp/thumbnail.jpg" )
12   
13   ' Destination image width
14   oGraphic.Width  = 200
15   
16   ' Destination image height
17   oGraphic.Height = 200
18   
19  
20   ' Making thumbnail image
21   ' This method will auto-fit the destination width and height
22   oGraphic.Thumbnail
23   
24 Set oGraphic = Nothing
25 %>
26   
27 <%
28 ' Show the contrastive effect
29 Response.Write "<img src=""images/demo.jpg"" border=""0"">"
30 Response.Write "<img src=""images/tmp/thumbnail.jpg"" border=""0"">"
31 %>
32