title: mvc3 ImageResizer
body: <p>I downloaded the Nugent ImageResizer and I am trying to resize a picture on upload following an example on this page <a href="http://imageresizing.net/docs/managed" rel="nofollow">http://imageresizing.net/docs/managed</a> but I can't seen to put this in a Var or Image variable so i can see it in the <strong>Path.Combine</strong> here is the code</p>
  
  <pre><code>var fileName = Path.GetFileName(file.FileName);
                  var changename = getid + "_" + fileName;
            ImageBuilder.Current.Build(changename, changename,
                                                         new ResizeSettings("width=130&amp;height=130"));
  
              var path = Path.Combine(Server.MapPath("~/uploads/profilepic"), changename);
                  file.SaveAs(path);
  </code></pre>
  
  <p>How can I get the <strong>ImageBuilder</strong> inside a var or some type of image variable what i would like to do is something like this </p>
  
  <pre><code>        var resized=  ImageBuilder.Current.Build(changename, changename,
                                                         new ResizeSettings("width=130&amp;height=130"));
  var path = Path.Combine(Server.MapPath("~/uploads/profilepic"), resized);
                  file.SaveAs(path);
  </code></pre>
  
  <p>all that im trying to do is put the <strong>ImageBuilder</strong> inside the <strong>Path.Combine</strong> without getting an error, any help would be appreciated .</p>