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

降低圖片大小 #805

Closed
LianSheng197 opened this issue Apr 21, 2022 · 0 comments
Closed

降低圖片大小 #805

LianSheng197 opened this issue Apr 21, 2022 · 0 comments
Assignees
Labels
🔌 建置工具組 與建置工具和編譯有關的問題。
Milestone

Comments

@LianSheng197
Copy link

參考 #797 ,或許可以考慮壓縮一下圖片。

壓縮圖片的工具有很多,這裡僅僅用 pngquant 作為範例。
(也許可以考慮把工具併入專案,方便自動轉檔?)

測試環境:Windows 10

# 在 /examples/screenshots 底下,使用預設值壓縮圖片
pngquant ./blog_*.png --ext -pngquant.png
pngquant ./small/blog_*.png --ext -pngquant.png
原始檔案 原始大小 壓縮大小 節省空間
./blog_dark.png 168,827 bytes 51,707 bytes 69.37%
./blog_light.png 169,482 bytes 50,977 bytes 69.92%
./small/blog_dark.png 75,189 bytes 24,858 bytes 66.93%
./small/blog_dark.png 64,159 bytes 22,021 bytes 65.67%
@YamiOdymel YamiOdymel self-assigned this Apr 21, 2022
@YamiOdymel YamiOdymel added the 🔌 建置工具組 與建置工具和編譯有關的問題。 label Apr 21, 2022
@YamiOdymel YamiOdymel added this to the Tocas 4.0.4 milestone Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔌 建置工具組 與建置工具和編譯有關的問題。
Projects
None yet
Development

No branches or pull requests

2 participants