Skip to content

上传图片如果分辨率很大,则crop并resize的图片质量下降明显 #3

Description

@wyysoft

插件中AVATARS_CROP_BASE_WIDTH默认是500px,如果用户上传很大分辨率的图片,并且只裁剪很小的一块图片,插件在crop前会先resize原图,然后才crop并resize图片。
这样的隐患是resize的图片分辨率降下来以后,再crop就会导致最终图片质量很低。
解决方法是,crop之前先不要resize,x/y/w/h根据比例计算。这样crop的效果更好些。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions