Skip to content

kraftvaerk/JCore.SitecoreModules.ImageCropping

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sitecore.ImageCropping

Image cropping functionality that allows specifying cropping region when assigning asset to Image field.

This module includes a custom image field and croping processor.

Image Field:

  • Allows editors to specify crop region for an image.
  • Saves the crop region into image field xml

Crop Processor:

  • Processor for getMediaStream pipeline that crops an image based on specified crop region ("cropregion" query string parameter in "x1,y1,x2,y2" format).

Example:

There are 3 different ways you can use this module:

  • <sc:image field="image" />
  • Sitecore.Web.UI.WebControls.FieldRenderer.Render(Sitecore.Context.Item, "Image");
  • CustomMediaManager.GetMediaUrl(((Sitecore.Data.Fields.ImageField)Sitecore.Context.Item.Fields["Image"]));

About

Image Cropping module (a Custom Image field + crop processor)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 58.2%
  • JavaScript 39.7%
  • CSS 2.1%