<font face="arial" size="2">If you can use a COM object, then I suggest the free ImageSize control from ServerObjects.com: <br /><br /><a href="http://www.serverobjects.com/products.htm">http://www.serverobjects.com/products.htm</a><br />(scroll to the bottom)<br /><br />If you just want the image to display as its normal size, don't put width and height in the tag:<br /><br /> <div><span class="723413119"><font face="Arial" color="#0000ff" size="2">&lt;%do while not rs.eof%&gt;</font></span></div> <div><span class="723413119"> <p><span lang="es"><font face="Courier New"><font size="2"><font color="#0000c0">&lt;img border=</font><font color="#000000">"0"</font><font color="#0000c0"> src=</font><font color="#000000">"</font><font color="#800000">&lt;%=<span class="723413119">rs("imagen")</span>%&gt;</font><font color="#000000">"</font><font color="#0000c0">&gt;</font></font></font></span><br /></span><span class="723413119"><font face="Arial" color="#0000ff"><span lang="es"><font face="Courier New" color="#0000c0"><span class="723413119"><font face="Arial" color="#0000ff" size="2">&lt;%rs.movenext%&gt;</font></span></p></div> <div> <div><span class="723413119"><font face="Arial" color="#0000ff" size="2">&lt;%loop%&gt;</font></span></div></font></span></font></span></div><br />Cheers,<br /><br />Peter<br /><br /></font><font face="Tahoma, Arial, Sans-Serif" size="2"><b>From</b>: Mu&#241;oz Pe&#241;aloza Carlos Alberto <a href="mailto:cmunozp@indap.cl">cmunozp@indap.cl</a><br /></font><br /> <div><span class="723413119"><font face="Arial" color="#0000ff" size="2">hi, i unknow its dimensions!!!, every image have dimensions different</font></span></div> <div><span class="723413119"><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div> <div><span class="723413119"><font face="Arial" color="#0000ff" size="2">how i calculate the size of each image?</font></span></div> <div><span class="723413119"><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div> <div><span class="723413119"><font face="Arial" color="#0000ff" size="2">ej:</font></span></div> <div><span class="723413119"><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div> <div><span class="723413119"><font face="Arial" color="#0000ff" size="2">&lt;%do while not rs.eof%&gt;</font></span></div> <div><span class="723413119"> <p><span lang="es"><font face="Courier New"><font size="2"><font color="#0000c0">&lt;img border=</font><font color="#000000">"0"</font><font color="#0000c0"> src=</font><font color="#000000">"</font><font color="#800000">&lt;%=<span class="723413119">rs("imagen")</span>%&gt;</font><font color="#000000">"</font><font color="#0000c0"> width=</font>"<span class="723413119">???</span>"<font color="#0000c0"> height=</font>"<span class="723413119">???</span>"<font color="#0000c0">&gt;</font><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></font></font></span><br /></span><span class="723413119"><font face="Arial" color="#0000ff"><span lang="es"><font face="Courier New" color="#0000c0"><span class="723413119"><font face="Arial" color="#0000ff" size="2">&lt;%rs.movenext%&gt;</font></span></p></div> <div> <div><span class="723413119"><font face="Arial" color="#0000ff" size="2">&lt;%loop%&gt;</font></span></div></font></span></font></span></div> <div><span class="723413119"><font face="Courier New" color="#000000"><span lang="es"></span></font></span>&nbsp;</div> <div><font size="2"><font face="Tahoma"><span class="723413119">[Mu&#241;oz Pe&#241;aloza Carlos Alberto]&nbsp;&nbsp;</span><br /><b>De:</b> javascript-bounces@LaTech.edu <b>En nombre de </b>Peter Brunone<br /></font></font><font face="arial" size="2"><br />&nbsp;&nbsp;&nbsp;How do you get the dimensions of the image?&nbsp; If you find them in your ASP code, then you can put the width and height in just as you would do with the src attribute.&nbsp; Also, if you do not put the dimensions in at all, the image will default to its actual size.<br /><br />Regards,<br /><br />Peter<br /><br /></font><font face="Tahoma, Arial, Sans-Serif" size="2"><b>From</b>: Mu&#241;oz Pe&#241;aloza Carlos Alberto <a href="mailto:cmunozp@indap.cl">cmunozp@indap.cl</a><br /></font><span lang="es"><font face="Arial" size="2"><br />Hello to all, I have the following problem, I want to assign the dimensions to him of an image in dinamica form, is to say I have an image and desconosco its dimensions, then I need to assign them to it.&nbsp; </font></span></div> <blockquote> <p><span lang="es"><font face="Arial" size="2">ej:</font></span> </p> <p><span lang="es"><font face="Courier New" color="#0000c0" size="2">&lt;img border=</font><font face="Courier New" color="#000000" size="2">"0"</font><font face="Courier New" color="#0000c0" size="2"> src=</font><font face="Courier New" color="#000000" size="2">"</font><font face="Courier New" color="#800000" size="2">&lt;%=image1%&gt;</font><font face="Courier New" color="#000000" size="2">"</font><font face="Courier New" color="#0000c0" size="2"> width=</font><font face="Courier New" color="#000000" size="2">"this.width"</font><font face="Courier New" color="#0000c0" size="2"> height=</font><font face="Courier New" color="#000000" size="2">"this.height"</font><font face="Courier New" color="#0000c0" size="2">&gt;</font><font face="Courier New" color="#000000" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></span><br /><span lang="es"><font face="Courier New" color="#0000c0" size="2">&lt;img border=</font><font face="Courier New" color="#000000" size="2">"0"</font><font face="Courier New" color="#0000c0" size="2"> src=</font><font face="Courier New" color="#000000" size="2">"</font><font face="Courier New" color="#800000" size="2">&lt;%=image2%&gt;</font><font face="Courier New" color="#000000" size="2">"</font><font face="Courier New" color="#0000c0" size="2"> width=</font><font face="Courier New" color="#000000" size="2">"this.width"</font><font face="Courier New" color="#0000c0" size="2"> height=</font><font face="Courier New" color="#000000" size="2">"this.height"</font><font face="Courier New" color="#0000c0" size="2">&gt;</font><font face="Courier New" color="#000000" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></span><br /><span lang="es"><font face="Courier New" color="#0000c0" size="2">&lt;img border=</font><font face="Courier New" color="#000000" size="2">"0"</font><font face="Courier New" color="#0000c0" size="2"> src=</font><font face="Courier New" color="#000000" size="2">"</font><font face="Courier New" color="#800000" size="2">&lt;%=image3%&gt;</font><font face="Courier New" color="#000000" size="2">"</font><font face="Courier New" color="#0000c0" size="2"> width=</font><font face="Courier New" color="#000000" size="2">"this.width"</font><font face="Courier New" color="#0000c0" size="2"> height=</font><font face="Courier New" color="#000000" size="2">"this.height"</font><font face="Courier New" color="#0000c0" size="2">&gt;</font><font face="Courier New" color="#000000" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></span></p> <p><span lang="es"><font face="Arial" size="2">greetings and thanks</font></span> </p></blockquote>