【问题标题】:What image resizing libraries for .NET core are supported on Azure Web App Service? [closed]Azure Web App Service 支持哪些适用于 .NET 核心的图像大小调整库? [关闭]
【发布时间】:2020-03-10 09:21:46
【问题描述】:

哪些图像大小调整库可用于托管在 Azure Web 应用服务上的 .NET 核心应用程序?

找到解释几个库的博客:https://devblogs.microsoft.com/dotnet/net-core-image-processing/

这些库中的大多数(imagesharp 除外)都使用 GDI 等原生 Windows 功能,根据这篇文章,Azure Web App Services 不支持这些功能:https://github.com/projectkudu/kudu/wiki/Azure-Web-App-sandbox#win32ksys-user32gdi32-restrictions

目前我可以使用 ImageSharp 调整图像大小,但该库仍处于测试阶段,目前性能不是很好。

【问题讨论】:

标签: c# .net azure asp.net-core


【解决方案1】:

看看 SkiaSharp。

SkiaSharp 是一个用于 .NET 平台的跨平台 2D 图形 API,它基于 Google 的 Skia 图形库。它提供了一个全面的 2D API,可以跨移动、服务器和桌面模型使用来渲染图像。

【讨论】:

  • 将在 azure Web 应用服务上试用,看看是否有任何问题。将保持此帖子更新
  • 您是否在 Azure Web App 上尝试过 SkiaSharp?成功了吗?
  • SkiaSharp 在 azure web 应用上运行没有任何问题
猜你喜欢
  • 2014-09-13
  • 2010-11-03
  • 1970-01-01
  • 2010-11-14
  • 2011-10-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-04-08
相关资源
最近更新 更多