Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

Dynamically Resize an Image (ASP)

Posted 03 Apr 2002 18:50:36
1
has voted
03 Apr 2002 18:50:36 Leon Downes posted:
I have looked at the tutorial covering this from 4guysfromrolla, but I cannot get an image to resize dynamically

Any help would be greatly appreciated,

Replies

Replied 03 Apr 2002 19:29:36
03 Apr 2002 19:29:36 Rick Harding replied:
I believe that it should be
where you have a width and heigth field that are numeric values.

<pre id=code><font face=courier size=2 id=code> &lt;img src="../images/imagename.gif" width="&lt;%=(recordset.fieldwidth).value%&gt;" height="&lt;%=(recordset.fieldheight).value%&gt;" border="0"&gt;</font id=code></pre id=code>

Rick Harding
U of M CS Student / Network Admin for MSU FAME
"Techies just think differently...at least that's what they keep telling me"
Replied 04 Apr 2002 08:39:30
04 Apr 2002 08:39:30 Viktor Farcic replied:
What tutorial have you been looking?

Viktor Farcic

TalkZone Manager
Replied 04 Apr 2002 12:45:08
04 Apr 2002 12:45:08 Rick Harding replied:
none, it's basically a case of dropping the value from the database into the width and height values when you link to an image. If you insert the image and specify the height and width you should be ablew to put
<pre id=code><font face=courier size=2 id=code>&lt;%=(recordset.hieght).value%&gt; </font id=code></pre id=code>
in place of the numbers you specified earlier to write the value.

Rick Harding
U of M CS Student / Network Admin for MSU FAME
"Techies just think differently...at least that's what they keep telling me"
Replied 04 Apr 2002 22:29:08
04 Apr 2002 22:29:08 George Petrov replied:
I have found this nice trick to make a thumbnail:

Put only width=100 in the img tag and NO height. The browser will resize the image accoringly!

Greetings,
George

-----------------------------------------------
George Petrov - Co-Founder, www.UDzone.com
The site for Macromedia
Dreamweaver UltraDev Developers!
-----------------------------------------------
Replied 05 Apr 2002 12:31:41
05 Apr 2002 12:31:41 Leon Downes replied:
Thank you all who have replied, I have managed to sort my problem (Thank you George). I hope that this also helps other people out that have wondered how to have an image proportionally resized <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>



Reply to this topic