Make changes for PR suggestions

This commit is contained in:
Benjamin Carleski
2020-02-09 11:12:29 -08:00
parent 7e7d38e74b
commit 4309489174
9 changed files with 98 additions and 68 deletions

View File

@@ -343,9 +343,8 @@ namespace Umbraco.Web
}
else
{
options = new ImageUrlGenerationOptions
options = new ImageUrlGenerationOptions (imageUrl)
{
ImageUrl = imageUrl,
ImageCropMode = (imageCropMode ?? ImageCropMode.Pad).ToString().ToLowerInvariant(),
ImageCropAnchor = imageCropAnchor?.ToString().ToLowerInvariant()
};