Skip to content

Resizing is not anymore clients headache. Client can upload any size of image. We are resizing according to our need and giving them option to crop the image according to aspect ratio. I am here using JCrop jquery plugins(http://jcrop.org/) and making custom control on asp.net to give a simple solution to integrate into .net projects and simple …

License

Notifications You must be signed in to change notification settings

debchy/ResizeNCrop

Repository files navigation

ResizeNCrop

developer: Debashis Chowdhury

Resizing is not anymore clients headache. Client can upload any size of image. We are resizing according to our need and giving them option to crop the image according to aspect ratio.

Here I am using JCrop jquery plugins(http://jcrop.org/) for cropping and I developed a algorithm to resize the input image keeping it's ratio. Also, I made a custom control on asp.net to give a simple solution to integrate into .net projects and simple way to handle for the user.

Folder Structure

The F-ImageUploader is the folder which contains all the required files for the control. 

ImageResizeNCrop.js contains all javascript code for resizing, cropping and saving. A asp.net Handler file(HandlerImageUploader.ashx) is used to save the file with ajax CMS_ImageResizeNCropp_CS.aspx and CMS_ImageResizeNCropp_VB.aspx are the container for control which will open in fancybox iframe. ASP.net custom controller Control_CMS_ImageResizeNCropp_CS.ascx and Control_CMS_ImageResizeNCropp_VB.ascx are used to quickly plug and play the control by dragging from VS Solution Explorer. Images will save on /Admin/Content folder.

About

Resizing is not anymore clients headache. Client can upload any size of image. We are resizing according to our need and giving them option to crop the image according to aspect ratio. I am here using JCrop jquery plugins(http://jcrop.org/) and making custom control on asp.net to give a simple solution to integrate into .net projects and simple …

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published