在大麻瓦中的压缩图像| .NET 6

发布于 2025-01-24 12:25:20 字数 249 浏览 2 评论 0原文

我想压缩由< inputfile/> Component上载客户端(在上传到服务器之前)上的图像。

我已经尝试使用system.drawing库来压缩它。但是该解决方案不起作用,因为由于GDI+依赖关系System.Drawing不允许在爆炸中使用。

如果有人知道如何减少图像大小(在客户端),请帮助我找到解决方案。

谢谢。

I want to compress images uploaded by the <InputFile /> component on client-side (before uploading to the server).

I already tried compressing it using System.Drawing library. But that solution didn't work because due to GDI+ dependencies System.Drawing is not allowed to be used in Blazor-wasm.

If anyone has any idea on how to reduce image size (on client-side) please help me find the solution.

Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文