Skip to content

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

@MJEdwin

Description

@MJEdwin

问题描述及重现代码:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions