【问题标题】:Red dot appears on ImageResizer in asp.net在 asp.net 的 ImageResizer 上出现红点
【发布时间】:2021-05-22 03:18:00
【问题描述】:

我正在使用imageresizer,但是图像上有一个红点,虽然我没有使用任何付费插件,以下是我正在使用的插件:

  1. ImageResizer.dll
  2. DiskCache.dll
  3. PrettyGifs.dll

下面是我的图片查询字符串:

image.jpg?w=100&h=50&mode=crop

虽然我也尝试过不裁剪,但结果仍然相同。我检查了 debug.ashx,它说我正在使用 Performance Edition 插件,但是除了上面之外我没有任何插件。它还提到了

You are using <licenses licenseError='Watermark'>. If there is a licensing error, an red dot will be drawn on the bottom-right corner of each image. This can be set to 'Exception' instead (valuable if you are storing results).

任何人都可以建议,为什么会出现红点。

【问题讨论】:

  • 听起来您确实遇到了错误消息所称的“许可错误”。看这里:ImageResizer: Installing a License Keyhere。注意:仅仅因为您安装了“Performance Edition”(DiskCache 和 PrettyGifs 是其中的一部分)……并不意味着您已经正确配置了许可证。上面的 ImageResizer 链接有几个很好的故障排除技巧。
  • 好的,目前我的要求是用我提供的宽度和高度裁剪图像,我可以使用免费版的 imageresizer 来实现吗?裁剪与 DiskCache 和 PrettyGifs 有什么关系,以及我如何删除它,只是我需要删除 web.config 中具有 DiskCache 和 PrettyGifs 插件的调整大小部分吗?

标签: asp.net imageresizer


【解决方案1】:

DiskCache 和 PrettyGifs 都是付费插件(除非您符合 AGPL)。

磁盘缓存对于生产站点非常重要,因为如果不缓存结果,它们很容易不堪重负。图像处理占用大量 CPU 时间和 RAM。

如果你正在做一个新项目,你应该使用 Imageflow 而不是 ImageResizer,因为它是更新、更好的替代品:https://github.com/imazen/imageflow-dotnet-server

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-08-25
    • 1970-01-01
    • 1970-01-01
    • 2016-07-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多