TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Dr.Ajay Kashyap
NA
521
285.1k
How To resize Image Without Crop And Padding
Feb 20 2017 3:36 AM
hello friends ...
I am Uploading single Image And That image i convert in different Size Because That Image I want in 5 different Size But The Problem Is Some Images Are Crop And Padding That I Want To Avoid .....So How To Avoid It ...This All I am Doing Using Asp.Net Mvc ..
Given Below Is My Code Of Image Resizer :-
public static string UploadFile(HttpPostedFileBase file, string file_Name, int height, int width)
{
var path = Path.Combine(HttpContext.Current.Request.MapPath(UploadPath), file_Name);
file.SaveAs(path);
ResizeSettings resizeSetting = new ResizeSettings
{
Width = width,
Height = height,
Mode = FitMode.Crop,
Quality = 90
};
ImageBuilder.Current.Build(file, path, resizeSetting);
return file_Name;
}
Attachment:
ImageRenameResizeUpload.rar
Reply
Answers (
4
)
Set Crystal Reports Local Parameeters
Page to load Actixe X third party