Skip to content

Instantly share code, notes, and snippets.

@aibrean
Last active April 5, 2016 16:39
Show Gist options
  • Save aibrean/619fc4695b170d02aa9fe10eeba1576c to your computer and use it in GitHub Desktop.
Save aibrean/619fc4695b170d02aa9fe10eeba1576c to your computer and use it in GitHub Desktop.
Umbraco 7 and uCommerce 7 image cropper
@{
var media = product.GetPropertyValue<string>("MainProductImage");
var mediaSource = umbracoHelper.TypedMedia(media);
}
<img src="@mediaSource.GetCropUrl("umbracoFile", "store-product-medium")" class="main-image" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment