jpflana
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
Jpeg.SendBinary
%>
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
|
 |
 |
iloveccs
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" )
or
Jpeg.Open( Server.MapPath(Request("path")))
just try it,good luck.
this is WuDi from China.
_________________
www.5dinfo.net |
 |
 |
Vasiliy
Posts: 378
|
Posted: 01/06/2006, 2:05 PM |
|
To "iloveccs" / "WuDi": http://www.5dinfo.net/blog/
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.
_________________
Vasiliy |
 |
 |
|