Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Compress PictureNew to Visual Studio Code? Get it now.
Compress Picture

Compress Picture

heqiang

|
608 installs
| (2) | Free
压缩文件夹下图片
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Compress Picture README

操作

  • 选择中文件夹 右键点击菜单(压缩文件夹下图片)

  • 成功后会在选中目录下生成compress-picture-output文件夹目录结构跟你选中的文件夹目录结构一致(压缩成功的图片会在该文件夹下)

  • 还是不懂请看下

  • CSDN:https://blog.csdn.net/weixin_47458530/article/details/127213218

  • 知乎:https://zhuanlan.zhihu.com/p/674006113

配置

  • maxSize 文件压缩范围 最大值(最大不能超过16MB, 超过这个大小的图片不会压缩)
  • minSize 文件压缩范围 最小值
  • ratio 文件清晰度(0 - 100 越大越清晰)

注

  • 目前可以压缩的图片类型{png,jpg,jpeg}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft