-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
feat: implement new mechanisms for generating and managing attachment thumbnails #6454
Conversation
08e46b2
to
aff1562
Compare
如果不同的存储策略上传了同名的图片,生成缩略图会异常,所以建议 thumbnails 目录根据存储策略隔离。 日志:
|
改了,这是个bug,之前做了检查的,但是检查的是文件名,应该检查 thumbnail 记录 |
549a4cf
to
22590c8
Compare
/ping @halo-dev/sig-halo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
/hold |
70b1376
to
a60d0aa
Compare
/unhold |
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ruibaby The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
/area core
/milestone 2.19.x
What this PR does / why we need it:
实现了图片类型的附件缩略图生成和管理的新机制
实现依据 RFC:halo-dev/rfcs#24
使用缩略图前需要配置 externalUrl 才能生成
How to test it?
http://localhost:8090/apis/storage.halo.run/v1alpha1/thumbnails
中存在一份记录记录
Which issue(s) this PR fixes:
Fixes #2387
Does this PR introduce a user-facing change?