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

用squoosh压缩图片 #66

Open
otakustay opened this issue Jun 10, 2021 · 1 comment
Open

用squoosh压缩图片 #66

otakustay opened this issue Jun 10, 2021 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@otakustay
Copy link
Member

现在reSKRipt默认是不带图片压缩功能的,装上@reskript/config-img-loader以后会使用img-loader去做图片压缩。这东西依赖imagemin需要网络下载二进制,影响安装的速度和成功率

现在有squoosh用WASM来实现图片压缩,可以写一个loader出来

@otakustay
Copy link
Member Author

  1. 需要观察下这个issue的情况:Node.js - abort(RangeError: WebAssembly.instantiate(): Out of memory: wasm memory) GoogleChromeLabs/squoosh#1065
  2. 看起来有些图片会越压缩越大,有待分析

@otakustay otakustay added this to To do in Daily Issue Jul 9, 2021
@otakustay otakustay added this to the 2.0 milestone Jul 15, 2021
@otakustay otakustay added this to To do in Version 2.0 Jul 15, 2021
@otakustay otakustay moved this from To do to In progress in Daily Issue Jul 15, 2021
@otakustay otakustay moved this from In progress to To do in Daily Issue Jul 15, 2021
@otakustay otakustay removed this from To do in Daily Issue Jul 15, 2021
@otakustay otakustay modified the milestones: 2.0, 3.0 Aug 19, 2021
@otakustay otakustay removed this from To do in Version 2.0 Aug 20, 2021
@otakustay otakustay added the enhancement New feature or request label Aug 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant