Hi all
I am trying to build an image resizing routine where, if the image is larger than 600px wide, the image will be resized down to 600px wide. The code I am working with doesn't seem to save the image as expected. If this code is junk, let's toss it. But what I am really after is the ability to resize the image down. As you can see at the end of the code segment, I tried the objImage.GetThumbnailImage route, but the loss of quality was dramatic.
Thanks
Richard
' the following code will allow for testing. Remove for production
gFilename = "15.jpg"
gPicPath = "~/MemberPages/ProfilePics/Profile/"
' Load the Image
Dim objImage As System.Drawing.Image = System.Drawing.Image.FromFile(Server.MapPath(gPicPath) & gFilename)
'if the image is over 600 px wide, resize it down to 600px wide
If objImage.Width ...
Go to the complete details ...