If cropper property editor not in use on umbracoFile then we can use mediaItem.Url
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user