Hi,
I write a small tips for nivoslider and resize image server side.
- install via NUGET the ImageProcessor packages
ImageProcessor
ImageProcessor.Web
ImageProcessor.Web.PostProcessor
ImageProcessor.Web.Config
- mod the file PublicInfo View file under NivoSlider Plugins:
if (!string.IsNullOrEmpty(link))
{
<a href="@link">
<img src="@pictureUrl?width=1200&height=350&mode=crop¢er=0.25,0.30" data-thumb="@pictureUrl" data-transition="@dataTransition" alt="" title="@text" />
</a>
}
else
{
<img src="@pictureUrl?width=1200&height=350&mode=crop¢er=0.25,0.30" data-thumb="@pictureUrl" data-transition="@dataTransition" alt="" title="@text" />
}
Bye