No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Controllers
Extensions
Properties
Scripts
Services
Styles
Views
libs/imageresizer
.gitignore
Contrib.Thumbnails.csproj
Module.txt
README.md
Routes.cs
Web.config

README.md

Contrib.Thumbnails

Thumbnails Generator Module for Orchard Project CMS using the ImageResizer.net library

Main features:

  • Simple and easy to use extension method
  • Compatible with Azure Storage or local file system
  • Uses the media folder to store cache of images (assets/cache)

Usage 1 (extension):

  • Reference Contrib.Thumbnails on your theme
  • Add @using Contrib.Thumbnails.Extensions; to your overriding view
  • Use extension method, @Html.Thumbnail("{mediaimageurl}", "Alternate Text", 100, 100, null)

Usage 2 (URL):

  • Use url /Thumbnails?mediaPath={mediapathfordirectory}&name={filename}&width=100&height=100

Futures:

  • Implement diferent resizing methods from the ImageResizer.net library.
  • Thumbnail management via the dashboard, refresh, erase, etc.
  • Detect file changes and invalid cache.