Browse Source

Fix overlay resizing

Former-commit-id: 1019041652e5df7e3508f36ab3732882f780f905
Former-commit-id: 530a536e39b0ef7ec9cfb3d531ceff92b9ad6df0
af/merge-core
James South 11 years ago
parent
commit
16ec0df12e
  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