Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>WebP Convert & ReplaceNew to Visual Studio Code? Get it now.
WebP Convert & Replace

WebP Convert & Replace

xjh

|
1 install
| (1) | Free
PNG → WebP 转换、替换引用后缀、iOS14 兼容性提示(工作区内执行)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

WebP Convert & Replace(VSCode 插件)

用于在工作区内批量把 PNG 转成 WebP,并把代码里引用的 .png 后缀一键替换为 .webp,同时输出转换/替换报告与兼容性提示。

主要功能

  • PNG → WebP(使用内置 cwebp)
  • 替换引用:.png → .webp
  • 报告:汇总(数量、体积变化、逐图百分比等)
  • iOS14 兼容性提示(非阻断)

使用方式

  • 添加到待转换区:在资源管理器中右键 PNG 文件或文件夹,选择 WebP Convert & Replace: 添加到待转换区
  • 执行转换并替换引用:打开左侧 WebP Convert & Replace 面板,在 待转换区 顶部点击“转换并替换引用”
  • 查看结果:在 报告 里查看本次执行的汇总与逐图结果

WebP 压缩质量(全局)

  • 待转换区 右侧会显示:当前压缩质量:无损 / 当前压缩质量:xx%
  • 点击 待转换区 顶部的“设置压缩质量”(齿轮)可修改
  • 默认压缩质量:无损
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft