If cropper property editor not in use on umbracoFile then we can use mediaItem.Url

This commit is contained in:
Jeavon Leopold
2014-03-20 14:31:21 +00:00
parent 2d2f57a71b
commit 5c5827e319

View File

@@ -51,7 +51,7 @@ namespace Umbraco.Web
{
string imageCropperValue = null;
string mediaItemUrl = null;
string mediaItemUrl;
if (mediaItem.HasPropertyAndValueAndCrop(propertyAlias, cropAlias))
{
@@ -64,6 +64,10 @@ namespace Umbraco.Web
? urlValue.SerializeToCropDataSet().Src
: urlValue;
}
else
{
mediaItemUrl = mediaItem.Url;
}
return mediaItemUrl != null
? GetCropUrl(mediaItemUrl, width, height, quality, imageCropMode, imageCropAnchor, imageCropperValue, cropAlias, furtherOptions)