在大麻瓦中的压缩图像| .NET 6
我想压缩由< 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论