VS Code Extensions
C

cwebp Runner

by realode

Batch convert selected images to WebP using the cwebp binary.

Downloads

14

Rating

— (0)

Version

1.0.0

Last updated

Jun 27, 2026

A minimal VS Code extension that batch-converts selected image files to WebP by calling the cwebp binary.

Features

  • Convert one or many files from the Explorer context menu.
  • Convert many files from the Command Palette via a file picker.
  • Keep the original file basename and write filename.webp beside the source image.
  • Configure the cwebp binary path and default arguments in VS Code settings.
  • Optionally skip files when the target .webp already exists.

Settings

{
  "cwebpRunner.binaryPath": "cwebp",
  "cwebpRunner.defaultArgs": ["-q", "80", "-mt"],
  "cwebpRunner.skipIfExists": true,
  "cwebpRunner.supportedExtensions": [".png", ".jpg", ".jpeg", ".tif", ".tiff"]
}

Development

npm install
npm run compile

Press F5 in VS Code to launch the Extension Development Host.

Packaging

npm install
npm run compile
npx vsce package

Related extensions