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

feat: Implement favicon upload and preprocessing (Closes #200) #308

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

Sittymin
Copy link
Contributor

变更内容

  • Favicon上传与预处理: 修改为上传图片,处理成 WebP 格式并存储在 R2 中作为网站图标。(Cloudflare Images 转换似乎没有裁剪为圆形的选项)
  • RSS 信息流图标修改: favicon 使用用户上传的处理后的 favicon,image 使用上传的 favicon 的源文件。
  • 文章图片处理: 对于文章,如果内容内部没有图片, 不回退为头像(原先每一篇都有个大头照怪怪的)。

注意事项

  • Cloudflare 图片转换: 需要开启 Cloudflare 的 Images 转换功能
  • 缓存: 如果更新之前上传的 favicon,可能会因为 Cloudflare 缓存而看不到即时的变化。可以等缓存失效或在上传新的favicon后手动清除Cloudflare缓存。

关联问题

@Sittymin
Copy link
Contributor Author

或许把 AVATAR 的图片改为未处理过的 favicon 的源文件也挺好的

@Sittymin Sittymin changed the title feat: 实现 favicon 上传与预处理,修改了 RSS 和文章的图片处理逻辑 (Closes #200) feat: Implement favicon upload and preprocessing, modified RSS and article image processing logic (Closes #200) Jan 20, 2025
@Sittymin Sittymin changed the title feat: Implement favicon upload and preprocessing, modified RSS and article image processing logic (Closes #200) feat: Implement favicon upload and preprocessing (Closes #200) Jan 20, 2025
@OXeu OXeu merged commit edbcac5 into openRin:dev Jan 27, 2025
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

Successfully merging this pull request may close these issues.

[Feature Request] 支持上传图片&预处理作为 favicon
2 participants