From 294540f70a20076ec12f4c2cabc658864eaeb3ae Mon Sep 17 00:00:00 2001 From: James South Date: Sat, 8 Nov 2014 10:14:12 +0000 Subject: [PATCH] Fix overlay resizing Former-commit-id: 8d5b9aa5318c5687a4a457f0b9980fdeb7728451 Former-commit-id: 105e818c27f2dedc1332c1d4d95a53ccae7669d7 --- src/ImageProcessor/Processors/Overlay.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImageProcessor/Processors/Overlay.cs b/src/ImageProcessor/Processors/Overlay.cs index bbcd70349..d3fb2cce8 100644 --- a/src/ImageProcessor/Processors/Overlay.cs +++ b/src/ImageProcessor/Processors/Overlay.cs @@ -83,7 +83,7 @@ namespace ImageProcessor.Processors Point? position = imageLayer.Position; int opacity = imageLayer.Opacity; - if (image.Size != overlay.Size) + if (image.Size != overlay.Size || image.Size != new Size(overlayWidth, overlayHeight)) { // Find the maximum possible dimensions and resize the image. ResizeLayer layer = new ResizeLayer(new Size(overlayWidth, overlayHeight), ResizeMode.Max);