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

增加上传附件前压缩和图片加水印等功能的插件支持 #5426

Open
longjuan opened this issue Mar 1, 2024 · 2 comments
Open
Labels
area/plugin Issues or PRs related to the Plugin Provider kind/feature Categorizes issue or PR as related to a new feature. priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.

Comments

@longjuan
Copy link
Member

longjuan commented Mar 1, 2024

你当前使用的版本

2.13.0

描述一下此特性

目前,halo 无法实现上传前压缩、转格式、加水印等操作。
我认为这些功能应该由插件提供,在上传时由插件按一定顺序将如下数据修改替换,即可灵活实现上述功能(类似于AOP)

public Mono<Attachment> upload(
@NonNull String username,
@NonNull String policyName,
@Nullable String groupName,
@NonNull FilePart filePart,
@Nullable Consumer<Attachment> beforeCreating) {

或者有其他更好的方法吗?

附加信息

No response

@longjuan
Copy link
Member Author

longjuan commented Mar 1, 2024

halo-dev/plugin-s3#118

@ruibaby
Copy link
Member

ruibaby commented Mar 4, 2024

/kind feature
/area plugin
/priority awaiting-more-evidence

cc @halo-dev/sig-halo

@f2c-ci-robot f2c-ci-robot bot added kind/feature Categorizes issue or PR as related to a new feature. area/plugin Issues or PRs related to the Plugin Provider priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. labels Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/plugin Issues or PRs related to the Plugin Provider kind/feature Categorizes issue or PR as related to a new feature. priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.
Projects
None yet
Development

No branches or pull requests

2 participants