Forums

This topic is locked

Dynamic Image Resizing - please help

Posted 24 Apr 2001 19:16:00
1
has voted
24 Apr 2001 19:16:00 John McDonald posted:
<font face='Century Gothic'>I hope someone can help me figure out how to get this to work. I have read Dan Short's tutorial on dynamically resizing images. I have tried to apply the examples to my particular situation as best I can. But as I am still an ASP newbie, I am having problems tweaking it that last little bit. Here's what I have so far.

I have downloaded the imgz.asp and the propresize.asp and I have called them as includes on the page that I want to resize my images. (note: I stripped out the extraneous html out of these two files first).
The page on which I am displaying the image, is dynamically created from a Table in my Access DB. Each page corresponds to a particular "ID" in the table. In each record there is a field named "ImageSrc" which holds the name of the image. The actual image is stored in my images folder.

Here is the code that calls my image as it stands now:
&lt;% if rsRiderBio.Fields.Item("ImageSrc".Value &lt;&gt; "" then %&gt;
&lt;img src="../images/&lt;%=(rsRiderBio.Fields.Item("ImageSrc".Value)%&gt;"&gt;
&lt;% else
end if %&gt;

Here is the syntax I am supposed to follow according to the tutorial:
&lt;img src=Downloads/Tutorial_resize.zip/"image.gif" &lt;%=Downloads/Tutorial_resize.zip/ImageResize(Server.MapPath("image.gif", height, width)%&gt;&gt;

How do the routines in imgsz.asp and propresize.asp know which file I am trying to resize?
How do I get the suggested syntax to work for my situation? I've read through the tutorial over and over. I've read the related articles on "4guysfromrolla." I've scanned through my ASP books. I'm stuck .....<img src=icon_smile_dead.gif border=0 align=middle></font id='Century Gothic'>



Edited by - bscene on 04/24/2001 19:17:57

Replies

Replied 26 Apr 2001 12:48:37
26 Apr 2001 12:48:37 Waldo Smeets replied:
Hi bscene,

thanks for reporting this issue. The problem is that the tutorial is incorrect. This problem is due to our tutorial upload system... it has rewritten the code of the tutorial. We'll try to fix it as soon as possible.

Good catch!

Waldo Smeets - www.UDzone.com Webmaster
------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
------------------------------------------
Replied 04 Nov 2002 12:45:48
04 Nov 2002 12:45:48 Stephen Davidson replied:
So has this been fixed as I am trying to the exact same as bscene, bringing back an image from a database and resize it, but having problems working through the Tutorial..

Cheers,

SMD

Reply to this topic