diff --git a/src/ImageProcessor/Processors/Resize.cs b/src/ImageProcessor/Processors/Resize.cs
index 1b6a73104..4a100a139 100644
--- a/src/ImageProcessor/Processors/Resize.cs
+++ b/src/ImageProcessor/Processors/Resize.cs
@@ -30,7 +30,7 @@ namespace ImageProcessor.Processors
///
/// The regular expression to search strings for.
///
- private static readonly Regex QueryRegex = new Regex(@"((width|height)=\d+)|(mode=(pad|stretch|crop))|(bgcolor-([0-9a-fA-F]{3}){1,2})", RegexOptions.Compiled);
+ private static readonly Regex QueryRegex = new Regex(@"((width|height)=\d+)|(mode=(pad|stretch|crop))|(bgcolor=([0-9a-fA-F]{3}){1,2})", RegexOptions.Compiled);
///
/// The regular expression to search strings for the size attribute.
@@ -45,7 +45,7 @@ namespace ImageProcessor.Processors
///
/// The regular expression to search strings for the color attribute.
///
- private static readonly Regex ColorRegex = new Regex(@"bgcolor-([0-9a-fA-F]{3}){1,2}", RegexOptions.Compiled);
+ private static readonly Regex ColorRegex = new Regex(@"bgcolor=([0-9a-fA-F]{3}){1,2}", RegexOptions.Compiled);
#region IGraphicsProcessor Members
///
@@ -249,8 +249,8 @@ namespace ImageProcessor.Processors
{
foreach (Match match in ColorRegex.Matches(input))
{
- // split on color-hex
- return ColorTranslator.FromHtml("#" + match.Value.Split('-')[1]);
+ // Split on color-hex
+ return ColorTranslator.FromHtml("#" + match.Value.Split('=')[1]);
}
return Color.Transparent;
diff --git a/src/TestWebsites/NET45/Test_Website_NET45/Views/Home/Index.cshtml b/src/TestWebsites/NET45/Test_Website_NET45/Views/Home/Index.cshtml
index 0ac209e64..2473e62de 100644
--- a/src/TestWebsites/NET45/Test_Website_NET45/Views/Home/Index.cshtml
+++ b/src/TestWebsites/NET45/Test_Website_NET45/Views/Home/Index.cshtml
@@ -17,17 +17,14 @@
-
+
-
-
Padded
+
Padded
+

- @*
Foreign language test.
-

*@
-
- @*
Cropped
-

*@
+
+