CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

YesSoftware Forums -> CodeCharge Studio -> ASP

 Creating a thumbnail using Persits ASPJpeg for a grid imagelink

Print topic Send  topic

Author Message

Posts: 13
Posted: 01/02/2006, 12:36 PM

I've created a grid photo gallery where the title, description, date, and a thumbnail are displayed. Upon clicking the thumbnail (which is an imagelink) the full-size picture pops up. This all works great except I've manually created and uploaded the thumbnails.

My preferred solution is to use ASPJpeg (or ASPImage) to create the thumbnail on the fly from the actual picture. In CCS I've tried changing the SRC from "{ImageLink1}" to "thumbnail.asp?path={ImageLink1}&width=150" where thumbnail.asp is the following off the aspjpeg homepage.

Response.Expires = 0
' create instance of AspJpeg
Set Jpeg = Server.CreateObject("Persits.Jpeg")

' Open source file
Jpeg.Open( Request("path") )

' Set new height and width
Jpeg.Width = Request("Width")
Jpeg.Height = Jpeg.OriginalHeight * Jpeg.Width / Jpeg.OriginalWidth

' Perform resizing and
' send resultant image to client browser


It didn't work. Any suggestions?

The other alternative is to create a thumbnail on upload using ASPJpeg and send it to a "thumbs" directory. Any help is appreciated.

--- Jeremy
View profile  Send private message

Posts: 9
Posted: 01/06/2006, 12:02 PM

' Open source file
Jpeg.Open( Request("path") )

Jpeg.Open() must receive a physical address of the image file as parameter,it should be like "c:\windows\test.jpg"
Jpeg.Open( "c:\windows\test.jpg" )
Jpeg.Open( Server.MapPath(Request("path")))
just try it,good luck.
this is WuDi from China.
View profile  Send private message

Posts: 378
Posted: 01/06/2006, 2:05 PM

To "iloveccs" / "WuDi":
So, how good is this crack, did it work for you?

If you use cracked CCS in your projects, you stole money from Yes guys like Peter, who is always in this forum helping us. Besides that you share crack on a blog.
So, thanks for your help from China.
View profile  Send private message

Add new topic Subscribe to topic   

These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

Home   |    Search   |    Members   |    Register   |    Login

Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by  and YesSoftware, Inc.