Browse Source

Fix overlay resizing

Former-commit-id: 8d5b9aa5318c5687a4a457f0b9980fdeb7728451
Former-commit-id: 105e818c27f2dedc1332c1d4d95a53ccae7669d7
af/merge-core
James South 11 years ago
parent
commit
294540f70a
  1. 2
      src/ImageProcessor/Processors/Overlay.cs

2
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);

Loading…
Cancel
Save