From e020779a147feb37893f0c859eb71a3e4974b8b9 Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Tue, 2 Aug 2016 15:07:25 +0200 Subject: [PATCH] U4-8751 GetCropUrl method should have a parameter for specifying the image format Additional fix asking for InvariantContains instead of just Contains --- src/Umbraco.Web/ImageCropperTemplateExtensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web/ImageCropperTemplateExtensions.cs b/src/Umbraco.Web/ImageCropperTemplateExtensions.cs index 0068f1547e..e518c5e246 100644 --- a/src/Umbraco.Web/ImageCropperTemplateExtensions.cs +++ b/src/Umbraco.Web/ImageCropperTemplateExtensions.cs @@ -302,11 +302,11 @@ namespace Umbraco.Web } } - bool hasFormat = furtherOptions != null && furtherOptions.Contains("&format="); + var hasFormat = furtherOptions != null && furtherOptions.InvariantContains("&format="); //Only put quality here, if we don't have a format specified. //Otherwise we need to put quality at the end to avoid it being overridden by the format. - if (quality != null && !hasFormat) + if (quality != null && hasFormat == false) { imageProcessorUrl.Append("&quality=" + quality); }