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

使用 inline bese64 存储网站图标 #138

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 3, 2024

  1. 使用 inline bese64 存储网站图标

    新建了脚本 process_icons.sh, 这个脚本
    1. 创建临时工作区
    2. 下载图标
    3. 使用 ImageMagick 提取 ico 并转换为 png
    4. 将图标转换为 base64 并将全部 base64 添加到 auto_feed.user.js 尾部
    考虑到站点图标不常变化, 将生成好的 auto_feed.user.js 一并提交
    process_icons.sh 改变了新站点添加的流程:
    每次添加新站点, 应当
    1. 删除 auto_feed.user.js 所有图标(即 整个 site_img_info_base64)
    2. 运行 process_icons.sh 重新生成, 注意依赖 ImageMagick 和正常的网络
    3. diff 确认后提交新的带有图标的 auto_feed.user.js
    
    本次提交的图标已肉眼检查无误, PR 将提供最终效果截图和中间产物截图
    wen-long committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    5c1a827 View commit details
    Browse the repository at this point in the history