Project Descriptionresize or scale images in orchard simply by url or using the build-in HtmlHelper
Update: Automatic resizing is now also possible!
Note:
When you're using Media Garden module you could better use the build-in image resizer which uses the same library for resizing as this module.
Please read the imageresizer library license http://imageresizing.net/licensesDocumentation
resize using htmlHelper:- include : @using So.ImageResizer.Helpers;
- using html helper like : @Html.ResizedImage(avatar,"",new{},width:81,height:80, crop:ResizeSettingType.CropMode.Auto);
resize using url:/resizedImage?url=/Media/Default/Picture.jpg&width=80&height=80&maxWidth=0&maxheight=0&cropMode=Auto&scale=Both&stretchMode=Fill
- Enable the automatic resizing feature
- Install and configure the ImageResize library in Orchard.Web and enable the use of this library in the Settings of the Orchard Backend.
- Optional encrypt generated url so it become nicer and shorter