Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void ProcessImage(
- HttpPostedFileBase postedFile,
- string imageLocation,
- string thumbLocation)
- {
- var webImage = new WebImage(postedFile.InputStream);
- // temporarily save the original image
- webImage.Save(imageLocation + "_original");
- webImage.Resize(317, 342);
- webImage.Crop(1, 1, 1, 1);
- webImage.Save(imageLocation);
- webImage.Resize(172, 172);
- webImage.Crop(1, 1, 1, 1);
- webImage.Save(thumbLocation);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement