Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>compress-imageNew to Visual Studio Code? Get it now.
compress-image

compress-image

hliujie

|
720 installs
| (0) | Free
compress image by tinify
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

使用tinypng压缩图片

使用教程

  • 方式一: 文件夹 - 右键 - Image Compress - 输入网络图片地址 - Enter(压缩后图片保存到该文件夹目录下)
  • 方式二: png|jpg|jpeg|gif图片 - 右键 - Image Compress - Enter(压缩后图片保存在该目录下)
  • 方式三: alt + shift + p - 搜image.Image Compress - 选中 - 输入网络图片地址 - Enter(压缩后图片默认保存到项目根目录)

自定义配置保存目录

  • 打开设置-扩展-CompressImage
    • 找到 saveDirname 字段,配置即可
    • 注意: alt+shift+p方式才有效

使用自己的tinypng的API_KEY

  • 打开设置-扩展-CompressImage
    • 找到tinifyKey字段,配置即可
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft