Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[平台兼容性]: ImageUtil使用了System.Drawing.Common作为底层图形图像库,但该库存在兼容性问题 #7

Open
MJEdwin opened this issue Sep 7, 2023 · 0 comments

Comments

@MJEdwin
Copy link

MJEdwin commented Sep 7, 2023

问题描述及重现代码:

Microsoft修改了System.Drawing.Common的策略,该功能在.net 6及以上不可使用,详见
https://learn.microsoft.com/zh-cn/dotnet/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only

// on linux or macos will throw error
ImageUtil.ResizeImage(img,width, height);
ImageUtil.CropImage(img, x, y, width, height);

具体版本

.net 6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant