WebP Image Paster
日本語README
Found a bug? Please let me know by issue I'll fix it ASAP!
なる早で修正します!
VSCode extension that converts clipboard images to WebP format and pastes them directly into Markdown files.

Purpose and Features
- Reduce file sizes - Smaller than PNG. Lossless compression supported
- Customize paste patterns - HTML tag insertion for 50% scaled images, etc.
- Unique image names with timestamps
- Save images relative to workspace root
- Cross-platform - Works on Windows, macOS, Linux, and remote environments (WSL, SSH, devcontainer)
Installation
- Install from VSCode Marketplace
- No additional setup required
Usage
- Copy image to clipboard
- Open Markdown file in VSCode
- Press
Ctrl+V (or Cmd+V on Mac)
Alternative methods:
- Command Palette → "Paste as WebP in MD"
⚙️ Configuration
See configuration descriptions for details
{
"vsc-webp-paster.imageDir": "img",
"vsc-webp-paster.quality": 80,
"vsc-webp-paster.namingConvention": "image-${timestamp}",
"vsc-webp-paster.insertPattern": "",
"vsc-webp-paster.useWorkspaceRoot": false,
"vsc-webp-paster.progressDelay": 0.3
}
📋 Requirements
- VSCode 1.73.0 or higher
- darwin-arm64, win32-x64, linux-x64, linux-arm64
Clipboard Access Methods:
- Windows: PowerShell (.NET System.Windows.Forms.Clipboard)
- macOS: AppleScript (osascript)
- Linux: xclip (X11) or wl-paste (Wayland) - install required
📝 License
MIT License
| |