如题。

解决方案 »

  1.   

    System.Drawing.Image.GetThumbnailImageAbort callb = null;System.Drawing.Image image =  System.Drawing.Image.FromFile("图片路径");
    System.Drawing.Image smallimage;
    int width=System.Convert.ToInt32(image.Width.ToString());
    int height = System.Convert.ToInt32(image.Height.ToString());int smallwidth=width/10,smallheight=height/10;smallimage=image.GetThumbnailImage(smallwidth,smallheight,callb,new System.IntPtr());
    smallimage.Save("缩略图保存路径");
      

  2.   

    You may fix weight value of picture whose height value doesn't need to be set in html page.
      

  3.   

    soft_biao(巴不豆) 的方法不错
      

  4.   

    var flag=false; 
    function DrawImage(ImgD) 

    var image=new Image(); 
    image.src=ImgD.src 
    if(image.width>0 && image.height>0) 

    flag=true; 
    if(image.width/image.height>= 150/120) 

    if(image.width>150) 
    {   
    ImgD.width=150; 
    ImgD.height=(image.height*150)/image.width; 

    else 

    ImgD.width=image.width;   
    ImgD.height=image.height; 

    ImgD.alt=image.width+"×"+image.height; 

    else 

    if(image.height>120) 
    {   
    ImgD.height=120; 
    ImgD.width=(image.width*120)/image.height;      

    else 

    ImgD.width=image.width;   
    ImgD.height=image.height; 

    ImgD.alt=image.width+"×"+image.height; 


    }  
    <img id="uploadimage" onload="javascript:DrawImage(this);" border="0">js就行了
      

  5.   

    不知我这个有没有用,可以按规律将所以图片一次性按比例缩放的
    地,我给个地址,其它就不解释了
    http://community.csdn.net/Expert/topic/4237/4237273.xml?temp=.850567