Author |
Topic |
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
Posted - 23 September 2003 : 07:48:36
|
Anyone know if it's possible to create image thumbnails using ASP only, no components? I know it's possible in php. Basically, I have a folder containing images and would like to show thumbnails of the images before clicking to preview. |
The UK MkIVs Forum |
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 23 September 2003 : 09:19:54
|
If you just want to make "fake" thumbnails by interpreting the images width and height and then adjusting the width and height on the image tag then thats not to difficult, in fact the code is already in the photo album mod I believe. Download that and take a look at it.
|
Kiwihosting.Net - The Forum Hosting Specialists
|
|
|
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
|
OneWayMule
Dev. Team Member & Support Moderator
Austria
4969 Posts |
|
big9erfan
Average Member
540 Posts |
Posted - 23 September 2003 : 18:28:03
|
I looked and looked until I broke down and bought the component ASPImage. Everything I found was basically just getting the size of the image and setting the width/height in the image tags.
|
This account was hacked into by Image, a very honest guy as you all can see! Stealing people's passwords is his pasttime. |
|
|
Doug G
Support Moderator
USA
6493 Posts |
Posted - 23 September 2003 : 20:59:12
|
If your server has .NET there are some graphic functions in .NET that will let you create a thumbnail (resize images).
|
====== Doug G ====== Computer history and help at www.dougscode.com |
|
|
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 27 September 2003 : 10:50:58
|
I've been playing with that 4guys code, but it seems after I view the image contents of a directory I can no longer delete the same image files from that directory.
I don't know much at all about aspx, can anyone lend a hand quickly ? |
|
|
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 27 September 2003 : 11:30:00
|
I'll have a look at the ThumbTools, but I took a quick peek at your site and when I click on the thumbs the popups resize to very small.
The 4guys code is great, but it seems to place some sort of lock on the files that I'm trying to track down. |
|
|
Bullschmidt
New Member
USA
56 Posts |
|
redbrad0
Advanced Member
USA
3725 Posts |
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 30 September 2003 : 22:43:10
|
Yes, but the 4guys code works with no components at all ... the original request of this thread. The only problem with the 4guys code is that you need .Net - no problem in my situation, but it could be hard on others. |
|
|
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
Posted - 01 October 2003 : 05:13:19
|
quote: Originally posted by Bullschmidt
And if decide need to use a component:
How do I create / manipulate images from ASP? - 5/10/2001 http://www.aspfaq.com/faq/faqShow.asp?fid=76
You don't need a component for that code, it'll work in ASP. Looks useful if .Net is not available on your server |
The UK MkIVs Forum |
|
|
instantnet11
New Member
USA
69 Posts |
Posted - 01 October 2003 : 13:43:01
|
Most of this code create thumbnails on the fly. Is there a way to do it where an actual thumbnail is created when using an upload form?
I have a great script for cold fusion if anyone is interested. The problem with the upload for coldfusion is the permissions have to be set to read write for guest for some reason though it seems to work using asp. (I didnt write that code either so couln't tell you why)
Thanks |
|
|
DavidRhodes
Senior Member
United Kingdom
1222 Posts |
Posted - 02 October 2003 : 06:33:41
|
If you look at the photo album mod, that creates thumbnail when images are uploaded |
The UK MkIVs Forum |
|
|
Topic |
|