Skip to content

realode/cwebp-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cwebp Runner

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages