图像显示为红点

时间:2016-01-08 08:32:14

标签: imageresizer

我在我的MVC网站上使用ImageResizer 4.0.4,我也使用水印插件。但我有一个问题,输出图像右下方有一个小红点。这是我的来源和截图:

WatermarkPlugin watermark = new WatermarkPlugin();
watermark.OtherImages.Path = "~/Content/images";
watermark.OtherImages.DrawAs = Layer.LayerPlacement.Background;
watermark.OtherImages.ImageQuery = new ResizeSettings("s.alpha=0.6;format=png");
//watermark.OtherImages.Width = new DistanceUnit(35, DistanceUnit.Units.Percentage);
watermark.OtherImages.RelativeTo = "imageArea";
watermark.Install(Config.Current);

string querystring = "bgcolor=transparent;format=jpg;watermark=test.png";

ResizeSettings setting = new ResizeSettings(querystring);

using (var stream = new MemoryStream())
{
    ImageBuilder.Current.Build(bytes, stream, setting);

    return stream.ToArray();
}

enter image description here

1 个答案:

答案 0 :(得分:0)

这是因为您还没有输入许可证密钥。

在这里阅读更多内容: https://imageresizing.net/licenses

在这里: https://imageresizing.net/docs/v4/install/license_keys