<% ' IMPORTANT: This script must not contain any HTML tags ' Create an instance of AspJpeg object Set jpeg = Server.CreateObject("Persits.Jpeg") jpeg.Open( Trim(Request("path")) ) ' Set new width jpeg.Width = Request("width") ' Set new height, preserve original width/height ratio jpeg.Height = _ jpeg.OriginalHeight * jpeg.Width / jpeg.OriginalWidth ' Send thumbnail data to client browser jpeg.SendBinary %>