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

Feature: 增加imagemin压缩程度的配置 #73

Open
learnerLj opened this issue Nov 19, 2024 · 1 comment
Open

Feature: 增加imagemin压缩程度的配置 #73

learnerLj opened this issue Nov 19, 2024 · 1 comment

Comments

@learnerLj
Copy link

.then((buffer) => imagemin.buffer(buffer, { plugins: [mozjpeg({ quality: 75, progressive: true }), upng()] }))

这里默认对于大于5MB的图片不太理想,压缩之后还是有接近2MB。

@learnerLj
Copy link
Author

比较好的办法是拉取到本地,然后修改参数,比如 quality: 30,随后自己本地安装。可以参考:https://picgo.github.io/PicGo-Core-Doc/zh/dev-guide/deploy.html#%E6%99%AE%E9%80%9A%E6%8F%92%E4%BB%B6

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

No branches or pull requests

1 participant